diff src/protocols/msn/switchboard.h @ 10403:e5455f1dc9b6

[gaim-migrate @ 11648] This is "Yet another MSN fix" from Felipe, it actually turned into "Several MSN fixes", see bug 1088651 for the details. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 23 Dec 2004 20:13:54 +0000
parents bbf738a0ce7b
children 92d4a25fd33c
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.h	Wed Dec 22 23:45:37 2004 +0000
+++ b/src/protocols/msn/switchboard.h	Thu Dec 23 20:13:54 2004 +0000
@@ -66,14 +66,16 @@
 							  messages of this switchboard, or @c NULL if
 							  this is a helper switchboard. */
 
-	gboolean empty;      /**< A flag that states if the swithcboard has no
-						   users in it. */
-	gboolean invited;    /**< A flag that states if we were invited to the
-						   switchboard. */
-	gboolean destroying; /**< A flag that states if the switchboard is on
-						   the process of being destroyed. */
-	gboolean ready;      /**< A flag that states if his switchboard is
-						   ready to be used. */
+	gboolean empty;			/**< A flag that states if the swithcboard has no
+							  users in it. */
+	gboolean invited;		/**< A flag that states if we were invited to the
+							  switchboard. */
+	gboolean destroying;	/**< A flag that states if the switchboard is on
+							  the process of being destroyed. */
+	gboolean ready;			/**< A flag that states if this switchboard is
+							  ready to be used. */
+	gboolean closed;		/**< A flag that states if the switchboard has
+							  been closed by the user. */
 
 	int current_users;
 	int total_users;
@@ -81,7 +83,8 @@
 
 	int chat_id;
 
-	GQueue *im_queue;
+	GQueue *im_queue; /**< Queue of messages to send. */
+	GList *ack_list; /**< List of messages waiting for an ack. */
 
 	MsnSBErrorType error; /**< The error that occured in this switchboard
 							(if applicable). */
@@ -184,6 +187,15 @@
  */
 void msn_switchboard_disconnect(MsnSwitchBoard *swboard);
 
+/**
+ * Closes the switchboard.
+ *
+ * Called when a conversation is closed.
+ *
+ * @param swboard The switchboard to close.
+ */
+void msn_switchboard_close(MsnSwitchBoard *swboard);
+
 void msn_switchboard_send_msg(MsnSwitchBoard *swboard, MsnMessage *msg);
 void msn_switchboard_queue_msg(MsnSwitchBoard *swboard, MsnMessage *msg);
 void msn_switchboard_process_queue(MsnSwitchBoard *swboard);