Tue, 06 Apr 2021 03:35:20 -0500
Port the updates from 2.14.2 and the upcoming 2.14.3 to 3.0.0
* Use the unicode version of the System and UserInfo plugins to fix
non-english languages in the Windows installer.
* Update the installer to use the inetc plugin so that https downloads will
work. This became necessary because Sourceforge now redirects http to
https.
* Standardize everything in pidgin/win32/winpidgin.c to use `wprintf`.
Testing Done:
Compiled and ran on windows 10.
Reviewed at https://reviews.imfreedom.org/r/595/
|
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 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
21 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
22 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
23 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
24 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
25 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
26 | #ifndef PURPLE_BUDDY_LIST_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
27 | #define PURPLE_BUDDY_LIST_H |
|
39870
d2615938ce5e
Hide the parent class in PurpleBlistClass
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
28 | |
|
35433
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
29 | /** |
|
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
30 | * SECTION:buddylist |
|
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
31 | * @section_id: libpurple-buddylist |
|
35436
a69d2e5604c5
Swap @title and @short_description roles
Ankit Vani <a@nevitus.org>
parents:
35433
diff
changeset
|
32 | * @short_description: <filename>buddylist.h</filename> |
|
a69d2e5604c5
Swap @title and @short_description roles
Ankit Vani <a@nevitus.org>
parents:
35433
diff
changeset
|
33 | * @title: Buddy List API |
|
35433
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
34 | * @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
|
35 | */ |
|
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
36 | |
| 5228 | 37 | /* I can't believe I let ChipX86 inspire me to write good code. -Sean */ |
| 38 | ||
|
37948
2a8f41535c8f
rename blistnodetypes.[ch] to buddy.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
37947
diff
changeset
|
39 | #include "buddy.h" |
| 5228 | 40 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
41 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
42 | * PURPLE_TYPE_BUDDY_LIST: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
43 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
44 | * The standard _get_type macro for #PurpleBuddyList. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
45 | */ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
46 | #define PURPLE_TYPE_BUDDY_LIST (purple_buddy_list_get_type()) |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
47 | typedef struct _PurpleBuddyList PurpleBuddyList; |
|
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
|
48 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
49 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
50 | * PURPLE_BLIST_DEFAULT_GROUP_NAME: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
51 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
52 | * A helper to get the default group name for the buddy list. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
53 | */ |
|
40441
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
54 | #define PURPLE_BLIST_DEFAULT_GROUP_NAME (purple_blist_get_default_group_name()) |
|
35958
1d8446f396b6
blist: define default group better
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
55 | |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
37143
diff
changeset
|
56 | #include "chat.h" |
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40245
diff
changeset
|
57 | #include "contact.h" |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
37143
diff
changeset
|
58 | |
|
39578
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
59 | /** |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
60 | * _purple_blist_get_localized_default_group_name: |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
61 | * |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
62 | * Returns the name of default group for previously used non-English |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
63 | * localization. It's used for merging default group, in cases when roster |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
64 | * contains localized name. |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
65 | * |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
66 | * Please note, prpls shouldn't save default group name depending on current |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
67 | * locale. So, this function is mostly for libpurple2 compatibility. And for |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
68 | * improperly written prpls. |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
69 | */ |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
70 | const gchar * |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
71 | _purple_blist_get_localized_default_group_name(void); |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
72 | |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
73 | /** |
|
39578
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
74 | * PurpleBlistWalkFunc: |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
75 | * @node: The node that's being iterated |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
76 | * @data: User supplied data. |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
77 | * |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
78 | * A callback function for purple_blist_walk. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39578
diff
changeset
|
79 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39578
diff
changeset
|
80 | * Since: 3.0.0 |
|
39578
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
81 | */ |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39578
diff
changeset
|
82 | typedef void (*PurpleBlistWalkFunc)(PurpleBlistNode *node, gpointer data); |
|
39578
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
83 | |
| 5228 | 84 | /**************************************************************************/ |
| 85 | /* Data Structures */ | |
| 86 | /**************************************************************************/ | |
|
34725
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
87 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
88 | * PurpleBuddyList: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
89 | * |
| 5228 | 90 | * The Buddy List |
| 91 | */ | |
| 12054 | 92 | /** |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
93 | * PurpleBuddyListClass: |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
94 | * @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
|
95 | * @show: The core will call this when it's finished doing its core |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
96 | * stuff. |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
97 | * @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
|
98 | * @remove: This removes a node from the list |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
99 | * @set_visible: Hides or unhides the buddy list. |
|
40245
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39870
diff
changeset
|
100 | * @request_add_buddy: Called when information is needed to add a buddy to the |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39870
diff
changeset
|
101 | * buddy list. See purple_blist_request_add_buddy(). |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39870
diff
changeset
|
102 | * @request_add_chat: Called when information is needed to add a chat to the |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39870
diff
changeset
|
103 | * buddy list. See purple_blist_request_add_chat(). |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39870
diff
changeset
|
104 | * @request_add_group: Called when information is needed to add a group to the |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39870
diff
changeset
|
105 | * buddy list. See purple_blist_request_add_group(). |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
106 | * @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
|
107 | * saved. |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
108 | * <sbr/>Implementation of this method is |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
109 | * <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
|
110 | * 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
|
111 | * <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
|
112 | * versions. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
113 | * <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
|
114 | * @remove_node: Called when a node is about to be removed from the buddy list. |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
115 | * The method should update the relevant data structures to |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
116 | * remove this node (for example, removing a buddy from the |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
117 | * group this node is in). |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
118 | * <sbr/>Implementation of this method is |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
119 | * <emphasis>OPTIONAL</emphasis>. If not implemented, it will be |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
120 | * set to a fallback function that saves data to |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
121 | * <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
|
122 | * versions. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
123 | * <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
|
124 | * @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
|
125 | * 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
|
126 | * 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
|
127 | * accounts. |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
128 | * <sbr/>Implementation of this method is |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
129 | * <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
|
130 | * 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
|
131 | * <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
|
132 | * libpurple versions. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
133 | * <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
|
134 | * 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
|
135 | * |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
136 | * Buddy list operations. |
| 12054 | 137 | * |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
138 | * Any UI representing a buddy list must derive a filled-out |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
139 | * @PurpleBuddyListClass and set the GType using purple_blist_set_ui() before a |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
140 | * buddy list is created. |
| 12054 | 141 | */ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
142 | struct _PurpleBuddyListClass { |
|
39870
d2615938ce5e
Hide the parent class in PurpleBlistClass
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
143 | /*< private >*/ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
144 | GObjectClass gparent_class; |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
145 | |
|
39870
d2615938ce5e
Hide the parent class in PurpleBlistClass
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
146 | /*< public >*/ |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
147 | void (*new_node)(PurpleBuddyList *list, PurpleBlistNode *node); |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
148 | void (*show)(PurpleBuddyList *list); |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
149 | 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
|
150 | 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
|
151 | 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
|
152 | |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
153 | void (*request_add_buddy)(PurpleBuddyList *list, PurpleAccount *account, |
|
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
154 | const char *username, const char *group, |
|
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
155 | const char *alias); |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
156 | |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
157 | void (*request_add_chat)(PurpleBuddyList *list, PurpleAccount *account, |
|
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
158 | PurpleGroup *group, const char *alias, |
|
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
159 | const char *name); |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
160 | |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
161 | void (*request_add_group)(PurpleBuddyList *list); |
|
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
|
162 | |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
163 | void (*save_node)(PurpleBuddyList *list, PurpleBlistNode *node); |
|
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
164 | void (*remove_node)(PurpleBuddyList *list, PurpleBlistNode *node); |
|
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
165 | |
|
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
166 | void (*save_account)(PurpleBuddyList *list, PurpleAccount *account); |
|
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
|
167 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
168 | /*< private >*/ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
169 | gpointer reserved[4]; |
| 12054 | 170 | }; |
| 171 | ||
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32714
diff
changeset
|
172 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
173 | |
| 5228 | 174 | /**************************************************************************/ |
| 35472 | 175 | /* Buddy List API */ |
| 5228 | 176 | /**************************************************************************/ |
| 34733 | 177 | |
| 5228 | 178 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
179 | * 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
|
180 | * |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
181 | * Returns: The #GType for the #PurpleBuddyList object. |
|
34725
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
182 | */ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
183 | G_DECLARE_DERIVABLE_TYPE(PurpleBuddyList, purple_buddy_list, PURPLE, BUDDY_LIST, |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
184 | GObject) |
|
34725
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
185 | |
|
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
186 | /** |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
187 | * purple_blist_get_default: |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
188 | * |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
189 | * Returns the default buddy list. |
| 5228 | 190 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
191 | * Returns: (transfer none): The default buddy list. |
|
39666
da453f59d2f7
Add Since tags for just-added API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39665
diff
changeset
|
192 | * |
|
da453f59d2f7
Add Since tags for just-added API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39665
diff
changeset
|
193 | * Since: 3.0.0 |
| 5228 | 194 | */ |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
195 | PurpleBuddyList *purple_blist_get_default(void); |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
196 | |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
197 | /** |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
198 | * purple_blist_get_default_root: |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
199 | * |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
200 | * Returns the root node of the default buddy list. |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
201 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
202 | * Returns: (transfer none): The root node. |
|
39666
da453f59d2f7
Add Since tags for just-added API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39665
diff
changeset
|
203 | * |
|
da453f59d2f7
Add Since tags for just-added API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39665
diff
changeset
|
204 | * Since: 3.0.0 |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
205 | */ |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
206 | PurpleBlistNode *purple_blist_get_default_root(void); |
| 5228 | 207 | |
| 208 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
209 | * purple_blist_get_root: |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
210 | * @list: The buddy list to query. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
211 | * |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
212 | * Returns the root node of the specified buddy list. |
| 13485 | 213 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
214 | * Returns: (transfer none): The root node. |
| 13485 | 215 | */ |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
216 | PurpleBlistNode *purple_blist_get_root(PurpleBuddyList *list); |
| 13485 | 217 | |
| 218 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
219 | * purple_blist_get_buddies: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
220 | * |
|
26994
2dbadd391e9c
Me fail English? That's unpossible!
Paul Aurich <darkrain42@pidgin.im>
parents:
26990
diff
changeset
|
221 | * 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
|
222 | * 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
|
223 | * 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
|
224 | * |
| 35476 | 225 | * See purple_blist_find_buddies(). |
| 226 | * | |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38240
diff
changeset
|
227 | * Returns: (element-type PurpleBlistNode) (transfer container): A list of every |
|
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38240
diff
changeset
|
228 | * buddy in the list. |
| 24953 | 229 | */ |
|
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
|
230 | GSList *purple_blist_get_buddies(void); |
| 24953 | 231 | |
| 232 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
233 | * purple_blist_show: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
234 | * |
| 5228 | 235 | * Shows the buddy list, creating a new one if necessary. |
| 236 | */ | |
| 15884 | 237 | void purple_blist_show(void); |
| 5228 | 238 | |
| 239 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
240 | * purple_blist_set_visible: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
241 | * @show: Whether or not to show the buddy list |
| 5228 | 242 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
243 | * Hides or unhides the buddy list. |
| 5228 | 244 | */ |
| 15884 | 245 | void purple_blist_set_visible(gboolean show); |
| 5228 | 246 | |
| 247 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
248 | * 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
|
249 | * @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
|
250 | * @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
|
251 | * |
|
34727
579e9a8dbd5f
Moved methods from buddylist.[ch] to the appropriate object files
Ankit Vani <a@nevitus.org>
parents:
34726
diff
changeset
|
252 | * 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
|
253 | * 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
|
254 | * the buddy after updating the cache. |
| 5228 | 255 | */ |
|
34729
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
256 | 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
|
257 | |
|
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
258 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
259 | * 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
|
260 | * @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
|
261 | * @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
|
262 | * |
|
34729
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
263 | * 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
|
264 | * 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
|
265 | * 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
|
266 | */ |
|
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
267 | void purple_blist_update_groups_cache(PurpleGroup *group, const char *new_name); |
| 5228 | 268 | |
| 5234 | 269 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
270 | * purple_blist_add_chat: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
271 | * @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
|
272 | * @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
|
273 | * @node: The insertion point |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
274 | * |
| 5234 | 275 | * Adds a new chat to the buddy list. |
| 276 | * | |
| 277 | * The chat will be inserted right after node or appended to the end | |
| 278 | * of group if node is NULL. If both are NULL, the buddy will be added to | |
| 279 | * the "Chats" group. | |
| 280 | */ | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
281 | void purple_blist_add_chat(PurpleChat *chat, PurpleGroup *group, PurpleBlistNode *node); |
| 5228 | 282 | |
| 283 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
284 | * purple_blist_add_buddy: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
285 | * @buddy: The new buddy who gets added |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
286 | * @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
|
287 | * @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
|
288 | * @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
|
289 | * 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
|
290 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
291 | * 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
|
292 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
293 | * 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
|
294 | * group if node is NULL. If both are NULL, the buddy will be added to |
|
35958
1d8446f396b6
blist: define default group better
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
295 | * the default group. |
| 5228 | 296 | */ |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
297 | void purple_blist_add_buddy(PurpleBuddy *buddy, PurpleContact *contact, PurpleGroup *group, PurpleBlistNode *node); |
| 5228 | 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_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
301 | * @group: The group |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
302 | * @node: The insertion point |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
303 | * |
| 5228 | 304 | * Adds a new group to the buddy list. |
| 305 | * | |
| 6695 | 306 | * The new group will be inserted after insert or prepended to the list if |
| 307 | * node is NULL. | |
| 308 | */ | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
309 | void purple_blist_add_group(PurpleGroup *group, PurpleBlistNode *node); |
| 6695 | 310 | |
| 311 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
312 | * purple_blist_add_contact: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
313 | * @contact: The contact |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
314 | * @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
|
315 | * @node: The insertion point |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
316 | * |
| 6695 | 317 | * Adds a new contact to the buddy list. |
| 318 | * | |
| 319 | * The new contact will be inserted after insert or prepended to the list if | |
| 320 | * node is NULL. | |
| 321 | */ | |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
322 | void purple_blist_add_contact(PurpleContact *contact, PurpleGroup *group, PurpleBlistNode *node); |
| 6695 | 323 | |
| 324 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
325 | * purple_blist_remove_buddy: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
326 | * @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
|
327 | * |
| 5228 | 328 | * 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
|
329 | * This doesn't actually try to remove the buddy from the server list. |
| 5228 | 330 | * |
| 35471 | 331 | * See purple_account_remove_buddy(). |
| 5228 | 332 | */ |
| 15884 | 333 | void purple_blist_remove_buddy(PurpleBuddy *buddy); |
| 6695 | 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_contact: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
337 | * @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
|
338 | * |
| 6695 | 339 | * 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
|
340 | * 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
|
341 | * doesn't remove the buddies from the server list. |
| 6695 | 342 | * |
| 35471 | 343 | * See purple_blist_remove_buddy(). |
| 6695 | 344 | */ |
| 15884 | 345 | void purple_blist_remove_contact(PurpleContact *contact); |
| 5228 | 346 | |
| 347 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
348 | * purple_blist_remove_chat: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
349 | * @chat: The chat to be removed |
| 5234 | 350 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
351 | * Removes a chat from the buddy list and frees the memory allocated to it. |
| 5234 | 352 | */ |
| 15884 | 353 | void purple_blist_remove_chat(PurpleChat *chat); |
| 5234 | 354 | |
| 355 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
356 | * purple_blist_remove_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
357 | * @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
|
358 | * |
| 5228 | 359 | * Removes a group from the buddy list and frees the memory allocated to it and to |
| 360 | * its children | |
| 361 | */ | |
| 15884 | 362 | void purple_blist_remove_group(PurpleGroup *group); |
| 5228 | 363 | |
| 6744 | 364 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
365 | * purple_blist_find_buddy: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
366 | * @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
|
367 | * @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
|
368 | * |
|
25889
26d9ca30335c
Change "screen name" to "username" or "buddy name" in a whole bunch of
Mark Doliner <markdoliner@pidgin.im>
parents:
25888
diff
changeset
|
369 | * Finds the buddy struct given a name and an account |
| 5228 | 370 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
371 | * Returns: (transfer none): The buddy or %NULL if the buddy does not exist. |
| 5228 | 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(PurpleAccount *account, const char *name); |
| 6245 | 374 | |
| 375 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
376 | * purple_blist_find_buddy_in_group: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
377 | * @account: The account this buddy belongs to |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
378 | * @name: The buddy's name |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
379 | * @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
|
380 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
381 | * 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
|
382 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
383 | * Returns: (transfer none): The buddy or %NULL if the buddy does not exist in |
|
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
384 | * the group. |
| 6872 | 385 | */ |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
386 | PurpleBuddy *purple_blist_find_buddy_in_group(PurpleAccount *account, const char *name, |
| 15884 | 387 | PurpleGroup *group); |
| 6872 | 388 | |
| 389 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
390 | * purple_blist_find_buddies: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
391 | * @account: The account this buddy belongs to |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
392 | * @name: The buddy's name (or NULL to return all buddies for the account) |
| 6245 | 393 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
394 | * 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
|
395 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38240
diff
changeset
|
396 | * Returns: (element-type PurpleBuddy) (transfer container): %NULL if the buddy |
|
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38240
diff
changeset
|
397 | * doesn't exist, or a GSList of PurpleBuddy structs. |
| 6245 | 398 | */ |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
399 | GSList *purple_blist_find_buddies(PurpleAccount *account, const char *name); |
| 6245 | 400 | |
| 5228 | 401 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
402 | * purple_blist_find_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
403 | * @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
|
404 | * |
| 5228 | 405 | * Finds a group by name |
| 406 | * | |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
407 | * Returns: (transfer none): The group or %NULL if the group does not exist. |
| 5228 | 408 | */ |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
409 | PurpleGroup *purple_blist_find_group(const char *name); |
| 6695 | 410 | |
|
35959
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
411 | /** |
|
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
412 | * purple_blist_get_default_group: |
|
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
413 | * |
|
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
414 | * Finds or creates default group. |
|
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
415 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
416 | * Returns: (transfer none): The default group. |
|
35959
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
417 | */ |
|
35958
1d8446f396b6
blist: define default group better
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
418 | PurpleGroup *purple_blist_get_default_group(void); |
|
1d8446f396b6
blist: define default group better
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
419 | |
| 6695 | 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_find_chat: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
422 | * @account: The chat's account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
423 | * @name: The chat's name. |
|
6456
e4e7dee16c1a
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
424 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
425 | * 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
|
426 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
427 | * Returns: (transfer none): The chat, or %NULL if the chat does not exist. |
|
6456
e4e7dee16c1a
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
428 | */ |
| 15884 | 429 | PurpleChat *purple_blist_find_chat(PurpleAccount *account, const char *name); |
|
6456
e4e7dee16c1a
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
430 | |
|
e4e7dee16c1a
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
431 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
432 | * purple_blist_add_account: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
433 | * @account: The account |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
434 | * |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
435 | * Called when an account connects. Tells the UI to update all the |
| 5234 | 436 | * buddies. |
| 437 | */ | |
| 15884 | 438 | void purple_blist_add_account(PurpleAccount *account); |
| 5234 | 439 | |
| 440 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
441 | * purple_blist_remove_account: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
442 | * @account: The account |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
443 | * |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
444 | * Called when an account disconnects. Sets the presence of all the buddies to 0 |
| 5228 | 445 | * and tells the UI to update them. |
| 446 | */ | |
| 15884 | 447 | void purple_blist_remove_account(PurpleAccount *account); |
| 5228 | 448 | |
|
39578
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
449 | /** |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
450 | * purple_blist_walk: |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
451 | * @group_func: (scope call): The callback for groups |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
452 | * @chat_func: (scope call): The callback for chats |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
453 | * @meta_contact_func: (scope call): The callback for meta-contacts |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
454 | * @contact_func: (scope call): The callback for contacts |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
455 | * @data: User supplied data. |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
456 | * |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
457 | * Walks the buddy list and calls the appropriate function for each node. If |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
458 | * a callback function is omitted iteration will continue without it. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39578
diff
changeset
|
459 | * |
|
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39578
diff
changeset
|
460 | * Since: 3.0.0 |
|
39578
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
461 | */ |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
462 | void purple_blist_walk(PurpleBlistWalkFunc group_func, PurpleBlistWalkFunc chat_func, PurpleBlistWalkFunc meta_contact_func, PurpleBlistWalkFunc contact_func, gpointer data); |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
463 | |
|
40441
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
464 | /** |
|
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
465 | * purple_blist_get_default_group_name: |
|
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
466 | * |
|
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
467 | * Gets the default group name for the buddy list. |
|
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
468 | * |
|
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
469 | * Returns: The name of the default group. |
|
40442
21d18c56debc
Add since tag to the purple_blist_get_default_group_name docs
Gary Kramlich <grim@reaperworld.com>
parents:
40441
diff
changeset
|
470 | * |
|
21d18c56debc
Add since tag to the purple_blist_get_default_group_name docs
Gary Kramlich <grim@reaperworld.com>
parents:
40441
diff
changeset
|
471 | * Since: 3.0.0 |
|
40441
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
472 | */ |
|
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
473 | const gchar *purple_blist_get_default_group_name(void); |
|
f23c7e772667
Make sure we're not including the gettext macros in header files and deal with the repercussions of that.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
474 | |
| 5228 | 475 | /****************************************************************************************/ |
| 35472 | 476 | /* Buddy list file management API */ |
| 5228 | 477 | /****************************************************************************************/ |
| 478 | ||
| 479 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
480 | * purple_blist_schedule_save: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
481 | * |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
482 | * 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
|
483 | * 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
|
484 | * 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
|
485 | * 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
|
486 | * need to call this. |
|
10350
a72a43212626
[gaim-migrate @ 11565]
Mark Doliner <markdoliner@pidgin.im>
parents:
10349
diff
changeset
|
487 | */ |
| 15884 | 488 | void purple_blist_schedule_save(void); |
|
10350
a72a43212626
[gaim-migrate @ 11565]
Mark Doliner <markdoliner@pidgin.im>
parents:
10349
diff
changeset
|
489 | |
|
a72a43212626
[gaim-migrate @ 11565]
Mark Doliner <markdoliner@pidgin.im>
parents:
10349
diff
changeset
|
490 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
491 | * purple_blist_request_add_buddy: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
492 | * @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
|
493 | * @username: The username of the buddy. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
494 | * @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
|
495 | * @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
|
496 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
497 | * 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
|
498 | * buddy list. |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
499 | */ |
| 15884 | 500 | 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
|
501 | const char *group, const char *alias); |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
502 | |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
503 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
504 | * purple_blist_request_add_chat: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
505 | * @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
|
506 | * @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
|
507 | * @alias: The optional alias for the chat. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
508 | * @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
|
509 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
510 | * 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
|
511 | * buddy list. |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
512 | */ |
| 15884 | 513 | void purple_blist_request_add_chat(PurpleAccount *account, PurpleGroup *group, |
|
9754
3a17eee239b2
[gaim-migrate @ 10621]
Nathan Fredrickson <nathan@silverorange.com>
parents:
9713
diff
changeset
|
514 | const char *alias, const char *name); |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
515 | |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
516 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
517 | * 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
|
518 | * |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
519 | * 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
|
520 | * buddy list. |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
521 | */ |
| 15884 | 522 | void purple_blist_request_add_group(void); |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
523 | |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
524 | /** |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
525 | * purple_blist_new_node: |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
526 | * @list: The list that contains the node. |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
527 | * @node: The node to initialize. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
528 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
529 | * Sets UI-specific data on a node. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
530 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
531 | * This should usually only be run when initializing a @PurpleBlistNode |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
532 | * instance. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
533 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
534 | * Since: 3.0.0 |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
535 | */ |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
536 | void purple_blist_new_node(PurpleBuddyList *list, PurpleBlistNode *node); |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
537 | |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
538 | /** |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
539 | * purple_blist_update_node: |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
540 | * @list: The buddy list to modify. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
541 | * @node: The node to update. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
542 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
543 | * Update a node in the buddy list in the UI. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
544 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
545 | * Since: 3.0.0 |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
546 | */ |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
547 | void purple_blist_update_node(PurpleBuddyList *list, PurpleBlistNode *node); |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
548 | |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
549 | /** |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
550 | * purple_blist_save_node: |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
551 | * @list: The list that contains the node. |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
552 | * @node: The node which has been modified. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
553 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
554 | * This is called when a node has been modified and should be saved by the UI. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
555 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
556 | * If the UI does not implement a more specific method, it will be set to save |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
557 | * data to <filename>blist.xml</filename> like in previous libpurple versions. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
558 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
559 | * Since: 3.0.0 |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
560 | */ |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
561 | void purple_blist_save_node(PurpleBuddyList *list, PurpleBlistNode *node); |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
562 | |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
563 | /** |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
564 | * purple_blist_save_account: |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
565 | * @list: The list that contains the account. |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
566 | * @account: The account whose data to save. If %NULL, save all data for all |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
567 | * accounts. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
568 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
569 | * Save all the data for an account. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
570 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
571 | * If the UI does not set a more specific method, it will be set to save data |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
572 | * to <filename>blist.xml</filename> like in previous libpurple versions. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
573 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
574 | * Since: 3.0.0 |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
575 | */ |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
576 | void purple_blist_save_account(PurpleBuddyList *list, PurpleAccount *account); |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
577 | |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
578 | /**************************************************************************/ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
579 | /* Buddy List Subsystem */ |
| 12054 | 580 | /**************************************************************************/ |
| 581 | ||
| 582 | /** | |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
583 | * purple_blist_set_ui: |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
584 | * @type: The @GType of a derived UI implementation of @PurpleBuddyList. |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
585 | * |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
586 | * Set the UI implementation of the buddy list. |
| 35572 | 587 | * |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
588 | * This must be called before the buddy list is created or you will get the |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
589 | * default libpurple implementation. |
| 12054 | 590 | * |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
591 | * Since: 3.0.0 |
| 12054 | 592 | */ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
593 | void purple_blist_set_ui(GType type); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
594 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
595 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
596 | * purple_blist_get_handle: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
597 | * |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
598 | * Returns the handle for the buddy list subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
599 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
600 | * Returns: The buddy list subsystem handle. |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
601 | */ |
| 15884 | 602 | void *purple_blist_get_handle(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
603 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
604 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
605 | * purple_blist_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
606 | * |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
607 | * Initializes the buddy list subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
608 | */ |
| 15884 | 609 | void purple_blist_init(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
610 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
611 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
612 | * purple_blist_boot: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
613 | * |
|
33643
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
614 | * Loads the buddy list. |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
615 | * |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
616 | * 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
|
617 | */ |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
618 | void purple_blist_boot(void); |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
619 | |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
620 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
621 | * purple_blist_uninit: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
622 | * |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
623 | * Uninitializes the buddy list subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
624 | */ |
| 15884 | 625 | void purple_blist_uninit(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
626 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32714
diff
changeset
|
627 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
628 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
629 | #endif /* PURPLE_BUDDY_LIST_H */ |