diff src/conversation.h @ 8256:1d86096ae0f4

[gaim-migrate @ 8979] Tim Ringenbach says this shouldn't have gotten into 0.76, because 0.76 should have been release two weeks ago. He also doesn't have a good description, so I'll just say it fixed a bunch of idiot mistakes and ugly hacks on my part regarding the removing of users from the chat lists and parting chats/channels. Thanks Tim. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 14 Feb 2004 21:07:29 +0000
parents e283be34aadf
children dde73afb3283
line wrap: on
line diff
--- a/src/conversation.h	Sat Feb 14 20:45:28 2004 +0000
+++ b/src/conversation.h	Sat Feb 14 21:07:29 2004 +0000
@@ -86,7 +86,8 @@
 	GAIM_CONV_ACCOUNT_OFFLINE, /**< One of the user's accounts went offline. */
 	GAIM_CONV_UPDATE_AWAY,     /**< The other user went away.                */
 	GAIM_CONV_UPDATE_ICON,     /**< The other user's buddy icon changed.     */
-	GAIM_CONV_UPDATE_TITLE
+	GAIM_CONV_UPDATE_TITLE,
+	GAIM_CONV_UPDATE_CHATLEFT
 
 } GaimConvUpdateType;
 
@@ -224,6 +225,8 @@
 	char  *topic;                    /**< The topic.                    */
 	int    id;                       /**< The chat ID.                  */
 	char *nick;                      /**< Your nick in this chat.       */
+
+	gboolean left;                   /**< We left the chat and kept the window open */
 };
 
 /**
@@ -1206,6 +1209,25 @@
  */
 GaimConversation *gaim_find_chat(const GaimConnection *gc, int id);
 
+/**
+ * Lets the core know we left a chat, without destroying it.
+ * Called from serv_got_chat_left().
+ *
+ * @param chat The chat.
+ */
+void gaim_conv_chat_left(GaimConvChat *chat);
+
+/**
+ * Returns true if we're no longer in this chat,
+ * and just left the window open.
+ *
+ * @param chat The chat.
+ *
+ * @return @c TRUE if we left the chat already, @c FALSE if
+ * we're still there.
+ */
+gboolean gaim_conv_chat_has_left(GaimConvChat *chat);
+
 /*@}*/
 
 /**************************************************************************/