Sat, 13 Apr 2024 23:08:29 -0500
Remove PurpleChat
This has been on the chopping block for awhile, and we're finally chopping it.
Testing Done:
Checked in with the turtles.
Reviewed at https://reviews.imfreedom.org/r/3120/
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
1 | /* |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| 5228 | 4 | * |
| 15884 | 5 | * Purple is the legal property of its developers, whose names are too numerous |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 8046 | 7 | * source distribution. |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
8 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
12 | * any later version. |
| 5228 | 13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
17 | * more details. |
| 5228 | 18 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42415
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
| 5228 | 21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
23 | #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
|
24 | # 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
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
27 | #ifndef PURPLE_BUDDY_LIST_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
28 | #define PURPLE_BUDDY_LIST_H |
|
39870
d2615938ce5e
Hide the parent class in PurpleBlistClass
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
29 | |
| 5228 | 30 | /* I can't believe I let ChipX86 inspire me to write good code. -Sean */ |
| 31 | ||
|
37948
2a8f41535c8f
rename blistnodetypes.[ch] to buddy.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
37947
diff
changeset
|
32 | #include "buddy.h" |
|
42344
c51d37734155
Rename account.[ch] to purpleaccount.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
41733
diff
changeset
|
33 | #include "purpleaccount.h" |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
34 | #include "purpleversion.h" |
| 5228 | 35 | |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
36 | #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
|
37 | 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
|
38 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
39 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
40 | * 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
|
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 | * 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
|
43 | */ |
|
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
|
44 | #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
|
45 | |
|
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
|
46 | #include "contact.h" |
|
37947
12ce09a23094
Move PurpleChat to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
37143
diff
changeset
|
47 | |
|
39578
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
48 | /** |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
49 | * _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
|
50 | * |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
51 | * 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
|
52 | * 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
|
53 | * contains localized name. |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
54 | * |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
55 | * 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
|
56 | * 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
|
57 | * improperly written prpls. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
58 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
59 | * Since: 3.0 |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
60 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
61 | PURPLE_AVAILABLE_IN_3_0 |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
62 | const gchar * |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
63 | _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
|
64 | |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40442
diff
changeset
|
65 | /** |
|
39578
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
66 | * PurpleBlistWalkFunc: |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
67 | * @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
|
68 | * @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
|
69 | * |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
70 | * A callback function for purple_blist_walk. |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39578
diff
changeset
|
71 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
72 | * Since: 3.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
|
73 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
74 | PURPLE_AVAILABLE_TYPE_IN_3_0 |
|
39580
716c307bb9e3
Address issues from review:
Gary Kramlich <grim@reaperworld.com>
parents:
39578
diff
changeset
|
75 | 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
|
76 | |
| 5228 | 77 | /**************************************************************************/ |
| 78 | /* Data Structures */ | |
| 79 | /**************************************************************************/ | |
|
34725
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
80 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
81 | * PurpleBuddyList: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
82 | * |
| 5228 | 83 | * The Buddy List |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
84 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
85 | * Since: 2.0 |
| 5228 | 86 | */ |
| 12054 | 87 | /** |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
88 | * PurpleBuddyListClass: |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
89 | * @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
|
90 | * @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
|
91 | * stuff. |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
92 | * @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
|
93 | * @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
|
94 | * @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
|
95 | * @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
|
96 | * 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
|
97 | * @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
|
98 | * 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
|
99 | * @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
|
100 | * saved. |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
101 | * <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
|
102 | * <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
|
103 | * 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
|
104 | * <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
|
105 | * versions. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
106 | * <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
|
107 | * @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
|
108 | * 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
|
109 | * 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
|
110 | * group this node is in). |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
111 | * <sbr/>Implementation of this method is |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
112 | * <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
|
113 | * 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
|
114 | * <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
|
115 | * versions. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
116 | * <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
|
117 | * @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
|
118 | * 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
|
119 | * 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
|
120 | * accounts. |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
121 | * <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
|
122 | * <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
|
123 | * 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
|
124 | * <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
|
125 | * libpurple versions. |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
126 | * <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
|
127 | * 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
|
128 | * |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
129 | * Buddy list operations. |
| 12054 | 130 | * |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
131 | * 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
|
132 | * @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
|
133 | * buddy list is created. |
| 12054 | 134 | */ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
135 | struct _PurpleBuddyListClass { |
|
39870
d2615938ce5e
Hide the parent class in PurpleBlistClass
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
136 | /*< private >*/ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
137 | GObjectClass gparent_class; |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
138 | |
|
39870
d2615938ce5e
Hide the parent class in PurpleBlistClass
Gary Kramlich <grim@reaperworld.com>
parents:
39738
diff
changeset
|
139 | /*< public >*/ |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
140 | 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
|
141 | void (*show)(PurpleBuddyList *list); |
|
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
142 | 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
|
143 | 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
|
144 | 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
|
145 | |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
146 | 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
|
147 | 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
|
148 | const char *alias); |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
149 | |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
150 | 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
|
151 | |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
152 | 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
|
153 | 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
|
154 | |
|
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
155 | 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
|
156 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
157 | /*< private >*/ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
158 | gpointer reserved[4]; |
| 12054 | 159 | }; |
| 160 | ||
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32714
diff
changeset
|
161 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
162 | |
| 5228 | 163 | /**************************************************************************/ |
| 35472 | 164 | /* Buddy List API */ |
| 5228 | 165 | /**************************************************************************/ |
| 34733 | 166 | |
| 5228 | 167 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
168 | * 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
|
169 | * |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
170 | * Returns: The #GType for the #PurpleBuddyList object. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
171 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
172 | * Since: 3.0 |
|
34725
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
173 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
174 | PURPLE_AVAILABLE_IN_3_0 |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
175 | 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
|
176 | GObject) |
|
34725
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
177 | |
|
5acc823db81d
Added GBoxed wrapping to PurpleBuddyList
Ankit Vani <a@nevitus.org>
parents:
34722
diff
changeset
|
178 | /** |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
179 | * 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
|
180 | * |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
181 | * Returns the default buddy list. |
| 5228 | 182 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
183 | * 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
|
184 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
185 | * Since: 3.0 |
| 5228 | 186 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
187 | PURPLE_AVAILABLE_IN_3_0 |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
188 | PurpleBuddyList *purple_blist_get_default(void); |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
189 | |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
190 | /** |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
191 | * purple_blist_get_default_root: |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
192 | * |
|
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
193 | * 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
|
194 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
195 | * 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
|
196 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
197 | * Since: 3.0 |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
198 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
199 | PURPLE_AVAILABLE_IN_3_0 |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
200 | PurpleBlistNode *purple_blist_get_default_root(void); |
| 5228 | 201 | |
| 202 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
203 | * purple_blist_get_root: |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
204 | * @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
|
205 | * |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
206 | * Returns the root node of the specified buddy list. |
| 13485 | 207 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
208 | * Returns: (transfer none): The root node. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
209 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
210 | * Since: 2.0 |
| 13485 | 211 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
212 | PURPLE_AVAILABLE_IN_ALL |
|
39665
2172e3b8eeef
Rename some buddy list accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
213 | PurpleBlistNode *purple_blist_get_root(PurpleBuddyList *list); |
| 13485 | 214 | |
| 215 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
216 | * purple_blist_get_buddies: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
217 | * |
|
26994
2dbadd391e9c
Me fail English? That's unpossible!
Paul Aurich <darkrain42@pidgin.im>
parents:
26990
diff
changeset
|
218 | * 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
|
219 | * 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
|
220 | * 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
|
221 | * |
| 35476 | 222 | * See purple_blist_find_buddies(). |
| 223 | * | |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38240
diff
changeset
|
224 | * 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
|
225 | * buddy in the list. |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
226 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
227 | * Since: 2.6 |
| 24953 | 228 | */ |
|
42394
b3bc5ad00646
Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
229 | PURPLE_AVAILABLE_IN_2_6 |
|
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. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
236 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
237 | * Since: 2.0 |
| 5228 | 238 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
239 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 240 | void purple_blist_show(void); |
| 5228 | 241 | |
| 242 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
243 | * purple_blist_set_visible: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
244 | * @show: Whether or not to show the buddy list |
| 5228 | 245 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
246 | * Hides or unhides the buddy list. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
247 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
248 | * Since: 2.0 |
| 5228 | 249 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
250 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 251 | void purple_blist_set_visible(gboolean show); |
| 5228 | 252 | |
| 253 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
254 | * 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
|
255 | * @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
|
256 | * @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
|
257 | * |
|
34727
579e9a8dbd5f
Moved methods from buddylist.[ch] to the appropriate object files
Ankit Vani <a@nevitus.org>
parents:
34726
diff
changeset
|
258 | * 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
|
259 | * 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
|
260 | * the buddy after updating the cache. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
261 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
262 | * Since: 3.0 |
| 5228 | 263 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
264 | PURPLE_AVAILABLE_IN_3_0 |
|
34729
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
265 | 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
|
266 | |
|
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
267 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
268 | * 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
|
269 | * @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
|
270 | * @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
|
271 | * |
|
34729
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
272 | * 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
|
273 | * 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
|
274 | * the group after updating the cache. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
275 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
276 | * Since: 3.0 |
|
34729
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
277 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
278 | PURPLE_AVAILABLE_IN_3_0 |
|
34729
7f5a2fc8ef9c
Refactored blistnodetypes and BuddyList.xs according to API changes
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
279 | void purple_blist_update_groups_cache(PurpleGroup *group, const char *new_name); |
| 5228 | 280 | |
| 5234 | 281 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
282 | * purple_blist_add_buddy: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
283 | * @buddy: The new buddy who gets added |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
284 | * @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
|
285 | * @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
|
286 | * @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
|
287 | * 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
|
288 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
289 | * 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
|
290 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
291 | * 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
|
292 | * 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
|
293 | * the default group. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
294 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
295 | * Since: 2.0 |
| 5228 | 296 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
297 | PURPLE_AVAILABLE_IN_ALL |
|
41733
a9085b52de8b
Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
298 | void purple_blist_add_buddy(PurpleBuddy *buddy, PurpleMetaContact *contact, PurpleGroup *group, PurpleBlistNode *node); |
| 5228 | 299 | |
| 300 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
301 | * purple_blist_add_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
302 | * @group: The group |
|
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 | * |
| 5228 | 305 | * Adds a new group to the buddy list. |
| 306 | * | |
| 6695 | 307 | * The new group will be inserted after insert or prepended to the list if |
| 308 | * node is NULL. | |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
309 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
310 | * Since: 2.0 |
| 6695 | 311 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
312 | PURPLE_AVAILABLE_IN_ALL |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34789
diff
changeset
|
313 | void purple_blist_add_group(PurpleGroup *group, PurpleBlistNode *node); |
| 6695 | 314 | |
| 315 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
316 | * purple_blist_add_contact: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
317 | * @contact: The contact |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
318 | * @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
|
319 | * @node: The insertion point |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
320 | * |
| 6695 | 321 | * Adds a new contact to the buddy list. |
| 322 | * | |
| 323 | * The new contact will be inserted after insert or prepended to the list if | |
| 324 | * node is NULL. | |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
325 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
326 | * Since: 2.0 |
| 6695 | 327 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
328 | PURPLE_AVAILABLE_IN_ALL |
|
41733
a9085b52de8b
Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
329 | void purple_blist_add_contact(PurpleMetaContact *contact, PurpleGroup *group, PurpleBlistNode *node); |
| 6695 | 330 | |
| 331 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
332 | * purple_blist_remove_buddy: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
333 | * @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
|
334 | * |
| 5228 | 335 | * 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
|
336 | * This doesn't actually try to remove the buddy from the server list. |
| 5228 | 337 | * |
| 35471 | 338 | * See purple_account_remove_buddy(). |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
339 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
340 | * Since: 2.0 |
| 5228 | 341 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
342 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 343 | void purple_blist_remove_buddy(PurpleBuddy *buddy); |
| 6695 | 344 | |
| 345 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
346 | * purple_blist_remove_contact: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
347 | * @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
|
348 | * |
| 6695 | 349 | * 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
|
350 | * 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
|
351 | * doesn't remove the buddies from the server list. |
| 6695 | 352 | * |
| 35471 | 353 | * See purple_blist_remove_buddy(). |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
354 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
355 | * Since: 2.0 |
| 6695 | 356 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
357 | PURPLE_AVAILABLE_IN_ALL |
|
41733
a9085b52de8b
Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
358 | void purple_blist_remove_contact(PurpleMetaContact *contact); |
| 5228 | 359 | |
| 360 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
361 | * purple_blist_remove_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
362 | * @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
|
363 | * |
| 5228 | 364 | * Removes a group from the buddy list and frees the memory allocated to it and to |
| 365 | * its children | |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
366 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
367 | * Since: 2.0 |
| 5228 | 368 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
369 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 370 | void purple_blist_remove_group(PurpleGroup *group); |
| 5228 | 371 | |
| 6744 | 372 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
373 | * purple_blist_find_buddy: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
374 | * @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
|
375 | * @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
|
376 | * |
|
25889
26d9ca30335c
Change "screen name" to "username" or "buddy name" in a whole bunch of
Mark Doliner <markdoliner@pidgin.im>
parents:
25888
diff
changeset
|
377 | * Finds the buddy struct given a name and an account |
| 5228 | 378 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
379 | * Returns: (transfer none): The buddy or %NULL if the buddy does not exist. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
380 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
381 | * Since: 3.0 |
| 5228 | 382 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
383 | PURPLE_AVAILABLE_IN_3_0 |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
384 | PurpleBuddy *purple_blist_find_buddy(PurpleAccount *account, const char *name); |
| 6245 | 385 | |
| 386 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
387 | * purple_blist_find_buddy_in_group: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
388 | * @account: The account this buddy belongs to |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
389 | * @name: The buddy's name |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
390 | * @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
|
391 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
392 | * 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
|
393 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
394 | * 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
|
395 | * the group. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
396 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
397 | * Since: 3.0 |
| 6872 | 398 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
399 | PURPLE_AVAILABLE_IN_3_0 |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
400 | PurpleBuddy *purple_blist_find_buddy_in_group(PurpleAccount *account, const char *name, |
| 15884 | 401 | PurpleGroup *group); |
| 6872 | 402 | |
| 403 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
404 | * purple_blist_find_buddies: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
405 | * @account: The account this buddy belongs to |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
406 | * @name: The buddy's name (or NULL to return all buddies for the account) |
| 6245 | 407 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
408 | * 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
|
409 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38240
diff
changeset
|
410 | * 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
|
411 | * doesn't exist, or a GSList of PurpleBuddy structs. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
412 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
413 | * Since: 3.0 |
| 6245 | 414 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
415 | PURPLE_AVAILABLE_IN_3_0 |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
416 | GSList *purple_blist_find_buddies(PurpleAccount *account, const char *name); |
| 6245 | 417 | |
| 5228 | 418 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
419 | * purple_blist_find_group: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
420 | * @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
|
421 | * |
| 5228 | 422 | * Finds a group by name |
| 423 | * | |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
424 | * Returns: (transfer none): The group or %NULL if the group does not exist. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
425 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
426 | * Since: 3.0 |
| 5228 | 427 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
428 | PURPLE_AVAILABLE_IN_3_0 |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34727
diff
changeset
|
429 | PurpleGroup *purple_blist_find_group(const char *name); |
| 6695 | 430 | |
|
35959
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
431 | /** |
|
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
432 | * 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
|
433 | * |
|
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
434 | * 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
|
435 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39701
diff
changeset
|
436 | * Returns: (transfer none): The default group. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
437 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
438 | * Since: 3.0 |
|
35959
37f787f5d4ac
blist: don't store default group name; some tiny fixes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35958
diff
changeset
|
439 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
440 | PURPLE_AVAILABLE_IN_3_0 |
|
35958
1d8446f396b6
blist: define default group better
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
441 | PurpleGroup *purple_blist_get_default_group(void); |
|
1d8446f396b6
blist: define default group better
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
442 | |
| 6695 | 443 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
444 | * purple_blist_add_account: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
445 | * @account: The account |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
446 | * |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
447 | * Called when an account connects. Tells the UI to update all the |
| 5234 | 448 | * buddies. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
449 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
450 | * Since: 2.0 |
| 5234 | 451 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
452 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 453 | void purple_blist_add_account(PurpleAccount *account); |
| 5234 | 454 | |
| 455 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
456 | * purple_blist_remove_account: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
457 | * @account: The account |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
458 | * |
|
26390
b0cde401fca4
More documentation (mostly little changes)
Paul Aurich <darkrain42@pidgin.im>
parents:
26388
diff
changeset
|
459 | * Called when an account disconnects. Sets the presence of all the buddies to 0 |
| 5228 | 460 | * and tells the UI to update them. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
461 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
462 | * Since: 2.0 |
| 5228 | 463 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
464 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 465 | void purple_blist_remove_account(PurpleAccount *account); |
| 5228 | 466 | |
|
39578
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
467 | /** |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
468 | * 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
|
469 | * @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
|
470 | * @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
|
471 | * @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
|
472 | * @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
|
473 | * |
|
03e375280534
Add purple_blist_walk to make it easier to traverse the buddy list
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
474 | * 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
|
475 | * 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
|
476 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
477 | * Since: 3.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
|
478 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
479 | PURPLE_AVAILABLE_IN_3_0 |
| 42722 | 480 | void purple_blist_walk(PurpleBlistWalkFunc group_func, PurpleBlistWalkFunc meta_contact_func, PurpleBlistWalkFunc contact_func, 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
|
481 | |
|
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
|
482 | /** |
|
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
|
483 | * 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
|
484 | * |
|
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
|
485 | * 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
|
486 | * |
|
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
|
487 | * 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
|
488 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
489 | * Since: 3.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
|
490 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
491 | PURPLE_AVAILABLE_IN_3_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
|
492 | 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
|
493 | |
| 5228 | 494 | /****************************************************************************************/ |
| 35472 | 495 | /* Buddy list file management API */ |
| 5228 | 496 | /****************************************************************************************/ |
| 497 | ||
| 498 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
499 | * purple_blist_schedule_save: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
500 | * |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
501 | * 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
|
502 | * 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
|
503 | * 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
|
504 | * 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
|
505 | * need to call this. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
506 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
507 | * Since: 2.0 |
|
10350
a72a43212626
[gaim-migrate @ 11565]
Mark Doliner <markdoliner@pidgin.im>
parents:
10349
diff
changeset
|
508 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
509 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 510 | void purple_blist_schedule_save(void); |
|
10350
a72a43212626
[gaim-migrate @ 11565]
Mark Doliner <markdoliner@pidgin.im>
parents:
10349
diff
changeset
|
511 | |
|
a72a43212626
[gaim-migrate @ 11565]
Mark Doliner <markdoliner@pidgin.im>
parents:
10349
diff
changeset
|
512 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
513 | * purple_blist_request_add_buddy: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
514 | * @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
|
515 | * @username: The username of the buddy. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
516 | * @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
|
517 | * @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
|
518 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
519 | * 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
|
520 | * buddy list. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
521 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
522 | * Since: 2.0 |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
523 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
524 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 525 | 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
|
526 | const char *group, const char *alias); |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
527 | |
|
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
528 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
529 | * 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
|
530 | * |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
531 | * 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
|
532 | * buddy list. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
533 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
534 | * Since: 2.0 |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
535 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
536 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 537 | void purple_blist_request_add_group(void); |
|
7060
717cbeb22b6d
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
538 | |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
539 | /** |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
540 | * 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
|
541 | * @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
|
542 | * @node: The node to initialize. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
543 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
544 | * 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
|
545 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
546 | * 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
|
547 | * instance. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
548 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
549 | * Since: 3.0 |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
550 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
551 | PURPLE_AVAILABLE_IN_3_0 |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
552 | 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
|
553 | |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
554 | /** |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
555 | * purple_blist_update_node: |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
556 | * @list: The buddy list to modify. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
557 | * @node: The node to update. |
|
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 | * 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
|
560 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
561 | * Since: 3.0 |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
562 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
563 | PURPLE_AVAILABLE_IN_3_0 |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
564 | 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
|
565 | |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
566 | /** |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
567 | * 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
|
568 | * @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
|
569 | * @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
|
570 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
571 | * 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
|
572 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
573 | * 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
|
574 | * 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
|
575 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
576 | * Since: 3.0 |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
577 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
578 | PURPLE_AVAILABLE_IN_3_0 |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
579 | 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
|
580 | |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
581 | /** |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
582 | * 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
|
583 | * @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
|
584 | * @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
|
585 | * accounts. |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
586 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
587 | * 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
|
588 | * |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
589 | * 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
|
590 | * 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
|
591 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
592 | * Since: 3.0 |
|
39675
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
593 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
594 | PURPLE_AVAILABLE_IN_3_0 |
|
39676
1e8394d47205
Add list parameter to all buddy list UI ops.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39675
diff
changeset
|
595 | 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
|
596 | |
|
583e2ba6e78e
Add wrapper functions for some PurpleBlistUiOps.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39666
diff
changeset
|
597 | /**************************************************************************/ |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
598 | /* Buddy List Subsystem */ |
| 12054 | 599 | /**************************************************************************/ |
| 600 | ||
| 601 | /** | |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
602 | * purple_blist_set_ui: |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
603 | * @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
|
604 | * |
|
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
605 | * Set the UI implementation of the buddy list. |
| 35572 | 606 | * |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
607 | * 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
|
608 | * default libpurple implementation. |
| 12054 | 609 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
610 | * Since: 3.0 |
| 12054 | 611 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
612 | PURPLE_AVAILABLE_IN_3_0 |
|
39693
86f5c1fef140
Convert UI ops to PurpleBuddyListClass methods.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39692
diff
changeset
|
613 | void purple_blist_set_ui(GType type); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
614 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
615 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
616 | * purple_blist_get_handle: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
617 | * |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
618 | * Returns the handle for the buddy list subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
619 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
620 | * Returns: The buddy list subsystem handle. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
621 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
622 | * Since: 2.0 |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
623 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
624 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 625 | void *purple_blist_get_handle(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
626 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
627 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
628 | * purple_blist_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
629 | * |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
630 | * Initializes the buddy list subsystem. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
631 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
632 | * Since: 2.0 |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
633 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
634 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 635 | void purple_blist_init(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
636 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
637 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
638 | * purple_blist_boot: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
639 | * |
|
33643
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
640 | * Loads the buddy list. |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
641 | * |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
642 | * You shouldn't call this. purple_core_init() will do it for you. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
643 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
644 | * Since: 3.0 |
|
33643
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
645 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
646 | PURPLE_AVAILABLE_IN_3_0 |
|
33643
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
647 | void purple_blist_boot(void); |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
648 | |
|
6f7deddb8850
Move blist loading into purple_core_init.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32827
diff
changeset
|
649 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
650 | * purple_blist_uninit: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
651 | * |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
652 | * Uninitializes the buddy list subsystem. |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
653 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
654 | * Since: 2.0 |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
655 | */ |
|
42415
561a6ccf39c6
Make sure all of the buddy list related API is marked with the proper version
Gary Kramlich <grim@reaperworld.com>
parents:
42394
diff
changeset
|
656 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 657 | void purple_blist_uninit(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
658 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32714
diff
changeset
|
659 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
660 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39580
diff
changeset
|
661 | #endif /* PURPLE_BUDDY_LIST_H */ |