27#ifndef _PURPLE_ROOMLIST_H_
28#define _PURPLE_ROOMLIST_H_
53 PURPLE_ROOMLIST_FIELD_BOOL,
54 PURPLE_ROOMLIST_FIELD_INT,
111 void (*_purple_reserved1)(void);
112 void (*_purple_reserved2)(void);
113 void (*_purple_reserved3)(void);
114 void (*_purple_reserved4)(void);
338 const gchar *label,
const gchar *name,
void purple_roomlist_room_add_field(PurpleRoomlist *list, PurpleRoomlistRoom *room, gconstpointer field)
Adds a field to a room.
void purple_roomlist_set_in_progress(PurpleRoomlist *list, gboolean in_progress)
Set the "in progress" state of the room list.
void purple_roomlist_cancel_get_list(PurpleRoomlist *list)
Tells the prpl to stop fetching the list.
gboolean purple_roomlist_get_in_progress(PurpleRoomlist *list)
Gets the "in progress" state of the room list.
const char * purple_roomlist_room_get_name(PurpleRoomlistRoom *room)
Get the name of a room.
const char * purple_roomlist_field_get_label(PurpleRoomlistField *field)
Get the label of a field.
GList * purple_roomlist_room_get_fields(PurpleRoomlistRoom *room)
Get the list of fields for a room.
PurpleRoomlistRoomType
The types of rooms.
@ PURPLE_ROOMLIST_ROOMTYPE_CATEGORY
It's a category, but not a room you can join.
@ PURPLE_ROOMLIST_ROOMTYPE_ROOM
It's a room, like the kind you can join.
void purple_roomlist_set_fields(PurpleRoomlist *list, GList *fields)
Set the different field types and their names for this protocol.
PurpleRoomlistRoom * purple_roomlist_room_new(PurpleRoomlistRoomType type, const gchar *name, PurpleRoomlistRoom *parent)
Creates a new room, to be added to the list.
PurpleRoomlist * purple_roomlist_new(PurpleAccount *account)
Returns a newly created room list object.
void purple_roomlist_room_join(PurpleRoomlist *list, PurpleRoomlistRoom *room)
Join a room, given a PurpleRoomlistRoom and it's associated PurpleRoomlist.
PurpleRoomlistField * purple_roomlist_field_new(PurpleRoomlistFieldType type, const gchar *label, const gchar *name, gboolean hidden)
Creates a new field.
PurpleRoomlistRoom * purple_roomlist_room_get_parent(PurpleRoomlistRoom *room)
Get the parent of a room.
gboolean purple_roomlist_field_get_hidden(PurpleRoomlistField *field)
Check whether a roomlist-field is hidden.
GList * purple_roomlist_get_fields(PurpleRoomlist *roomlist)
Get the list of fields for a roomlist.
PurpleRoomlistFieldType purple_roomlist_field_get_type(PurpleRoomlistField *field)
Get the type of a field.
void purple_roomlist_room_add(PurpleRoomlist *list, PurpleRoomlistRoom *room)
Adds a room to the list of them.
PurpleRoomlistFieldType
The types of fields.
@ PURPLE_ROOMLIST_FIELD_STRING
We do a g_strdup on the passed value if it's this type.
void purple_roomlist_expand_category(PurpleRoomlist *list, PurpleRoomlistRoom *category)
Tells the prpl that a category was expanded.
PurpleRoomlistUiOps * purple_roomlist_get_ui_ops(void)
Returns the purple window UI operations structure to be used in new windows.
void purple_roomlist_unref(PurpleRoomlist *list)
Decreases the reference count on the room list.
void purple_roomlist_ref(PurpleRoomlist *list)
Increases the reference count on the room list.
void purple_roomlist_set_ui_ops(PurpleRoomlistUiOps *ops)
Sets the UI operations structure to be used in all purple room lists.
PurpleRoomlist * purple_roomlist_get_list(PurpleConnection *gc)
Returns a PurpleRoomlist structure from the prpl, and instructs the prpl to start fetching the list.
PurpleRoomlistRoomType purple_roomlist_room_get_type(PurpleRoomlistRoom *room)
Get the type of a room.
void purple_roomlist_show_with_account(PurpleAccount *account)
This is used to get the room list on an account, asking the UI to pop up a dialog with the specified ...
Structure representing an account.
A field a room might have.
gchar * label
The i18n user displayed name of the field.
PurpleRoomlistFieldType type
The type of field.
gchar * name
The internal name of the field.
PurpleRoomlistRoomType type
The type of room.
gchar * name
The name of the room.
PurpleRoomlistRoom * parent
The parent room, or NULL.
gboolean expanded_once
A flag the UI uses to avoid multiple expand prpl cbs.
GList * fields
Other fields.
The room list ops to be filled out by the UI.
void(* create)(PurpleRoomlist *list)
A new list was created.
void(* show_with_account)(PurpleAccount *account)
Force the ui to pop up a dialog and get the list.
void(* destroy)(PurpleRoomlist *list)
We're destroying list.
void(* add_room)(PurpleRoomlist *list, PurpleRoomlistRoom *room)
Add a room to the list.
void(* set_fields)(PurpleRoomlist *list, GList *fields)
Sets the columns.
void(* in_progress)(PurpleRoomlist *list, gboolean flag)
Are we fetching stuff still?
gboolean in_progress
The listing is in progress.
gpointer ui_data
UI private data.
GList * rooms
The list of rooms.
GList * fields
The fields.
PurpleAccount * account
The account this list belongs to.
guint ref
Prpl private data.