src/roomlist.h

changeset 8199
43d585355720
parent 8146
4961c9c5fd61
child 8352
cf7ca701b213
--- a/src/roomlist.h	Sun Feb 01 04:21:34 2004 +0000
+++ b/src/roomlist.h	Sun Feb 01 05:02:13 2004 +0000
@@ -44,6 +44,7 @@
 	GaimAccount *account; /**< The account this list belongs to. */
 	GList *fields; /**< The fields. */
 	GList *rooms; /**< The list of rooms. */
+	gboolean in_progress; /**< The listing is in progress. */
 	gpointer ui_data; /**< UI private data. */
 	gpointer proto_data; /** Prpl private data. */
 	guint ref; /**< The reference count. */
@@ -160,6 +161,17 @@
 void gaim_roomlist_set_in_progress(GaimRoomlist *list, gboolean in_progress);
 
 /**
+ * Gets the "in progress" state of the room list.
+ *
+ * The UI is encourged to somehow hint to the user
+ * whether or not we're busy downloading a room list or not.
+ *
+ * @param list The room list.
+ * @returns True if we're downloading it, or false if we're not.
+ */
+gboolean gaim_roomlist_get_in_progress(GaimRoomlist *list);
+
+/**
  * Adds a room to the list of them.
  *
  * @param list The room list.
@@ -238,6 +250,14 @@
  */
 void gaim_roomlist_room_add_field(GaimRoomlist *list, GaimRoomlistRoom *room, gconstpointer field);
 
+/**
+ * Join a room, given a GaimRoomlistRoom and it's associated GaimRoomlist.
+ *
+ * @param list The room list the room belongs to.
+ * @param room The room to join.
+ */
+void gaim_roomlist_room_join(GaimRoomlist *list, GaimRoomlistRoom *room);
+
 /*@}*/
 
 /**************************************************************************/

mercurial