changeset 21566:593d119b7980

disapproval of revision 'c52c996c95bec84928db81dc592640366ff5a432'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 14 Nov 2007 02:40:56 +0000
parents 9faacf8aa044
children d98b612d3f75
files libpurple/request.h
diffstat 1 files changed, 1 insertions(+), 99 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/request.h	Thu Oct 04 04:15:56 2007 +0000
+++ b/libpurple/request.h	Wed Nov 14 02:40:56 2007 +0000
@@ -61,8 +61,7 @@
 	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 @@
 } 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 @@
 			gsize size;
 		} image;
 
-		struct
-		{
-			GList *default_nodes;
-			PurpleRequestBlistFlags flags;
-			GList *selecteds;
-			PurpleFilterBlistFunc filter;
-		} blist;
-
 	} u;
 
 	void *ui_data;
@@ -1171,84 +1151,6 @@
 /*@}*/
 
 /**************************************************************************/
-/** @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                                                     */
 /**************************************************************************/
 /*@{*/