diff 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
line wrap: on
line diff
--- a/src/blist.h	Tue Sep 30 05:46:16 2003 +0000
+++ b/src/blist.h	Tue Sep 30 05:48:42 2003 +0000
@@ -170,7 +170,10 @@
 	void (*destroy)(struct gaim_buddy_list *list);  /**< When the list gets destroyed, this gets called to destroy the UI. */
 	void (*set_visible)(struct gaim_buddy_list *list,
 			    gboolean show);             /**< Hides or unhides the buddy list */
-
+	void (*request_add_buddy)(GaimAccount *account, const char *username,
+							  const char *group, const char *alias);
+	void (*request_add_chat)(GaimAccount *account, GaimGroup *group);
+	void (*request_add_group)(void);
 };
 
 #ifdef __cplusplus
@@ -669,6 +672,33 @@
 void gaim_blist_load();
 
 /**
+ * Requests from the user information needed to add a buddy to the
+ * buddy list.
+ *
+ * @param account  The account the buddy is added to.
+ * @param username The username of the buddy.
+ * @param group    The name of the group to place the buddy in.
+ * @param alias    The optional alias for the buddy.
+ */
+void gaim_blist_request_add_buddy(GaimAccount *account, const char *username,
+								  const char *group, const char *alias);
+
+/**
+ * Requests from the user information needed to add a chat to the
+ * buddy list.
+ *
+ * @param account The account the buddy is added to.
+ * @param group   The optional group to add the chat to.
+ */
+void gaim_blist_request_add_chat(GaimAccount *account, GaimGroup *group);
+
+/**
+ * Requests from the user information needed to add a group to the
+ * buddy list.
+ */
+void gaim_blist_request_add_group(void);
+
+/**
  * Associates some data with the group in the xml buddy list
  *
  * @param g      The group the data is associated with