Fri, 10 Mar 2023 16:37:41 -0600
Make PurpleRequestFieldChoice into a GObject
This also does an `hg cp`, though with all the renaming of the parameter names, maybe that wasn't as useful for tracking the diff.
I wonder if this should implement `GListModel`, but the values are currently arbitrary pointers, so it won't work right now.
Testing Done:
Compiled and opened Request Fields from Demo protocol.
Reviewed at https://reviews.imfreedom.org/r/2335/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19897
diff
changeset
|
1 | /* purple |
| 5563 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
6 | * |
| 5563 | 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19335
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5563 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
21 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40333
diff
changeset
|
22 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40333
diff
changeset
|
23 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40333
diff
changeset
|
24 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40333
diff
changeset
|
25 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39514
diff
changeset
|
26 | #ifndef PURPLE_ACCOUNT_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39514
diff
changeset
|
27 | #define PURPLE_ACCOUNT_H |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
28 | |
|
10021
5aa380278a15
[gaim-migrate @ 10946]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
29 | #include <glib.h> |
|
16180
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
30 | #include <glib-object.h> |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8235
diff
changeset
|
31 | |
|
34574
19850cd1b2de
Begun GObjectification of PurpleAccount. Moved things around, see details.
Ankit Vani <a@nevitus.org>
parents:
34145
diff
changeset
|
32 | #define PURPLE_TYPE_ACCOUNT (purple_account_get_type()) |
|
19850cd1b2de
Begun GObjectification of PurpleAccount. Moved things around, see details.
Ankit Vani <a@nevitus.org>
parents:
34145
diff
changeset
|
33 | |
|
19850cd1b2de
Begun GObjectification of PurpleAccount. Moved things around, see details.
Ankit Vani <a@nevitus.org>
parents:
34145
diff
changeset
|
34 | typedef struct _PurpleAccount PurpleAccount; |
| 5563 | 35 | |
| 15884 | 36 | typedef gboolean (*PurpleFilterAccountFunc)(PurpleAccount *account); |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8235
diff
changeset
|
37 | |
|
40870
e3397381fd35
Remove includes from protocol.h that weren't used there and deal with the fallout
Gary Kramlich <grim@reaperworld.com>
parents:
40863
diff
changeset
|
38 | #include "buddy.h" |
| 5563 | 39 | #include "connection.h" |
|
41137
3c1574216aed
Now that the History API is here, remove the purple logging api
Gary Kramlich <grim@reaperworld.com>
parents:
41083
diff
changeset
|
40 | #include "group.h" |
|
41714
318204db6284
Split PurpleConnectionErrorInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
41711
diff
changeset
|
41 | #include "purpleconnectionerrorinfo.h" |
|
41961
0da91f053305
Make PurpleAccount subclass PurpleContactInfo
Gary Kramlich <grim@reaperworld.com>
parents:
41958
diff
changeset
|
42 | #include "purplecontactinfo.h" |
|
41155
922c9e70900c
Rename protocol.[ch] to purpleprotocol.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
41137
diff
changeset
|
43 | #include "purpleprotocol.h" |
|
41318
56092ffeae95
Move PurpleProxyInfo from a boxed type to a GObject
Gary Kramlich <grim@reaperworld.com>
parents:
41204
diff
changeset
|
44 | #include "purpleproxyinfo.h" |
| 9947 | 45 | #include "status.h" |
|
34581
b4e0236019e6
Fixed more PurpleAccount stuff.
Ankit Vani <a@nevitus.org>
parents:
34578
diff
changeset
|
46 | #include "xmlnode.h" |
| 5563 | 47 | |
|
15537
5d7473f14c67
The accounts request API now keeps track of a returned ui_handle for authorization requests, which can be closed on demand individually or all-at-once by account. When a connection is destroyed, its associated requests are closed.
Evan Schoenberg <evands@pidgin.im>
parents:
15435
diff
changeset
|
48 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
49 | * PurpleAccountRequestResponse: |
|
40706
bc2a26d3c966
A handful of random doc fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40694
diff
changeset
|
50 | * @PURPLE_ACCOUNT_RESPONSE_IGNORE: Silently ignore the request. |
|
bc2a26d3c966
A handful of random doc fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40694
diff
changeset
|
51 | * @PURPLE_ACCOUNT_RESPONSE_DENY: Block the request potentially informing the |
|
bc2a26d3c966
A handful of random doc fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40694
diff
changeset
|
52 | * sender based on the protocol. |
|
bc2a26d3c966
A handful of random doc fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40694
diff
changeset
|
53 | * @PURPLE_ACCOUNT_RESPONSE_PASS: Prompt the user with the request. |
|
bc2a26d3c966
A handful of random doc fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40694
diff
changeset
|
54 | * @PURPLE_ACCOUNT_RESPONSE_ACCEPT: Grant the request. |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
55 | * |
|
31325
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
56 | * Account request response types |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
57 | */ |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
58 | typedef enum |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
59 | { |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
60 | PURPLE_ACCOUNT_RESPONSE_IGNORE = -2, |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
61 | PURPLE_ACCOUNT_RESPONSE_DENY = -1, |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
62 | PURPLE_ACCOUNT_RESPONSE_PASS = 0, |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
63 | PURPLE_ACCOUNT_RESPONSE_ACCEPT = 1 |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
64 | } PurpleAccountRequestResponse; |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
65 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32722
diff
changeset
|
66 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
67 | |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
68 | /**************************************************************************/ |
| 35472 | 69 | /* Account API */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
70 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
71 | |
| 5563 | 72 | /** |
|
41200
92a47aa620cf
Remove unnecessary gtk-doc comments and move them where possible from libpurple/[a-c]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
73 | * PurpleAccount: |
|
92a47aa620cf
Remove unnecessary gtk-doc comments and move them where possible from libpurple/[a-c]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
74 | * |
|
92a47aa620cf
Remove unnecessary gtk-doc comments and move them where possible from libpurple/[a-c]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
75 | * A #PurpleAccount is the core configuration for connecting to a specific |
|
92a47aa620cf
Remove unnecessary gtk-doc comments and move them where possible from libpurple/[a-c]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
76 | * account. User interfaces typically allow users to create these in a dialog |
|
92a47aa620cf
Remove unnecessary gtk-doc comments and move them where possible from libpurple/[a-c]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
77 | * or wizard. |
|
92a47aa620cf
Remove unnecessary gtk-doc comments and move them where possible from libpurple/[a-c]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
78 | */ |
|
92a47aa620cf
Remove unnecessary gtk-doc comments and move them where possible from libpurple/[a-c]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
79 | |
|
92a47aa620cf
Remove unnecessary gtk-doc comments and move them where possible from libpurple/[a-c]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
80 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
81 | * purple_account_get_type: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
82 | * |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
83 | * Returns: The #GType for the Account object. |
|
34674
2e45aee0af19
Documented functions of PurpleCipher, PurpleHash and purple_account_get_type()
Ankit Vani <a@nevitus.org>
parents:
34591
diff
changeset
|
84 | */ |
|
41961
0da91f053305
Make PurpleAccount subclass PurpleContactInfo
Gary Kramlich <grim@reaperworld.com>
parents:
41958
diff
changeset
|
85 | G_DECLARE_FINAL_TYPE(PurpleAccount, purple_account, PURPLE, ACCOUNT, |
|
0da91f053305
Make PurpleAccount subclass PurpleContactInfo
Gary Kramlich <grim@reaperworld.com>
parents:
41958
diff
changeset
|
86 | PurpleContactInfo) |
|
34674
2e45aee0af19
Documented functions of PurpleCipher, PurpleHash and purple_account_get_type()
Ankit Vani <a@nevitus.org>
parents:
34591
diff
changeset
|
87 | |
|
2e45aee0af19
Documented functions of PurpleCipher, PurpleHash and purple_account_get_type()
Ankit Vani <a@nevitus.org>
parents:
34591
diff
changeset
|
88 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
89 | * purple_account_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
90 | * @username: The username. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
91 | * @protocol_id: The protocol ID. |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10021
diff
changeset
|
92 | * |
| 5563 | 93 | * Creates a new account. |
| 94 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
95 | * Returns: The new account. |
| 5563 | 96 | */ |
| 15884 | 97 | PurpleAccount *purple_account_new(const char *username, const char *protocol_id); |
| 5563 | 98 | |
| 99 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
100 | * purple_account_connect: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
101 | * @account: The account to connect to. |
| 5563 | 102 | * |
| 103 | * Connects to an account. | |
| 104 | */ | |
| 15884 | 105 | void purple_account_connect(PurpleAccount *account); |
| 5563 | 106 | |
| 107 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
108 | * purple_account_disconnect: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
109 | * @account: The account to disconnect from. |
| 5563 | 110 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
111 | * Disconnects from an account. |
| 5563 | 112 | */ |
| 15884 | 113 | void purple_account_disconnect(PurpleAccount *account); |
| 5563 | 114 | |
| 115 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
116 | * purple_account_is_disconnecting: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
117 | * @account: The account |
|
32722
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
118 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
119 | * Indicates if the account is currently being disconnected. |
|
32722
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
120 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
121 | * Returns: TRUE if the account is being disconnected. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39664
diff
changeset
|
122 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39664
diff
changeset
|
123 | * Since: 3.0.0 |
|
32722
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
124 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
125 | gboolean purple_account_is_disconnecting(PurpleAccount *account); |
|
32722
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
126 | |
|
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
127 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
128 | * purple_account_request_close_with_account: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
129 | * @account: The account for which requests should be closed |
|
15537
5d7473f14c67
The accounts request API now keeps track of a returned ui_handle for authorization requests, which can be closed on demand individually or all-at-once by account. When a connection is destroyed, its associated requests are closed.
Evan Schoenberg <evands@pidgin.im>
parents:
15435
diff
changeset
|
130 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
131 | * Close account requests registered for the given PurpleAccount |
|
15537
5d7473f14c67
The accounts request API now keeps track of a returned ui_handle for authorization requests, which can be closed on demand individually or all-at-once by account. When a connection is destroyed, its associated requests are closed.
Evan Schoenberg <evands@pidgin.im>
parents:
15435
diff
changeset
|
132 | */ |
| 15884 | 133 | void purple_account_request_close_with_account(PurpleAccount *account); |
|
15537
5d7473f14c67
The accounts request API now keeps track of a returned ui_handle for authorization requests, which can be closed on demand individually or all-at-once by account. When a connection is destroyed, its associated requests are closed.
Evan Schoenberg <evands@pidgin.im>
parents:
15435
diff
changeset
|
134 | |
|
5d7473f14c67
The accounts request API now keeps track of a returned ui_handle for authorization requests, which can be closed on demand individually or all-at-once by account. When a connection is destroyed, its associated requests are closed.
Evan Schoenberg <evands@pidgin.im>
parents:
15435
diff
changeset
|
135 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
136 | * purple_account_request_close: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
137 | * @ui_handle: The ui specific handle for which requests should be closed |
|
15537
5d7473f14c67
The accounts request API now keeps track of a returned ui_handle for authorization requests, which can be closed on demand individually or all-at-once by account. When a connection is destroyed, its associated requests are closed.
Evan Schoenberg <evands@pidgin.im>
parents:
15435
diff
changeset
|
138 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
139 | * Close the account request for the given ui handle |
|
15537
5d7473f14c67
The accounts request API now keeps track of a returned ui_handle for authorization requests, which can be closed on demand individually or all-at-once by account. When a connection is destroyed, its associated requests are closed.
Evan Schoenberg <evands@pidgin.im>
parents:
15435
diff
changeset
|
140 | */ |
| 15884 | 141 | void purple_account_request_close(void *ui_handle); |
|
15537
5d7473f14c67
The accounts request API now keeps track of a returned ui_handle for authorization requests, which can be closed on demand individually or all-at-once by account. When a connection is destroyed, its associated requests are closed.
Evan Schoenberg <evands@pidgin.im>
parents:
15435
diff
changeset
|
142 | |
|
5d7473f14c67
The accounts request API now keeps track of a returned ui_handle for authorization requests, which can be closed on demand individually or all-at-once by account. When a connection is destroyed, its associated requests are closed.
Evan Schoenberg <evands@pidgin.im>
parents:
15435
diff
changeset
|
143 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
144 | * purple_account_request_password: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
145 | * @account: The account to request the password for. |
|
35682
65c1912ee2c8
Add (scope) annotation to callback parameters (account.h to proxy.h)
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
146 | * @ok_cb: (scope call): The callback for the OK button. |
|
65c1912ee2c8
Add (scope) annotation to callback parameters (account.h to proxy.h)
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
147 | * @cancel_cb: (scope call): The callback for the cancel button. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
148 | * @user_data: User data to be passed into callbacks. |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
149 | * |
|
16180
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
150 | * Requests a password from the user for the account. Does not set the |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
151 | * account password on success; do that in ok_cb if desired. |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
152 | */ |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
153 | void purple_account_request_password(PurpleAccount *account, GCallback ok_cb, |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
154 | GCallback cancel_cb, void *user_data); |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
155 | |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
156 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
157 | * purple_account_request_change_password: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
158 | * @account: The account to change the password on. |
|
7063
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
159 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
160 | * Requests information from the user to change the account's password. |
|
7063
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
161 | */ |
| 15884 | 162 | void purple_account_request_change_password(PurpleAccount *account); |
|
7063
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
163 | |
|
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
164 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
165 | * purple_account_request_change_user_info: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
166 | * @account: The account to change the user information on. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
167 | * |
|
7067
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
168 | * Requests information from the user to change the account's |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
169 | * user information. |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
170 | */ |
| 15884 | 171 | void purple_account_request_change_user_info(PurpleAccount *account); |
|
7067
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
172 | |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
173 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
174 | * purple_account_set_user_info: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
175 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
176 | * @user_info: The user information. |
| 5563 | 177 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
178 | * Sets the account's user information |
| 5563 | 179 | */ |
| 15884 | 180 | void purple_account_set_user_info(PurpleAccount *account, const char *user_info); |
| 5563 | 181 | |
| 182 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
183 | * purple_account_set_buddy_icon_path: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
184 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
185 | * @path: The buddy icon non-cached path. |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
186 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
187 | * Sets the account's buddy icon path. |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
188 | */ |
| 15884 | 189 | void purple_account_set_buddy_icon_path(PurpleAccount *account, const char *path); |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
190 | |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
191 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
192 | * purple_account_set_protocol_id: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
193 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
194 | * @protocol_id: The protocol ID. |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
195 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
196 | * Sets the account's protocol ID. |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
197 | */ |
| 15884 | 198 | void purple_account_set_protocol_id(PurpleAccount *account, |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
199 | const char *protocol_id); |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
200 | |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
201 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
202 | * purple_account_set_connection: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
203 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
204 | * @gc: The connection. |
| 5563 | 205 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
206 | * Sets the account's connection. |
| 5563 | 207 | */ |
| 15884 | 208 | void purple_account_set_connection(PurpleAccount *account, PurpleConnection *gc); |
| 5563 | 209 | |
| 210 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
211 | * purple_account_set_remember_password: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
212 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
213 | * @value: %TRUE if it should remember the password. |
| 5563 | 214 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
215 | * Sets whether or not this account should save its password. |
| 5563 | 216 | */ |
| 15884 | 217 | void purple_account_set_remember_password(PurpleAccount *account, gboolean value); |
| 5563 | 218 | |
| 219 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
220 | * purple_account_set_enabled: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
221 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
222 | * @value: %TRUE if it is enabled. |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
223 | * |
|
41392
b5c84f55d5d2
Remove the ui parameter from purple_account_[gs]et_enabled
Gary Kramlich <grim@reaperworld.com>
parents:
41318
diff
changeset
|
224 | * Sets whether or not this account is enabled. |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
225 | */ |
|
41392
b5c84f55d5d2
Remove the ui parameter from purple_account_[gs]et_enabled
Gary Kramlich <grim@reaperworld.com>
parents:
41318
diff
changeset
|
226 | void purple_account_set_enabled(PurpleAccount *account, gboolean value); |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
227 | |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
228 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
229 | * purple_account_set_proxy_info: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
230 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
231 | * @info: The proxy information. |
|
6583
198cb8cc465c
[gaim-migrate @ 7105]
Christian Hammond <chipx86@chipx86.com>
parents:
6581
diff
changeset
|
232 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
233 | * Sets the account's proxy information. |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
234 | */ |
| 15884 | 235 | void purple_account_set_proxy_info(PurpleAccount *account, PurpleProxyInfo *info); |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
236 | |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
237 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
238 | * purple_account_set_status_types: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
239 | * @account: The account. |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
38240
diff
changeset
|
240 | * @status_types: (element-type PurpleStatusType): The list of status types. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
241 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
242 | * Sets the account's status types. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
243 | */ |
| 15884 | 244 | void purple_account_set_status_types(PurpleAccount *account, GList *status_types); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
245 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
246 | /** |
|
35458
385156e1b493
Fix some gtk-doc warnings from account to connection
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
247 | * purple_account_set_status: |
|
41753
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
248 | * @account: The account. |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
249 | * @status_id: The ID of the status. |
|
41753
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
250 | * @active: Whether @status_id is to be activated (%TRUE) or deactivated |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
251 | * (%FALSE). |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
252 | * @...: A %NULL-terminated list of pairs of `const char *` attribute name |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
253 | * followed by `const char *` attribute value for the status. (For |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
254 | * example, one pair might be `"message"` followed by `"hello, talk to |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
255 | * me!"`.) |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
256 | * |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
257 | * Activates or deactivates a status. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
258 | * |
|
41753
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
259 | * All changes to the statuses of an account go through this function or |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
260 | * [method@Purple.Account.set_status_attrs]. |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
261 | * |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
262 | * You can only deactivate an exclusive status by activating another exclusive |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
263 | * status. So, if @status_id is an exclusive status and @active is %FALSE, this |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
264 | * function does nothing. |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
265 | * |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
266 | * Variadic version of [method@Purple.Account.set_status_attrs]. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
267 | */ |
| 15884 | 268 | void purple_account_set_status(PurpleAccount *account, const char *status_id, |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
269 | gboolean active, ...) G_GNUC_NULL_TERMINATED; |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
270 | |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
271 | |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
272 | /** |
|
41758
9da3c24cac29
Mark introspectable wrappers as shadowing the originals
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41753
diff
changeset
|
273 | * purple_account_set_status_attrs: (rename-to purple_account_set_status): |
|
41753
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
274 | * @account: The account. |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
275 | * @status_id: The ID of the status. |
|
41753
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
276 | * @active: Whether @status_id is to be activated (%TRUE) or deactivated |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
277 | * (%FALSE). |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
278 | * @attrs: (element-type utf8 utf8): A hash table with keys of attribute |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
279 | * names and values of attributes for the status. (For example, one |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
280 | * pair might be a key of `"message"` with a value of `"hello, talk to |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
281 | * me!"`.) |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
282 | * |
|
41753
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
283 | * Activates or deactivates a status. |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
284 | * |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
285 | * All changes to the statuses of an account go through this function or |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
286 | * [method@Purple.Account.set_status]. |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
287 | * |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
288 | * You can only deactivate an exclusive status by activating another exclusive |
|
41753
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
289 | * status. So, if @status_id is an exclusive status and @active is %FALSE, this |
|
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
290 | * function does nothing. |
|
40332
cd2da3a58f6d
Rename purple_account_set_status_list and purple_status_set_active_with_attrs_list
qarkai <qarkai@gmail.com>
parents:
40328
diff
changeset
|
291 | * |
|
cd2da3a58f6d
Rename purple_account_set_status_list and purple_status_set_active_with_attrs_list
qarkai <qarkai@gmail.com>
parents:
40328
diff
changeset
|
292 | * Since: 3.0.0 |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
293 | */ |
|
40332
cd2da3a58f6d
Rename purple_account_set_status_list and purple_status_set_active_with_attrs_list
qarkai <qarkai@gmail.com>
parents:
40328
diff
changeset
|
294 | void purple_account_set_status_attrs(PurpleAccount *account, |
|
40328
45e719e8d3bc
Replace lists of PurpleAttr with GHashTable
qarkai <qarkai@gmail.com>
parents:
39664
diff
changeset
|
295 | const char *status_id, gboolean active, GHashTable *attrs); |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
296 | |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
297 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
298 | * purple_account_clear_settings: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
299 | * @account: The account. |
|
5694
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
300 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
301 | * Clears all protocol-specific settings on an account. |
|
5694
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
302 | */ |
| 15884 | 303 | void purple_account_clear_settings(PurpleAccount *account); |
|
5694
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
304 | |
|
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
305 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
306 | * purple_account_set_int: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
307 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
308 | * @name: The name of the setting. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
309 | * @value: The setting's value. |
| 5563 | 310 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
311 | * Sets a protocol-specific integer setting for an account. |
| 5563 | 312 | */ |
| 15884 | 313 | void purple_account_set_int(PurpleAccount *account, const char *name, int value); |
| 5563 | 314 | |
| 315 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
316 | * purple_account_set_string: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
317 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
318 | * @name: The name of the setting. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
319 | * @value: The setting's value. |
| 5563 | 320 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
321 | * Sets a protocol-specific string setting for an account. |
| 5563 | 322 | */ |
| 15884 | 323 | void purple_account_set_string(PurpleAccount *account, const char *name, |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6621
diff
changeset
|
324 | const char *value); |
| 5563 | 325 | |
| 326 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
327 | * purple_account_set_bool: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
328 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
329 | * @name: The name of the setting. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
330 | * @value: The setting's value. |
| 5563 | 331 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
332 | * Sets a protocol-specific boolean setting for an account. |
| 5563 | 333 | */ |
| 15884 | 334 | void purple_account_set_bool(PurpleAccount *account, const char *name, |
| 5563 | 335 | gboolean value); |
| 336 | ||
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
337 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
338 | * purple_account_is_connected: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
339 | * @account: The account. |
| 5563 | 340 | * |
| 341 | * Returns whether or not the account is connected. | |
| 342 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
343 | * Returns: %TRUE if connected, or %FALSE otherwise. |
| 5563 | 344 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
345 | gboolean purple_account_is_connected(PurpleAccount *account); |
| 5563 | 346 | |
| 347 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
348 | * purple_account_is_connecting: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
349 | * @account: The account. |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
350 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
351 | * Returns whether or not the account is connecting. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
352 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
353 | * Returns: %TRUE if connecting, or %FALSE otherwise. |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
354 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
355 | gboolean purple_account_is_connecting(PurpleAccount *account); |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
356 | |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
357 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
358 | * purple_account_is_disconnected: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
359 | * @account: The account. |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
360 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
361 | * Returns whether or not the account is disconnected. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
362 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
363 | * Returns: %TRUE if disconnected, or %FALSE otherwise. |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
364 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
365 | gboolean purple_account_is_disconnected(PurpleAccount *account); |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
366 | |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
367 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
368 | * purple_account_get_user_info: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
369 | * @account: The account. |
| 5563 | 370 | * |
| 371 | * Returns the account's user information. | |
| 372 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
373 | * Returns: The user information. |
| 5563 | 374 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
375 | const char *purple_account_get_user_info(PurpleAccount *account); |
| 5563 | 376 | |
| 377 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
378 | * purple_account_get_buddy_icon_path: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
379 | * @account: The account. |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
380 | * |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
381 | * Gets the account's buddy icon path. |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
382 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
383 | * Returns: The buddy icon's non-cached path. |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
384 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
385 | const char *purple_account_get_buddy_icon_path(PurpleAccount *account); |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
386 | |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
387 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
388 | * purple_account_get_protocol_id: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
389 | * @account: The account. |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
390 | * |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
391 | * Returns the account's protocol ID. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
392 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
393 | * Returns: The protocol ID. |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
394 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
395 | const char *purple_account_get_protocol_id(PurpleAccount *account); |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
396 | |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
397 | /** |
|
40803
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
398 | * purple_account_get_protocol: |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
399 | * @account: The #PurpleAccount instance. |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
400 | * |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
401 | * Gets the #PurpleProtocol instance for @account. |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
402 | * |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
403 | * Returns: (transfer none): The #PurpleProtocol for @account or %NULL if it |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
404 | * could not be found. |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
405 | * |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
406 | * Since: 3.0.0 |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
407 | */ |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
408 | PurpleProtocol *purple_account_get_protocol(PurpleAccount *account); |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
409 | |
|
0e11ce1049b2
Port Pidgin from purple_protocols to PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents:
40708
diff
changeset
|
410 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
411 | * purple_account_get_protocol_name: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
412 | * @account: The account. |
|
9699
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
413 | * |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
414 | * Returns the account's protocol name. |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
415 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
416 | * Returns: The protocol name. |
|
9699
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
417 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
418 | const char *purple_account_get_protocol_name(PurpleAccount *account); |
|
9699
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
419 | |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
420 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
421 | * purple_account_get_connection: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
422 | * @account: The account. |
| 5563 | 423 | * |
| 424 | * Returns the account's connection. | |
| 425 | * | |
|
37411
2bab0b4de137
Improve GIntrospection annotations on the account API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37131
diff
changeset
|
426 | * Returns: (transfer none): The connection. |
| 5563 | 427 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
428 | PurpleConnection *purple_account_get_connection(PurpleAccount *account); |
| 5563 | 429 | |
| 430 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
431 | * purple_account_get_remember_password: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
432 | * @account: The account. |
| 5563 | 433 | * |
| 434 | * Returns whether or not this account should save its password. | |
| 435 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
436 | * Returns: %TRUE if it should remember the password. |
| 5563 | 437 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
438 | gboolean purple_account_get_remember_password(PurpleAccount *account); |
| 5563 | 439 | |
| 440 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
441 | * purple_account_get_enabled: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
442 | * @account: The account. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
443 | * |
|
41392
b5c84f55d5d2
Remove the ui parameter from purple_account_[gs]et_enabled
Gary Kramlich <grim@reaperworld.com>
parents:
41318
diff
changeset
|
444 | * Returns whether or not this account is enabled. |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
445 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
446 | * Returns: %TRUE if it enabled on this UI. |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
447 | */ |
|
41392
b5c84f55d5d2
Remove the ui parameter from purple_account_[gs]et_enabled
Gary Kramlich <grim@reaperworld.com>
parents:
41318
diff
changeset
|
448 | gboolean purple_account_get_enabled(PurpleAccount *account); |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
449 | |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
450 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
451 | * purple_account_get_proxy_info: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
452 | * @account: The account. |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
453 | * |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
454 | * Returns the account's proxy information. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
455 | * |
|
41753
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
456 | * Returns: (transfer none): The proxy information. |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
457 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
458 | PurpleProxyInfo *purple_account_get_proxy_info(PurpleAccount *account); |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
459 | |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
460 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
461 | * purple_account_get_active_status: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
462 | * @account: The account. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
463 | * |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
464 | * Returns the active status for this account. This looks through |
| 15884 | 465 | * the PurplePresence associated with this account and returns the |
| 466 | * PurpleStatus that has its active flag set to "TRUE." There can be | |
| 467 | * only one active PurpleStatus in a PurplePresence. | |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
468 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
38240
diff
changeset
|
469 | * Returns: (transfer none): The active status. |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
470 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
471 | PurpleStatus *purple_account_get_active_status(PurpleAccount *account); |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
472 | |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
473 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
474 | * purple_account_get_status: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
475 | * @account: The account. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
476 | * @status_id: The status ID. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
477 | * |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
478 | * Returns the account status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
479 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
38240
diff
changeset
|
480 | * Returns: (transfer none): The status, or %NULL if it was never registered. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
481 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
482 | PurpleStatus *purple_account_get_status(PurpleAccount *account, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
483 | const char *status_id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
484 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
485 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
486 | * purple_account_get_status_type: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
487 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
488 | * @id: The ID of the status type to find. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
489 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
490 | * Returns the account status type with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
491 | * |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35458
diff
changeset
|
492 | * Returns: The status type if found, or %NULL. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
493 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
494 | PurpleStatusType *purple_account_get_status_type(PurpleAccount *account, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
495 | const char *id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
496 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
497 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
498 | * purple_account_get_status_type_with_primitive: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
499 | * @account: The account. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
500 | * @primitive: The type of the status type to find. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
501 | * |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
502 | * Returns the account status type with the specified primitive. |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
503 | * Note: It is possible for an account to have more than one |
| 15884 | 504 | * PurpleStatusType with the same primitive. In this case, the |
| 505 | * first PurpleStatusType is returned. | |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
506 | * |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35458
diff
changeset
|
507 | * Returns: The status if found, or %NULL. |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
508 | */ |
| 15884 | 509 | PurpleStatusType *purple_account_get_status_type_with_primitive( |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
510 | PurpleAccount *account, |
| 15884 | 511 | PurpleStatusPrimitive primitive); |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
512 | |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
513 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
514 | * purple_account_get_presence: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
515 | * @account: The account. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
516 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
517 | * Returns the account's presence. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
518 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
38240
diff
changeset
|
519 | * Returns: (transfer none): The account's presence. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
520 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
521 | PurplePresence *purple_account_get_presence(PurpleAccount *account); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
522 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
523 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
524 | * purple_account_is_status_active: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
525 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
526 | * @status_id: The status ID. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
527 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
528 | * Returns whether or not an account status is active. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
529 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
530 | * Returns: TRUE if active, or FALSE if not. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
531 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
532 | gboolean purple_account_is_status_active(PurpleAccount *account, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
533 | const char *status_id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
534 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
535 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
536 | * purple_account_get_status_types: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
537 | * @account: The account. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
538 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
539 | * Returns the account's status types. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
540 | * |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
38240
diff
changeset
|
541 | * Returns: (transfer none) (element-type PurpleStatusType): The account's status types. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
542 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
543 | GList *purple_account_get_status_types(PurpleAccount *account); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
544 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
545 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
546 | * purple_account_get_int: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
547 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
548 | * @name: The name of the setting. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
549 | * @default_value: The default value. |
| 5563 | 550 | * |
| 551 | * Returns a protocol-specific integer setting for an account. | |
| 552 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
553 | * Returns: The value. |
| 5563 | 554 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
555 | int purple_account_get_int(PurpleAccount *account, const char *name, |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
556 | int default_value); |
| 5563 | 557 | |
| 558 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
559 | * purple_account_get_string: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
560 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
561 | * @name: The name of the setting. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
562 | * @default_value: The default value. |
| 5563 | 563 | * |
| 564 | * Returns a protocol-specific string setting for an account. | |
| 565 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
566 | * Returns: The value. |
| 5563 | 567 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
568 | const char *purple_account_get_string(PurpleAccount *account, |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
569 | const char *name, |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
570 | const char *default_value); |
| 5563 | 571 | |
| 572 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
573 | * purple_account_get_bool: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
574 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
575 | * @name: The name of the setting. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
576 | * @default_value: The default value. |
| 5563 | 577 | * |
| 578 | * Returns a protocol-specific boolean setting for an account. | |
| 579 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
580 | * Returns: The value. |
| 5563 | 581 | */ |
|
39514
9c7715998bbc
Cleanup account.[ch] and status.[ch] to remove g_type_class_add_private and other cleans including remove const from accessors
Gary Kramlich <grim@reaperworld.com>
parents:
38745
diff
changeset
|
582 | gboolean purple_account_get_bool(PurpleAccount *account, const char *name, |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
583 | gboolean default_value); |
| 5563 | 584 | |
| 585 | /** | |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
586 | * purple_account_add_buddy: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
587 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
588 | * @buddy: The buddy to add. |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
589 | * @message: The invite message. This may be ignored by a protocol. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
590 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
591 | * Adds a buddy to the server-side buddy list for the specified account. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
592 | */ |
|
32315
2550a39e0285
Rename the _with_invite functions to their counterparts.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31594
diff
changeset
|
593 | void purple_account_add_buddy(PurpleAccount *account, PurpleBuddy *buddy, const char *message); |
|
31594
ec0856af6477
Add new functions for adding buddies with an invite message. If the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31566
diff
changeset
|
594 | |
|
ec0856af6477
Add new functions for adding buddies with an invite message. If the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31566
diff
changeset
|
595 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
596 | * purple_account_add_buddies: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
597 | * @account: The account. |
| 38634 | 598 | * @buddies: (element-type PurpleBuddy): The list of PurpleBlistNodes representing the buddies to add. |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
599 | * @message: The invite message. This may be ignored by a protocol. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
600 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
601 | * Adds a list of buddies to the server-side buddy list. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
602 | */ |
|
32315
2550a39e0285
Rename the _with_invite functions to their counterparts.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31594
diff
changeset
|
603 | void purple_account_add_buddies(PurpleAccount *account, GList *buddies, const char *message); |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
604 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
605 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
606 | * purple_account_remove_buddy: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
607 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
608 | * @buddy: The buddy to remove. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
609 | * @group: The group to remove the buddy from. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
610 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
611 | * Removes a buddy from the server-side buddy list. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
612 | */ |
| 15884 | 613 | void purple_account_remove_buddy(PurpleAccount *account, PurpleBuddy *buddy, |
| 614 | PurpleGroup *group); | |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
615 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
616 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
617 | * purple_account_remove_buddies: |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
618 | * @account: The account. |
|
38632
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
38240
diff
changeset
|
619 | * @buddies: (element-type PurpleBuddy): The list of buddies to remove. |
|
4cbae4a1bac1
Add a lot of type annotations, still many more to go
Gary Kramlich <grim@reaperworld.com>
parents:
38240
diff
changeset
|
620 | * @groups: (element-type PurpleGroup): The list of groups to remove buddies from. Each node of this |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
621 | * list should match the corresponding node of buddies. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
622 | * |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
623 | * Removes a list of buddies from the server-side buddy list. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
624 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
625 | * Note: The lists buddies and groups are parallel lists. Be sure that node n of |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
626 | * groups matches node n of buddies. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
627 | */ |
| 15884 | 628 | void purple_account_remove_buddies(PurpleAccount *account, GList *buddies, |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
629 | GList *groups); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
630 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
631 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
632 | * purple_account_remove_group: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
633 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
634 | * @group: The group to remove. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
635 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
636 | * Removes a group from the server-side buddy list. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
637 | */ |
| 15884 | 638 | void purple_account_remove_group(PurpleAccount *account, PurpleGroup *group); |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
639 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
640 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
641 | * purple_account_change_password: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
642 | * @account: The account. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
643 | * @orig_pw: The old password. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
644 | * @new_pw: The new password. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
645 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
646 | * Changes the password on the specified account. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
647 | */ |
| 15884 | 648 | void purple_account_change_password(PurpleAccount *account, const char *orig_pw, |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
649 | const char *new_pw); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
650 | |
|
12645
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
651 | /** |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
652 | * purple_account_supports_offline_message: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
653 | * @account: The account |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
654 | * @buddy: The buddy |
|
12645
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
655 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
656 | * Whether the account supports sending offline messages to buddy. |
|
12645
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
657 | */ |
| 15884 | 658 | gboolean purple_account_supports_offline_message(PurpleAccount *account, PurpleBuddy *buddy); |
|
12645
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
659 | |
|
21287
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
660 | /** |
|
42049
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
661 | * purple_account_get_error: |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
662 | * @account: The account whose error should be retrieved. |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
663 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35178
diff
changeset
|
664 | * Get the error that caused the account to be disconnected, or %NULL if the |
|
21287
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
665 | * account is happily connected or disconnected without an error. |
|
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
666 | * |
|
35396
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
667 | * Returns: (transfer none): The type of error and a human-readable description |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
668 | * of the current error, or %NULL if there is no current error. This |
|
7bfe75a37af7
Convert docs from doxygen to gtk-doc format for account*, blist*, media/*
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
669 | * pointer is guaranteed to remain valid until the @ref |
|
41753
316c1207f787
Fix various small documentation errors
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41714
diff
changeset
|
670 | * account-error-changed signal is emitted for @account. |
|
21287
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
671 | */ |
|
42049
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
672 | const PurpleConnectionErrorInfo *purple_account_get_error(PurpleAccount *account); |
|
21287
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
673 | |
|
21311
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
674 | /** |
|
42049
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
675 | * purple_account_set_error: |
|
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
676 | * @account: The account whose error should be set. |
|
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
677 | * @info: (nullable) (transfer full): The [struct@Purple.ConnectionErrorInfo] |
|
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
678 | * to set. |
|
21311
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
679 | * |
|
42049
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
680 | * Sets the error of @account to @info. Note that setting this won't disconnect |
|
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
681 | * the account. This is intended to be called by libpurple when there is a |
|
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
682 | * connection failure, when invalid settings are entered in an account editor, |
|
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
683 | * or similar situations. |
|
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
684 | * |
|
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
685 | * Since: 3.0.0 |
|
21311
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
686 | */ |
|
42049
16d2e16bd24f
Export Account::error
Gary Kramlich <grim@reaperworld.com>
parents:
41984
diff
changeset
|
687 | void purple_account_set_error(PurpleAccount *account, PurpleConnectionErrorInfo *info); |
|
21311
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
688 | |
|
41773
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
689 | /** |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
690 | * purple_account_set_require_password: |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
691 | * @account: The instance. |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
692 | * @require_password: Whether or not this account should require a password. |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
693 | * |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
694 | * For protocols that have an optional password, this settings tells libpurple |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
695 | * that it should look for a password in the [class@Purple.CredentialManager] |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
696 | * or prompt the user if a password can not be found. |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
697 | * |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
698 | * Since: 3.0.0 |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
699 | */ |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
700 | void purple_account_set_require_password(PurpleAccount *account, gboolean require_password); |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
701 | |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
702 | /** |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
703 | * purple_account_get_require_password: |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
704 | * @account: The instance. |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
705 | * |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
706 | * Gets whether or not @account requires a password. |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
707 | * |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
708 | * Returns: %TRUE if the account requires a password, %FALSE otherwise. |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
709 | * |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
710 | * Since: 3.0.0 |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
711 | */ |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
712 | gboolean purple_account_get_require_password(PurpleAccount *account); |
|
c4acd02fdf73
Add a require-password property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41758
diff
changeset
|
713 | |
|
41920
29ebd938c592
Add a contact property to PurpleAccount
Gary Kramlich <grim@reaperworld.com>
parents:
41914
diff
changeset
|
714 | /** |
|
41946
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
715 | * purple_account_freeze_notify_settings: |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
716 | * @account: The instance. |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
717 | * |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
718 | * Increment the freeze count for settings on @account. When the freeze count |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
719 | * is greater than 0, the [signal@Purple.Account::setting-changed] signal will |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
720 | * not be emitted until the freeze count returns to 0. |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
721 | * |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
722 | * This is intended to only notify once @account has reached a consistent |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
723 | * state. Most user interfaces change all of the properties on an account at |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
724 | * once and some of them may be co-dependent, so all values need to be updated |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
725 | * before the change can be acted upon. |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
726 | * |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
727 | * Call [method@Purple.Account.thaw_notify_settings] to decrement the freeze |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
728 | * counter. |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
729 | * |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
730 | * Since: 3.0.0 |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
731 | */ |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
732 | void purple_account_freeze_notify_settings(PurpleAccount *account); |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
733 | |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
734 | /** |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
735 | * purple_account_thaw_notify_settings: |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
736 | * @account: The instance. |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
737 | * |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
738 | * Decrements the freeze count for settings on @account. |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
739 | * |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
740 | * See [method@Purple.Account.freeze_notify_settings] for more information. |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
741 | * |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
742 | * Since: 3.0.0 |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
743 | */ |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
744 | void purple_account_thaw_notify_settings(PurpleAccount *account); |
|
0fb3b0e7122f
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Gary Kramlich <grim@reaperworld.com>
parents:
41920
diff
changeset
|
745 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32722
diff
changeset
|
746 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
747 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39514
diff
changeset
|
748 | #endif /* PURPLE_ACCOUNT_H */ |