comparison libpurple/request.h @ 21564:ad718740aa71

disapproval of revision 'ea579831d8561ac6b0cde4b034383b02b3e51ae5'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 17 Nov 2007 01:55:40 +0000
parents e98c08afb706
children 554cb1447d06
comparison
equal deleted inserted replaced
21221:e98c08afb706 21564:ad718740aa71
1183 * @param flag Flags dictating what kind of blist nodes should be 1183 * @param flag Flags dictating what kind of blist nodes should be
1184 * included in the request field. 1184 * included in the request field.
1185 * @param selected A list of PurpleBlistNode's to select by default, or @c NULL. 1185 * @param selected A list of PurpleBlistNode's to select by default, or @c NULL.
1186 * 1186 *
1187 * @return The new field. 1187 * @return The new field.
1188 *
1189 * @since 2.3.0
1190 */ 1188 */
1191 PurpleRequestField *purple_request_field_blist_nodes_new(const char *id, const char *text, 1189 PurpleRequestField *purple_request_field_blist_nodes_new(const char *id, const char *text,
1192 PurpleRequestBlistFlags flag, GList *selected); 1190 PurpleRequestBlistFlags flag, GList *selected);
1193 1191
1194 /** 1192 /**
1196 * 1194 *
1197 * @param field The request field. 1195 * @param field The request field.
1198 * @param filter The filter function. 1196 * @param filter The filter function.
1199 * 1197 *
1200 * @return The old filter function, or @c NULL if there was none. 1198 * @return The old filter function, or @c NULL if there was none.
1201 *
1202 * @since 2.3.0
1203 */ 1199 */
1204 PurpleFilterBlistFunc purple_request_field_blist_set_filter(PurpleRequestField *field, PurpleFilterBlistFunc filter); 1200 PurpleFilterBlistFunc purple_request_field_blist_set_filter(PurpleRequestField *field, PurpleFilterBlistFunc filter);
1205 1201
1206 /** 1202 /**
1207 * Get the filter function for the request field. 1203 * Get the filter function for the request field.
1208 * 1204 *
1209 * @param field The request field. 1205 * @param field The request field.
1210 * 1206 *
1211 * @return The filter function, or @c NULL if there isn't any. 1207 * @return The filter function, or @c NULL if there isn't any.
1212 *
1213 * @since 2.3.0
1214 */ 1208 */
1215 PurpleFilterBlistFunc purple_request_field_blist_get_filter(const PurpleRequestField *field); 1209 PurpleFilterBlistFunc purple_request_field_blist_get_filter(const PurpleRequestField *field);
1216 1210
1217 /** 1211 /**
1218 * Add a PurpleBlistNode to the selected list. 1212 * Add a PurpleBlistNode to the selected list.
1219 * 1213 *
1220 * @param field The request field. 1214 * @param field The request field.
1221 * @param node The buddylist node to add to the list. 1215 * @param node The buddylist node to add to the list.
1222 * 1216 *
1223 * @return @c TRUE if the node is added to the list, @c FALSE if it was already in the list. 1217 * @return @c TRUE if the node is added to the list, @c FALSE if it was already in the list.
1224 *
1225 * @since 2.3.0
1226 */ 1218 */
1227 gboolean purple_request_field_blist_add(PurpleRequestField *field, PurpleBlistNode *node); 1219 gboolean purple_request_field_blist_add(PurpleRequestField *field, PurpleBlistNode *node);
1228 1220
1229 /** 1221 /**
1230 * Remove a PurpleBlistNode from the selected list. 1222 * Remove a PurpleBlistNode from the selected list.
1231 * 1223 *
1232 * @param field The request field. 1224 * @param field The request field.
1233 * @param node The buddylist node to remove from the list. 1225 * @param node The buddylist node to remove from the list.
1234 * 1226 *
1235 * @return @c TRUE if the node is removed from the list, @c FALSE if the node is not in the list. 1227 * @return @c TRUE if the node is removed from the list, @c FALSE if the node is not in the list.
1236 *
1237 * @since 2.3.0
1238 */ 1228 */
1239 gboolean purple_request_field_blist_remove(PurpleRequestField *field, PurpleBlistNode *node); 1229 gboolean purple_request_field_blist_remove(PurpleRequestField *field, PurpleBlistNode *node);
1240 1230
1241 /** 1231 /**
1242 * Set the list of selected nodes in the request field. 1232 * Set the list of selected nodes in the request field.
1243 * 1233 *
1244 * @param field The request field. 1234 * @param field The request field.
1245 * @param selecteds The list of selected PurpleBlistNode's. Note that the request field 1235 * @param selecteds The list of selected PurpleBlistNode's. Note that the request field
1246 * becomes the owner of the list, and so the caller should not modify it. 1236 * becomes the owner of the list, and so the caller should not modify it.
1247 *
1248 * @since 2.3.0
1249 */ 1237 */
1250 void purple_request_field_blist_set_selection_list(PurpleRequestField *field, GList *selecteds); 1238 void purple_request_field_blist_set_selection_list(PurpleRequestField *field, GList *selecteds);
1251 1239
1252 /** 1240 /**
1253 * Get a list of the selected buddylist nodes. 1241 * Get a list of the selected buddylist nodes.
1254 * 1242 *
1255 * @param field The request field. 1243 * @param field The request field.
1256 * 1244 *
1257 * @return A GList of PurpleBlistNode's. 1245 * @return A GList of PurpleBlistNode's.
1258 *
1259 * @since 2.3.0
1260 */ 1246 */
1261 GList *purple_request_field_blist_get_selection_list(const PurpleRequestField *field); 1247 GList *purple_request_field_blist_get_selection_list(const PurpleRequestField *field);
1262 1248
1263 /*@}*/ 1249 /*@}*/
1264 1250