im.pidgin.pidgin: 936967b97a8afdc95b54fe92924ef7c0414bea42
sadrul at pidgin.im
sadrul at pidgin.im
Fri Nov 16 21:38:29 EST 2007
-----------------------------------------------------------------
Revision: 936967b97a8afdc95b54fe92924ef7c0414bea42
Ancestor: c52c996c95bec84928db81dc592640366ff5a432
Author: sadrul at pidgin.im
Date: 2007-11-17T02:19:52
Date: 2007-11-14T02:40:56
Branch: im.pidgin.pidgin
Modified files:
libpurple/request.h
ChangeLog:
disapproval of revision 'c52c996c95bec84928db81dc592640366ff5a432'
-------------- next part --------------
============================================================
--- libpurple/request.h a45e726c9c0e2475a864fd7190fce805ac5c2259
+++ libpurple/request.h 832c46bcbd175225578ce07d5510340823285b2f
@@ -61,8 +61,7 @@ typedef enum
PURPLE_REQUEST_FIELD_LIST,
PURPLE_REQUEST_FIELD_LABEL,
PURPLE_REQUEST_FIELD_IMAGE,
- PURPLE_REQUEST_FIELD_ACCOUNT,
- PURPLE_REQUEST_FIELD_BLIST,
+ PURPLE_REQUEST_FIELD_ACCOUNT
} PurpleRequestFieldType;
@@ -95,17 +94,6 @@ typedef struct
} PurpleRequestFieldGroup;
/**
- * Flags that can be used for Buddylist Fields.
- */
-typedef enum
-{
- PURPLE_REQUEST_BLIST_FLAG_BUDDY = 0x01, /**< Include buddies in the list. */
- PURPLE_REQUEST_BLIST_FLAG_CHAT = 0x02, /**< Include chats in the list. */
- PURPLE_REQUEST_BLIST_FLAG_GROUP = 0x04, /**< Include groups in the list. */
- PURPLE_REQUEST_BLIST_FLAG_ALLOW_OFFLINE = 0x08, /**< Include offline buddies in the list. */
-} PurpleRequestBlistFlags;
-
-/**
* A request field.
*/
typedef struct
@@ -184,14 +172,6 @@ typedef struct
gsize size;
} image;
- struct
- {
- GList *default_nodes;
- PurpleRequestBlistFlags flags;
- GList *selecteds;
- PurpleFilterBlistFunc filter;
- } blist;
-
} u;
void *ui_data;
@@ -1171,84 +1151,6 @@ PurpleFilterAccountFunc purple_request_f
/*@}*/
/**************************************************************************/
-/** @name Buddylist Field API */
-/**************************************************************************/
-/*@{*/
-
-/**
- * Creates a buddylist field.
- *
- * @param id The field ID.
- * @param text The label for the field.
- * @param flag Flags dictating what kind of blist nodes should be
- * included in the request field.
- * @param selected A list of PurpleBlistNode's to select by default, or @c NULL.
- *
- * @return The new field.
- */
-PurpleRequestField *purple_request_field_blist_nodes_new(const char *id, const char *text,
- PurpleRequestBlistFlags flag, GList *selected);
-
-/**
- * Set a filter for the request field.
- *
- * @param field The request field.
- * @param filter The filter function.
- *
- * @return The old filter function, or @c NULL if there was none.
- */
-PurpleFilterBlistFunc purple_request_field_blist_set_filter(PurpleRequestField *field, PurpleFilterBlistFunc filter);
-
-/**
- * Get the filter function for the request field.
- *
- * @param field The request field.
- *
- * @return The filter function, or @c NULL if there isn't any.
- */
-PurpleFilterBlistFunc purple_request_field_blist_get_filter(const PurpleRequestField *field);
-
-/**
- * Add a PurpleBlistNode to the selected list.
- *
- * @param field The request field.
- * @param node The buddylist node to add to the list.
- *
- * @return @c TRUE if the node is added to the list, @c FALSE if it was already in the list.
- */
-gboolean purple_request_field_blist_add(PurpleRequestField *field, PurpleBlistNode *node);
-
-/**
- * Remove a PurpleBlistNode from the selected list.
- *
- * @param field The request field.
- * @param node The buddylist node to remove from the list.
- *
- * @return @c TRUE if the node is removed from the list, @c FALSE if the node is not in the list.
- */
-gboolean purple_request_field_blist_remove(PurpleRequestField *field, PurpleBlistNode *node);
-
-/**
- * Set the list of selected nodes in the request field.
- *
- * @param field The request field.
- * @param selecteds The list of selected PurpleBlistNode's. Note that the request field
- * becomes the owner of the list, and so the caller should not modify it.
- */
-void purple_request_field_blist_set_selection_list(PurpleRequestField *field, GList *selecteds);
-
-/**
- * Get a list of the selected buddylist nodes.
- *
- * @param field The request field.
- *
- * @return A GList of PurpleBlistNode's.
- */
-GList *purple_request_field_blist_get_selection_list(const PurpleRequestField *field);
-
-/*@}*/
-
-/**************************************************************************/
/** @name Request API */
/**************************************************************************/
/*@{*/
More information about the Commits
mailing list