Mercurial > pidgin
diff src/roomlist.h @ 8199:12055bae7f59
[gaim-migrate @ 8922]
marv made the roomlist widget a lot cooler. thanks marv!
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Sun, 01 Feb 2004 05:02:13 +0000 |
| parents | 596c64a2a2d0 |
| children | 77baefe979c6 |
line wrap: on
line diff
--- 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); + /*@}*/ /**************************************************************************/
