diff src/gtkconv.h @ 12021:1a86417abfc8

[gaim-migrate @ 14314] Yet another patch from charkins related to the docklet. This one prevents the docklet's unseen msg notification from kicking in for non-logged text (e.g. notification of file transfer, etc). committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 09 Nov 2005 03:55:20 +0000
parents fe12abd6b879
children e75ef7aa913e
line wrap: on
line diff
--- a/src/gtkconv.h	Wed Nov 09 03:09:55 2005 +0000
+++ b/src/gtkconv.h	Wed Nov 09 03:55:20 2005 +0000
@@ -34,11 +34,11 @@
  */
 typedef enum
 {
-	GAIM_UNSEEN_NONE = 0,  /**< No unseen text in the conversation. */
-	GAIM_UNSEEN_TEXT,      /**< Unseen text in the conversation.    */
-	GAIM_UNSEEN_NICK,      /**< Unseen text and the nick was said.  */
-	GAIM_UNSEEN_EVENT      /**< Unseen events in the conversation.  */
-
+	GAIM_UNSEEN_NONE  = 0, /**< No unseen text in the conversation. */
+	GAIM_UNSEEN_EVENT = 1, /**< Unseen events in the conversation.  */
+	GAIM_UNSEEN_NOLOG = 2, /**< Unseen text with NO_LOG flag.       */
+	GAIM_UNSEEN_TEXT  = 3, /**< Unseen text in the conversation.    */
+	GAIM_UNSEEN_NICK  = 4  /**< Unseen text and the nick was said.  */
 } GaimUnseenState;
 
 enum {
@@ -200,6 +200,18 @@
  */
 void gaim_gtkconv_update_buttons_by_protocol(GaimConversation *conv);
 
+/**
+ * Finds the first conversation of the given type which has an unseen
+ * state greater than or equal to the specified minimum state.
+ *
+ * @param type      The type of conversation.
+ * @param min_state The minimum unseen state.
+ * @return          First conversation matching criteria, or NULL.
+ */
+GaimConversation *
+gaim_gtk_conversations_get_first_unseen(GaimConversationType type,
+                                        GaimUnseenState min_state);
+
 GaimGtkWindow *gaim_gtkconv_get_window(GaimGtkConversation *gtkconv);
 GdkPixbuf *gaim_gtkconv_get_tab_icon(GaimConversation *conv, gboolean small_icon);
 void gaim_gtkconv_new(GaimConversation *conv);