Thu, 06 Feb 2014 21:03:55 +0530
Merge gtkdoc-conversion
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* purple |
| 5228 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
6 | * |
| 5228 | 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18414
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5228 | 20 | */ |
|
35433
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
21 | /** |
|
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
22 | * SECTION:buddylist |
|
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
23 | * @section_id: libpurple-buddylist |
|
35436
a69d2e5604c5
Swap @title and @short_description roles
Ankit Vani <a@nevitus.org>
parents:
35433
diff
changeset
|
24 | * @short_description: <filename>buddylist.h</filename> |
|
a69d2e5604c5
Swap @title and @short_description roles
Ankit Vani <a@nevitus.org>
parents:
35433
diff
changeset
|
25 | * @title: Buddy List API |
|
35433
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
26 | * @see_also: <link linkend="chapter-signals-blist">Buddy List signals</link> |
|
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
27 | */ |
|
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
28 | |
|
34710
6182323fbb0c
Renamed gg's buddylist.[ch] to blist.[ch]
Ankit Vani <a@nevitus.org>
parents:
34709
diff
changeset
|
29 | #ifndef _PURPLE_BUDDY_LIST_H_ |
|
6182323fbb0c
Renamed gg's buddylist.[ch] to blist.[ch]
Ankit Vani <a@nevitus.org>
parents:
34709
diff
changeset
|
30 | #define _PURPLE_BUDDY_LIST_H_ |
| 5228 | 31 | |
| 32 | /* I can't believe I let ChipX86 inspire me to write good code. -Sean */ | |
| 33 | ||
|
34707
d433bf40792a
Added blistnode.[ch] and blistnodetypes.[ch]
Ankit Vani <a@nevitus.org>
parents:
34706
diff
changeset
|
34 | #include "blistnodetypes.h" |
| 5228 | 35 | |
|
34789
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
36 | #define PURPLE_TYPE_BUDDY_LIST (purple_buddy_list_get_type()) |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
37 | #define PURPLE_BUDDY_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_BUDDY_LIST, PurpleBuddyList)) |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
38 | #define PURPLE_BUDDY_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_BUDDY_LIST, PurpleBuddyListClass)) |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
39 | #define PURPLE_IS_BUDDY_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_BUDDY_LIST)) |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
40 | #define PURPLE_IS_BUDDY_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_BUDDY_LIST)) |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
41 | #define PURPLE_BUDDY_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_BUDDY_LIST, PurpleBuddyListClass)) |
|
34725
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
42 | |
|
34789
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
43 | typedef struct _PurpleBuddyList PurpleBuddyList; |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
44 | typedef struct _PurpleBuddyListClass PurpleBuddyListClass; |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
45 | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
46 | typedef struct _PurpleBlistUiOps PurpleBlistUiOps; |
|
24968
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
47 | |
| 5228 | 48 | /**************************************************************************/ |
| 49 | /* Data Structures */ | |
| 50 | /**************************************************************************/ | |
|
34725
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
51 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
52 | * PurpleBuddyList: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
53 | * @root: The first node in the buddy list |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
54 | * @ui_data: The UI data associated with this buddy list. This is a convenience |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
55 | * field provided to the UIs -- it is not used by the libpurple core. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
56 | * |
| 5228 | 57 | * The Buddy List |
| 58 | */ | |
| 15884 | 59 | struct _PurpleBuddyList { |
|
34789
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
60 | GObject gparent; |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
61 | |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
62 | /*< public >*/ |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
63 | PurpleBlistNode *root; |
|
34789
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
64 | gpointer ui_data; |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
65 | }; |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
66 | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
67 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
68 | * PurpleBuddyListClass: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
69 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
70 | * The base class for all #PurpleBuddyList's. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
71 | */ |
|
34789
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
72 | struct _PurpleBuddyListClass { |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
73 | GObjectClass gparent_class; |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
74 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
75 | /*< private >*/ |
|
34789
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
76 | void (*_purple_reserved1)(void); |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
77 | void (*_purple_reserved2)(void); |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
78 | void (*_purple_reserved3)(void); |
|
9b185d915f57
Started GObjectification of PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34788
diff
changeset
|
79 | void (*_purple_reserved4)(void); |
|
34690
bac0fdf2cf1b
Begun GObjectification of buddy list. Hid private data and added class structs.
Ankit Vani <a@nevitus.org>
parents:
33888
diff
changeset
|
80 | }; |
|
bac0fdf2cf1b
Begun GObjectification of buddy list. Hid private data and added class structs.
Ankit Vani <a@nevitus.org>
parents:
33888
diff
changeset
|
81 | |
| 12054 | 82 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
83 | * PurpleBlistUiOps: |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
84 | * @new_list: Sets UI-specific data on a buddy list. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
85 | * @new_node: Sets UI-specific data on a node. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
86 | * @show: The core will call this when it's finished doing its core |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
87 | * stuff |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
88 | * @update: This will update a node in the buddy list. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
89 | * @remove: This removes a node from the list |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
90 | * @destroy: When the list is destroyed, this is called to destroy the UI. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
91 | * @set_visible: Hides or unhides the buddy list |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
92 | * @save_node: This is called when a node has been modified and should be |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
93 | * saved. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
94 | * <sbr/>Implementation of this UI op is |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
95 | * <emphasis>OPTIONAL</emphasis>. If not implemented, it will be |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
96 | * set to a fallback function that saves data to |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
97 | * <filename>blist.xml</filename> like in previous libpurple |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
98 | * versions. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
99 | * <sbr/>@node: The node which has been modified. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
100 | * @remove_node: Called when a node is about to be removed from the buddy list. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
101 | * The UI op should update the relevant data structures to remove |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
102 | * this node (for example, removing a buddy from the group this |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
103 | * node is in). |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
104 | * <sbr/>Implementation of this UI op is |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
105 | * <emphasis>OPTIONAL</emphasis>. If not implemented, |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
106 | * it will be set to a fallback function that saves data to |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
107 | * <filename>blist.xml</filename> like in previous libpurple |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
108 | * versions. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
109 | * <sbr/>@node: The node which has been modified. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
110 | * @save_account: Called to save all the data for an account. If the UI sets |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
111 | * this, the callback must save the privacy and buddy list data |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
112 | * for an account. If the account is %NULL, save the data for all |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
113 | * accounts. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
114 | * <sbr/>Implementation of this UI op is |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
115 | * <emphasis>OPTIONAL</emphasis>. If not implemented, it will be |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
116 | * set to a fallback function that saves data to |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
117 | * <filename>blist.xml</filename> like in previous |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
118 | * libpurple versions. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
119 | * <sbr/>@account: The account whose data to save. If %NULL, |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
120 | * save all data for all accounts. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
121 | * |
| 12054 | 122 | * Buddy list UI operations. |
| 123 | * | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
124 | * Any UI representing a buddy list must assign a filled-out PurpleBlistUiOps |
| 12054 | 125 | * structure to the buddy list core. |
| 126 | */ | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
127 | struct _PurpleBlistUiOps |
| 12054 | 128 | { |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
129 | void (*new_list)(PurpleBuddyList *list); |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
130 | void (*new_node)(PurpleBlistNode *node); |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
131 | void (*show)(PurpleBuddyList *list); |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
132 | void (*update)(PurpleBuddyList *list, PurpleBlistNode *node); |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
133 | void (*remove)(PurpleBuddyList *list, PurpleBlistNode *node); |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
134 | void (*destroy)(PurpleBuddyList *list); |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
135 | void (*set_visible)(PurpleBuddyList *list, gboolean show); |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
136 | |
| 15884 | 137 | void (*request_add_buddy)(PurpleAccount *account, const char *username, |
| 12054 | 138 | const char *group, const char *alias); |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
139 | |
| 15884 | 140 | void (*request_add_chat)(PurpleAccount *account, PurpleGroup *group, |
| 12054 | 141 | const char *alias, const char *name); |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
142 | |
| 12054 | 143 | void (*request_add_group)(void); |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
144 | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
145 | void (*save_node)(PurpleBlistNode *node); |
|
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
146 | void (*remove_node)(PurpleBlistNode *node); |
|
27969
ed5bf3c3e328
Add blist ui-ops to overload the saving of data to blist.xml. Closes #9630.
Jan Kaluza <hanzz.k@gmail.com>
parents:
27739
diff
changeset
|
147 | |
|
ed5bf3c3e328
Add blist ui-ops to overload the saving of data to blist.xml. Closes #9630.
Jan Kaluza <hanzz.k@gmail.com>
parents:
27739
diff
changeset
|
148 | void (*save_account)(PurpleAccount *account); |
|
ed5bf3c3e328
Add blist ui-ops to overload the saving of data to blist.xml. Closes #9630.
Jan Kaluza <hanzz.k@gmail.com>
parents:
27739
diff
changeset
|
149 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
150 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
151 | void (*_purple_reserved1)(void); |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
152 | void (*_purple_reserved2)(void); |
|
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
153 | void (*_purple_reserved3)(void); |
|
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
154 | void (*_purple_reserved4)(void); |
| 12054 | 155 | }; |
| 156 | ||
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32714
diff
changeset
|
157 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
158 | |
| 5228 | 159 | /**************************************************************************/ |
| 35472 | 160 | /* Buddy List API */ |
| 5228 | 161 | /**************************************************************************/ |
| 162 | /*@{*/ | |
| 34733 | 163 | |
| 5228 | 164 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
165 | * purple_buddy_list_get_type: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
166 | * |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
167 | * Returns: The #GType for the #PurpleBuddyList object. |
|
34725
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
168 | */ |
|
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
169 | GType purple_buddy_list_get_type(void); |
|
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
170 | |
|
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
171 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
172 | * purple_blist_get_buddy_list: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
173 | * |
| 5228 | 174 | * Returns the main buddy list. |
| 175 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
176 | * Returns: The main buddy list. |
| 5228 | 177 | */ |
|
34726
af52ff6660c0
Replaced purple_get_blist() with purple_blist_get_buddy_list()
Ankit Vani <a@nevitus.org>
parents:
34725
diff
changeset
|
178 | PurpleBuddyList *purple_blist_get_buddy_list(void); |
| 5228 | 179 | |
| 180 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
181 | * purple_blist_get_root: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
182 | * |
| 13485 | 183 | * Returns the root node of the main buddy list. |
| 184 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
185 | * Returns: The root node. |
| 13485 | 186 | */ |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
187 | PurpleBlistNode *purple_blist_get_root(void); |
| 13485 | 188 | |
| 189 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
190 | * purple_blist_get_buddies: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
191 | * |
|
26994
2dbadd391e9c
Me fail English? That's unpossible!
Paul Aurich <darkrain42@pidgin.im>
parents:
26990
diff
changeset
|
192 | * Returns a list of every buddy in the list. Use of this function is |
|
2dbadd391e9c
Me fail English? That's unpossible!
Paul Aurich <darkrain42@pidgin.im>
parents:
26990
diff
changeset
|
193 | * discouraged if you do not actually need every buddy in the list. Use |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
194 | * purple_blist_find_buddies instead. |
|
26388
b692a63519cb
Exposing the GHashTable seems crazy to me. See #8644.
Paul Aurich <darkrain42@pidgin.im>
parents:
25889
diff
changeset
|
195 | * |
| 35476 | 196 | * See purple_blist_find_buddies(). |
| 197 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
198 | * Returns: A list of every buddy in the list. Caller is responsible for |
| 35476 | 199 | * freeing the list. |
| 24953 | 200 | */ |
|
26767
7489049a3bde
Change purple_blist_get_buddies to return a list instead of the hash table.
Paul Aurich <darkrain42@pidgin.im>
parents:
26742
diff
changeset
|
201 | GSList *purple_blist_get_buddies(void); |
| 24953 | 202 | |
| 203 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
204 | * purple_blist_get_ui_data: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
205 | * |
|
24968
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
206 | * Returns the UI data for the list. |
|
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
207 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
208 | * Returns: The UI data for the list. |
|
24968
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
209 | */ |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
210 | gpointer purple_blist_get_ui_data(void); |
|
24968
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
211 | |
|
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
212 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
213 | * purple_blist_set_ui_data: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
214 | * @ui_data: The UI data for the list. |
|
24968
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
215 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
216 | * Sets the UI data for the list. |
|
24968
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
217 | */ |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
218 | void purple_blist_set_ui_data(gpointer ui_data); |
|
24968
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
219 | |
|
2d500d10773f
Added purple_blist_get_ui_data, purple_blist_set_ui_data, purple_blist_node_get_ui_data, and purple_blist_node_set_ui_data functions.
Gary Kramlich <grim@reaperworld.com>
parents:
24957
diff
changeset
|
220 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
221 | * purple_blist_show: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
222 | * |
| 5228 | 223 | * Shows the buddy list, creating a new one if necessary. |
| 224 | */ | |
| 15884 | 225 | void purple_blist_show(void); |
| 5228 | 226 | |
| 227 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
228 | * purple_blist_set_visible: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
229 | * @show: Whether or not to show the buddy list |
| 5228 | 230 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
231 | * Hides or unhides the buddy list. |
| 5228 | 232 | */ |
| 15884 | 233 | void purple_blist_set_visible(gboolean show); |
| 5228 | 234 | |
| 235 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
236 | * purple_blist_update_buddies_cache: |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
237 | * @buddy: The buddy whose name will be changed. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
238 | * @new_name: The new name of the buddy. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
239 | * |
|
34727
579e9a8dbd5f
Moved methods from buddylist.[ch] to the appropriate object files
Ankit Vani <a@nevitus.org>
parents:
34726
diff
changeset
|
240 | * Updates the buddies hash table when a buddy has been renamed. This only |
|
579e9a8dbd5f
Moved methods from buddylist.[ch] to the appropriate object files
Ankit Vani <a@nevitus.org>
parents:
34726
diff
changeset
|
241 | * updates the cache, the caller is responsible for the actual renaming of |
|
579e9a8dbd5f
Moved methods from buddylist.[ch] to the appropriate object files
Ankit Vani <a@nevitus.org>
parents:
34726
diff
changeset
|
242 | * the buddy after updating the cache. |
| 5228 | 243 | */ |
|
34729
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
244 | void purple_blist_update_buddies_cache(PurpleBuddy *buddy, const char *new_name); |
|
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
245 | |
|
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
246 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
247 | * purple_blist_update_groups_cache: |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
248 | * @group: The group whose name will be changed. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
249 | * @new_name: The new name of the group. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
250 | * |
|
34729
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
251 | * Updates the groups hash table when a group has been renamed. This only |
|
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
252 | * updates the cache, the caller is responsible for the actual renaming of |
|
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
253 | * the group after updating the cache. |
|
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
254 | */ |
|
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
255 | void purple_blist_update_groups_cache(PurpleGroup *group, const char *new_name); |
| 5228 | 256 | |
| 5234 | 257 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
258 | * purple_blist_add_chat: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
259 | * @chat: The new chat who gets added |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
260 | * @group: The group to add the new chat to. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
261 | * @node: The insertion point |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
262 | * |
| 5234 | 263 | * Adds a new chat to the buddy list. |
| 264 | * | |
| 265 | * The chat will be inserted right after node or appended to the end | |
| 266 | * of group if node is NULL. If both are NULL, the buddy will be added to | |
| 267 | * the "Chats" group. | |
| 268 | */ | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
269 | void purple_blist_add_chat(PurpleChat *chat, PurpleGroup *group, PurpleBlistNode *node); |
| 5228 | 270 | |
| 271 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
272 | * purple_blist_add_buddy: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
273 | * @buddy: The new buddy who gets added |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
274 | * @contact: The optional contact to place the buddy in. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
275 | * @group: The group to add the new buddy to. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
276 | * @node: The insertion point. Pass in NULL to add the node as |
|
26471
f02860c88d01
Uh, I think this comment is wrong. Or the code is wrong and does silly
Mark Doliner <markdoliner@pidgin.im>
parents:
25889
diff
changeset
|
277 | * the first child in the given group. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
278 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
279 | * Adds a new buddy to the buddy list. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
280 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
281 | * The buddy will be inserted right after node or prepended to the |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
282 | * group if node is NULL. If both are NULL, the buddy will be added to |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
283 | * the "Buddies" group. |
| 5228 | 284 | */ |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
285 | void purple_blist_add_buddy(PurpleBuddy *buddy, PurpleContact *contact, PurpleGroup *group, PurpleBlistNode *node); |
| 5228 | 286 | |
| 287 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
288 | * purple_blist_add_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
289 | * @group: The group |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
290 | * @node: The insertion point |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
291 | * |
| 5228 | 292 | * Adds a new group to the buddy list. |
| 293 | * | |
| 6695 | 294 | * The new group will be inserted after insert or prepended to the list if |
| 295 | * node is NULL. | |
| 296 | */ | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
297 | void purple_blist_add_group(PurpleGroup *group, PurpleBlistNode *node); |
| 6695 | 298 | |
| 299 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
300 | * purple_blist_add_contact: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
301 | * @contact: The contact |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
302 | * @group: The group to add the contact to |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
303 | * @node: The insertion point |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
304 | * |
| 6695 | 305 | * Adds a new contact to the buddy list. |
| 306 | * | |
| 307 | * The new contact will be inserted after insert or prepended to the list if | |
| 308 | * node is NULL. | |
| 309 | */ | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
310 | void purple_blist_add_contact(PurpleContact *contact, PurpleGroup *group, PurpleBlistNode *node); |
| 6695 | 311 | |
| 312 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
313 | * purple_blist_remove_buddy: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
314 | * @buddy: The buddy to be removed |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
315 | * |
| 5228 | 316 | * Removes a buddy from the buddy list and frees the memory allocated to it. |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
317 | * This doesn't actually try to remove the buddy from the server list. |
| 5228 | 318 | * |
| 35471 | 319 | * See purple_account_remove_buddy(). |
| 5228 | 320 | */ |
| 15884 | 321 | void purple_blist_remove_buddy(PurpleBuddy *buddy); |
| 6695 | 322 | |
| 323 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
324 | * purple_blist_remove_contact: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
325 | * @contact: The contact to be removed |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
326 | * |
| 6695 | 327 | * Removes a contact, and any buddies it contains, and frees the memory |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
328 | * allocated to it. This calls purple_blist_remove_buddy and therefore |
|
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
329 | * doesn't remove the buddies from the server list. |
| 6695 | 330 | * |
| 35471 | 331 | * See purple_blist_remove_buddy(). |
| 6695 | 332 | */ |
| 15884 | 333 | void purple_blist_remove_contact(PurpleContact *contact); |
| 5228 | 334 | |
| 335 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
336 | * purple_blist_remove_chat: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
337 | * @chat: The chat to be removed |
| 5234 | 338 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
339 | * Removes a chat from the buddy list and frees the memory allocated to it. |
| 5234 | 340 | */ |
| 15884 | 341 | void purple_blist_remove_chat(PurpleChat *chat); |
| 5234 | 342 | |
| 343 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
344 | * purple_blist_remove_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
345 | * @group: The group to be removed |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
346 | * |
| 5228 | 347 | * Removes a group from the buddy list and frees the memory allocated to it and to |
| 348 | * its children | |
| 349 | */ | |
| 15884 | 350 | void purple_blist_remove_group(PurpleGroup *group); |
| 5228 | 351 | |
| 6744 | 352 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
353 | * purple_blist_find_buddy: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
354 | * @account: The account this buddy belongs to |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
355 | * @name: The buddy's name |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
356 | * |
|
25889
26d9ca30335c
Change "screen name" to "username" or "buddy name" in a whole bunch of
Mark Doliner <markdoliner@pidgin.im>
parents:
25888
diff
changeset
|
357 | * Finds the buddy struct given a name and an account |
| 5228 | 358 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
359 | * Returns: The buddy or NULL if the buddy does not exist |
| 5228 | 360 | */ |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
361 | PurpleBuddy *purple_blist_find_buddy(PurpleAccount *account, const char *name); |
| 6245 | 362 | |
| 363 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
364 | * purple_blist_find_buddy_in_group: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
365 | * @account: The account this buddy belongs to |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
366 | * @name: The buddy's name |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
367 | * @group: The group to look in |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
368 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
369 | * Finds the buddy struct given a name, an account, and a group |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
370 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
371 | * Returns: The buddy or NULL if the buddy does not exist in the group |
| 6872 | 372 | */ |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
373 | PurpleBuddy *purple_blist_find_buddy_in_group(PurpleAccount *account, const char *name, |
| 15884 | 374 | PurpleGroup *group); |
| 6872 | 375 | |
| 376 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
377 | * purple_blist_find_buddies: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
378 | * @account: The account this buddy belongs to |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
379 | * @name: The buddy's name (or NULL to return all buddies for the account) |
| 6245 | 380 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
381 | * Finds all PurpleBuddy structs given a name and an account |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
382 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
383 | * Returns: NULL if the buddy doesn't exist, or a GSList of |
|
33888
5338b7ae4f73
Be more clear in the doc about what should be freed.
Mark Doliner <mark@kingant.net>
parents:
33643
diff
changeset
|
384 | * PurpleBuddy structs. You must free the GSList using |
|
5338b7ae4f73
Be more clear in the doc about what should be freed.
Mark Doliner <mark@kingant.net>
parents:
33643
diff
changeset
|
385 | * g_slist_free. Do not free the PurpleBuddy structs that |
|
5338b7ae4f73
Be more clear in the doc about what should be freed.
Mark Doliner <mark@kingant.net>
parents:
33643
diff
changeset
|
386 | * the list points to. |
| 6245 | 387 | */ |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
388 | GSList *purple_blist_find_buddies(PurpleAccount *account, const char *name); |
| 6245 | 389 | |
| 5228 | 390 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
391 | * purple_blist_find_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
392 | * @name: The group's name |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
393 | * |
| 5228 | 394 | * Finds a group by name |
| 395 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
396 | * Returns: The group or NULL if the group does not exist |
| 5228 | 397 | */ |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
398 | PurpleGroup *purple_blist_find_group(const char *name); |
| 6695 | 399 | |
| 400 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
401 | * purple_blist_find_chat: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
402 | * @account: The chat's account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
403 | * @name: The chat's name. |
|
6456
e4e7dee16c1a
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
404 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
405 | * Finds a chat by name. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
406 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
407 | * Returns: The chat, or %NULL if the chat does not exist. |
|
6456
e4e7dee16c1a
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
408 | */ |
| 15884 | 409 | PurpleChat *purple_blist_find_chat(PurpleAccount *account, const char *name); |
|
6456
e4e7dee16c1a
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
410 | |
|
e4e7dee16c1a
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
411 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
412 | * purple_blist_add_account: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
413 | * @account: The account |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
414 | * |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
415 | * Called when an account connects. Tells the UI to update all the |
| 5234 | 416 | * buddies. |
| 417 | */ | |
| 15884 | 418 | void purple_blist_add_account(PurpleAccount *account); |
| 5234 | 419 | |
| 420 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
421 | * purple_blist_remove_account: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
422 | * @account: The account |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
423 | * |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
424 | * Called when an account disconnects. Sets the presence of all the buddies to 0 |
| 5228 | 425 | * and tells the UI to update them. |
| 426 | */ | |
| 15884 | 427 | void purple_blist_remove_account(PurpleAccount *account); |
| 5228 | 428 | |
| 429 | /*@}*/ | |
| 430 | ||
| 431 | /****************************************************************************************/ | |
| 35472 | 432 | /* Buddy list file management API */ |
| 5228 | 433 | /****************************************************************************************/ |
| 434 | ||
| 435 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
436 | * purple_blist_schedule_save: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
437 | * |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
438 | * Schedule a save of the <filename>blist.xml</filename> file. This is used by |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
439 | * the account API whenever the privacy settings are changed. If you make a |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
440 | * change to <filename>blist.xml</filename> using one of the functions in the |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
441 | * buddy list API, then the buddy list is saved automatically, so you should not |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
442 | * need to call this. |
|
10350
a72a43212626
[gaim-migrate @ 11565]
Mark Doliner <markdoliner@pidgin.im>
parents:
10349
diff
changeset
|
443 | */ |
| 15884 | 444 | void purple_blist_schedule_save(void); |
|
10350
a72a43212626
[gaim-migrate @ 11565]
Mark Doliner <markdoliner@pidgin.im>
parents:
10349
diff
changeset
|
445 | |
|
a72a43212626
[gaim-migrate @ 11565]
Mark Doliner <markdoliner@pidgin.im>
parents:
10349
diff
changeset
|
446 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
447 | * purple_blist_request_add_buddy: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
448 | * @account: The account the buddy is added to. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
449 | * @username: The username of the buddy. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
450 | * @group: The name of the group to place the buddy in. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
451 | * @alias: The optional alias for the buddy. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
452 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
453 | * Requests from the user information needed to add a buddy to the |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
454 | * buddy list. |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
455 | */ |
| 15884 | 456 | void purple_blist_request_add_buddy(PurpleAccount *account, const char *username, |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
457 | const char *group, const char *alias); |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
458 | |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
459 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
460 | * purple_blist_request_add_chat: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
461 | * @account: The account the buddy is added to. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
462 | * @group: The optional group to add the chat to. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
463 | * @alias: The optional alias for the chat. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
464 | * @name: The required chat name. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
465 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
466 | * Requests from the user information needed to add a chat to the |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
467 | * buddy list. |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
468 | */ |
| 15884 | 469 | void purple_blist_request_add_chat(PurpleAccount *account, PurpleGroup *group, |
|
9754
3a17eee239b2
[gaim-migrate @ 10621]
Nathan Fredrickson <nathan@silverorange.com>
parents:
9713
diff
changeset
|
470 | const char *alias, const char *name); |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
471 | |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
472 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
473 | * purple_blist_request_add_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
474 | * |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
475 | * Requests from the user information needed to add a group to the |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
476 | * buddy list. |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
477 | */ |
| 15884 | 478 | void purple_blist_request_add_group(void); |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
479 | |
| 5228 | 480 | /**************************************************************************/ |
| 35472 | 481 | /* UI Registration Functions */ |
| 12054 | 482 | /**************************************************************************/ |
| 483 | /*@{*/ | |
| 484 | ||
| 485 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
486 | * purple_blist_set_ui_ops: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
487 | * @ops: The ops struct. |
| 12054 | 488 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
489 | * Sets the UI operations structure to be used for the buddy list. |
| 12054 | 490 | */ |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
491 | void purple_blist_set_ui_ops(PurpleBlistUiOps *ops); |
| 12054 | 492 | |
| 493 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
494 | * purple_blist_get_ui_ops: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
495 | * |
| 12054 | 496 | * Returns the UI operations structure to be used for the buddy list. |
| 497 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
498 | * Returns: The UI operations structure. |
| 12054 | 499 | */ |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
500 | PurpleBlistUiOps *purple_blist_get_ui_ops(void); |
| 12054 | 501 | |
| 502 | /*@}*/ | |
| 503 | ||
| 504 | /**************************************************************************/ | |
| 35472 | 505 | /* Buddy List Subsystem */ |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
506 | /**************************************************************************/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
507 | /*@{*/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
508 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
509 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
510 | * purple_blist_get_handle: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
511 | * |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
512 | * Returns the handle for the buddy list subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
513 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
514 | * Returns: The buddy list subsystem handle. |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
515 | */ |
| 15884 | 516 | void *purple_blist_get_handle(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
517 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
518 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
519 | * purple_blist_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
520 | * |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
521 | * Initializes the buddy list subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
522 | */ |
| 15884 | 523 | void purple_blist_init(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
524 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
525 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
526 | * purple_blist_boot: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
527 | * |
|
33643
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
528 | * Loads the buddy list. |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
529 | * |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
530 | * You shouldn't call this. purple_core_init() will do it for you. |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
531 | */ |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
532 | void purple_blist_boot(void); |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
533 | |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
534 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
535 | * purple_blist_uninit: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
536 | * |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
537 | * Uninitializes the buddy list subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
538 | */ |
| 15884 | 539 | void purple_blist_uninit(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
540 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
541 | /*@}*/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
542 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32714
diff
changeset
|
543 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
544 | |
|
34710
6182323fbb0c
Renamed gg's buddylist.[ch] to blist.[ch]
Ankit Vani <a@nevitus.org>
parents:
34709
diff
changeset
|
545 | #endif /* _PURPLE_BUDDY_LIST_H_ */ |