comparison src/blist.h @ 7060:9946001989a3

[gaim-migrate @ 7623] show_add_buddy, show_add_chat, and show_add_group are gone, replaced with the new core/UI split gaim_blist_request_add_{buddy,chat,group}. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 30 Sep 2003 05:48:42 +0000
parents feb3d21a7794
children 770233dad86c
comparison
equal deleted inserted replaced
7059:e36cbed14f1e 7060:9946001989a3
168 void (*remove)(struct gaim_buddy_list *list, 168 void (*remove)(struct gaim_buddy_list *list,
169 GaimBlistNode *node); /**< This removes a node from the list */ 169 GaimBlistNode *node); /**< This removes a node from the list */
170 void (*destroy)(struct gaim_buddy_list *list); /**< When the list gets destroyed, this gets called to destroy the UI. */ 170 void (*destroy)(struct gaim_buddy_list *list); /**< When the list gets destroyed, this gets called to destroy the UI. */
171 void (*set_visible)(struct gaim_buddy_list *list, 171 void (*set_visible)(struct gaim_buddy_list *list,
172 gboolean show); /**< Hides or unhides the buddy list */ 172 gboolean show); /**< Hides or unhides the buddy list */
173 173 void (*request_add_buddy)(GaimAccount *account, const char *username,
174 const char *group, const char *alias);
175 void (*request_add_chat)(GaimAccount *account, GaimGroup *group);
176 void (*request_add_group)(void);
174 }; 177 };
175 178
176 #ifdef __cplusplus 179 #ifdef __cplusplus
177 extern "C" { 180 extern "C" {
178 #endif 181 #endif
667 * Loads the buddy list from ~/.gaim/blist.xml. 670 * Loads the buddy list from ~/.gaim/blist.xml.
668 */ 671 */
669 void gaim_blist_load(); 672 void gaim_blist_load();
670 673
671 /** 674 /**
675 * Requests from the user information needed to add a buddy to the
676 * buddy list.
677 *
678 * @param account The account the buddy is added to.
679 * @param username The username of the buddy.
680 * @param group The name of the group to place the buddy in.
681 * @param alias The optional alias for the buddy.
682 */
683 void gaim_blist_request_add_buddy(GaimAccount *account, const char *username,
684 const char *group, const char *alias);
685
686 /**
687 * Requests from the user information needed to add a chat to the
688 * buddy list.
689 *
690 * @param account The account the buddy is added to.
691 * @param group The optional group to add the chat to.
692 */
693 void gaim_blist_request_add_chat(GaimAccount *account, GaimGroup *group);
694
695 /**
696 * Requests from the user information needed to add a group to the
697 * buddy list.
698 */
699 void gaim_blist_request_add_group(void);
700
701 /**
672 * Associates some data with the group in the xml buddy list 702 * Associates some data with the group in the xml buddy list
673 * 703 *
674 * @param g The group the data is associated with 704 * @param g The group the data is associated with
675 * @param key The key used to retrieve the data 705 * @param key The key used to retrieve the data
676 * @param value The data to set 706 * @param value The data to set