Sun, 28 Apr 2013 02:26:38 +0200
keyring.c refactoring - order up function implementations
| 5563 | 1 | /** |
| 2 | * @file account.h Account API | |
| 3 | * @ingroup core | |
|
20889
3d0ef192f98c
All the links to libpurple signal pages were in the comment containing the
Will Thompson <resiak@pidgin.im>
parents:
20147
diff
changeset
|
4 | * @see @ref account-signals |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19897
diff
changeset
|
5 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19897
diff
changeset
|
6 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19897
diff
changeset
|
7 | /* purple |
| 5563 | 8 | * |
| 15884 | 9 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 10 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 11 | * source distribution. | |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
12 | * |
| 5563 | 13 | * This program is free software; you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU General Public License as published by | |
| 15 | * the Free Software Foundation; either version 2 of the License, or | |
| 16 | * (at your option) any later version. | |
| 17 | * | |
| 18 | * This program is distributed in the hope that it will be useful, | |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | * GNU General Public License for more details. | |
| 22 | * | |
| 23 | * You should have received a copy of the GNU General Public License | |
| 24 | * 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
|
25 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5563 | 26 | */ |
| 15884 | 27 | #ifndef _PURPLE_ACCOUNT_H_ |
| 28 | #define _PURPLE_ACCOUNT_H_ | |
| 5563 | 29 | |
|
10021
5aa380278a15
[gaim-migrate @ 10946]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
30 | #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
|
31 | #include <glib-object.h> |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8235
diff
changeset
|
32 | |
|
22592
0c01dc1d3ddd
Make PurpleAccount's documentation actually show up; also, sprinkle some
Will Thompson <resiak@pidgin.im>
parents:
22246
diff
changeset
|
33 | /** @copydoc _PurpleAccountUiOps */ |
| 15884 | 34 | typedef struct _PurpleAccountUiOps PurpleAccountUiOps; |
|
22592
0c01dc1d3ddd
Make PurpleAccount's documentation actually show up; also, sprinkle some
Will Thompson <resiak@pidgin.im>
parents:
22246
diff
changeset
|
35 | /** @copydoc _PurpleAccount */ |
| 15884 | 36 | typedef struct _PurpleAccount PurpleAccount; |
| 5563 | 37 | |
| 15884 | 38 | typedef gboolean (*PurpleFilterAccountFunc)(PurpleAccount *account); |
|
33687
0819d40769c8
Add a message to the authorization callbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
39 | typedef void (*PurpleAccountRequestAuthorizationCb)(const char *, void *); |
|
17815
232d57a6b6df
Simplified registration callback per request of Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17814
diff
changeset
|
40 | typedef void (*PurpleAccountRegistrationCb)(PurpleAccount *account, gboolean succeeded, void *user_data); |
|
18994
310e9d853e2b
Implemented a callback for unregistering, mirroring the registration callback. Since this is a new API, I can do it properly by passing it right in the unregister function call, instead of having a separate function for setting it.
Andreas Monitzer <am@adiumx.com>
parents:
18912
diff
changeset
|
41 | typedef void (*PurpleAccountUnregistrationCb)(PurpleAccount *account, gboolean succeeded, void *user_data); |
|
30138
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
42 | typedef void (*PurpleSetPublicAliasSuccessCallback)(PurpleAccount *account, const char *new_alias); |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
43 | typedef void (*PurpleSetPublicAliasFailureCallback)(PurpleAccount *account, const char *error); |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
44 | typedef void (*PurpleGetPublicAliasSuccessCallback)(PurpleAccount *account, const char *alias); |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
45 | typedef void (*PurpleGetPublicAliasFailureCallback)(PurpleAccount *account, const char *error); |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8235
diff
changeset
|
46 | |
| 5563 | 47 | #include "connection.h" |
|
9718
aeee69c6c784
[gaim-migrate @ 10579]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
48 | #include "log.h" |
|
26392
614847d4e059
Is there any reason this is an int instead of PurplePrivacyType? I
Mark Doliner <markdoliner@pidgin.im>
parents:
25911
diff
changeset
|
49 | #include "privacy.h" |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
50 | #include "proxy.h" |
| 5563 | 51 | #include "prpl.h" |
| 9947 | 52 | #include "status.h" |
|
33983
317cd0a252c2
Fixed a bunch of bugs/errors, worked on making calls async, on configuration UI, and on Makefiles.
Vivien Bernet-Rollande <scrouaf@soc.pidgin.im>
parents:
22592
diff
changeset
|
53 | #include "keyring.h" |
| 5563 | 54 | |
|
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
|
55 | /** |
|
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
|
56 | * Account request types. |
|
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
|
57 | */ |
|
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
|
58 | typedef enum |
|
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
|
59 | { |
| 15884 | 60 | PURPLE_ACCOUNT_REQUEST_AUTHORIZATION = 0 /* Account authorization request */ |
| 61 | } PurpleAccountRequestType; | |
|
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
|
62 | |
|
31325
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
63 | /** |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
64 | * 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
|
65 | */ |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
66 | typedef enum |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
67 | { |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
68 | 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
|
69 | 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
|
70 | 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
|
71 | 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
|
72 | } PurpleAccountRequestResponse; |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
73 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
74 | /** Account UI operations, used to notify the user of status changes and when |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
75 | * buddies add this account to their buddy lists. |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
76 | */ |
| 15884 | 77 | struct _PurpleAccountUiOps |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
78 | { |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
79 | /** A buddy who is already on this account's buddy list added this account |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
80 | * to their buddy list. |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
81 | */ |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
82 | void (*notify_added)(PurpleAccount *account, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
83 | const char *remote_user, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
84 | const char *id, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
85 | const char *alias, |
| 12285 | 86 | const char *message); |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
87 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
88 | /** This account's status changed. */ |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
89 | void (*status_changed)(PurpleAccount *account, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
90 | PurpleStatus *status); |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
91 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
92 | /** Someone we don't have on our list added us; prompt to add them. */ |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
93 | void (*request_add)(PurpleAccount *account, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
94 | const char *remote_user, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
95 | const char *id, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
96 | const char *alias, |
| 12285 | 97 | const char *message); |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
98 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
99 | /** Prompt for authorization when someone adds this account to their buddy |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
100 | * list. To authorize them to see this account's presence, call \a |
|
33687
0819d40769c8
Add a message to the authorization callbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
101 | * authorize_cb (\a message, \a user_data); otherwise call |
|
0819d40769c8
Add a message to the authorization callbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
102 | * \a deny_cb (\a message, \a user_data); |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
103 | * @return a UI-specific handle, as passed to #close_account_request. |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
104 | */ |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
105 | void *(*request_authorize)(PurpleAccount *account, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
106 | const char *remote_user, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
107 | const char *id, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
108 | const char *alias, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
109 | const char *message, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
110 | gboolean on_list, |
|
19125
d92cd58cc6ba
Correct the types of the authorize_cb and deny_cb parameters of
Will Thompson <resiak@pidgin.im>
parents:
19114
diff
changeset
|
111 | PurpleAccountRequestAuthorizationCb authorize_cb, |
|
d92cd58cc6ba
Correct the types of the authorize_cb and deny_cb parameters of
Will Thompson <resiak@pidgin.im>
parents:
19114
diff
changeset
|
112 | PurpleAccountRequestAuthorizationCb deny_cb, |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
113 | void *user_data); |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
114 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
115 | /** Close a pending request for authorization. \a ui_handle is a handle |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
116 | * as returned by #request_authorize. |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
117 | */ |
|
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
|
118 | void (*close_account_request)(void *ui_handle); |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16538
diff
changeset
|
119 | |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16538
diff
changeset
|
120 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16538
diff
changeset
|
121 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16538
diff
changeset
|
122 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16538
diff
changeset
|
123 | void (*_purple_reserved4)(void); |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
124 | }; |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
125 | |
|
22592
0c01dc1d3ddd
Make PurpleAccount's documentation actually show up; also, sprinkle some
Will Thompson <resiak@pidgin.im>
parents:
22246
diff
changeset
|
126 | /** Structure representing an account. |
|
0c01dc1d3ddd
Make PurpleAccount's documentation actually show up; also, sprinkle some
Will Thompson <resiak@pidgin.im>
parents:
22246
diff
changeset
|
127 | */ |
| 15884 | 128 | struct _PurpleAccount |
| 5563 | 129 | { |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
130 | char *username; /**< The username. */ |
|
14337
63870f0c0b01
[gaim-migrate @ 16960]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
131 | char *alias; /**< How you appear to yourself. */ |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
132 | char *password; /**< The account password. */ |
|
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
133 | char *user_info; /**< User information. */ |
| 5563 | 134 | |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
135 | char *buddy_icon_path; /**< The buddy icon's non-cached path. */ |
| 5563 | 136 | |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
137 | gboolean remember_pass; /**< Remember the password. */ |
| 5563 | 138 | |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
139 | char *protocol_id; /**< The ID of the protocol. */ |
| 5563 | 140 | |
| 15884 | 141 | PurpleConnection *gc; /**< The connection handle. */ |
| 10384 | 142 | gboolean disconnecting; /**< The account is currently disconnecting */ |
| 5563 | 143 | |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
144 | GHashTable *settings; /**< Protocol-specific settings. */ |
|
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
145 | GHashTable *ui_settings; /**< UI-specific settings. */ |
| 5563 | 146 | |
| 15884 | 147 | PurpleProxyInfo *proxy_info; /**< Proxy information. This will be set */ |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
148 | /* to NULL when the account inherits */ |
|
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
149 | /* proxy settings from global prefs. */ |
| 5563 | 150 | |
|
25592
a8bc9676ea52
Add a note that we should use hash tables for the permit and deny lists.
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
151 | /* |
|
a8bc9676ea52
Add a note that we should use hash tables for the permit and deny lists.
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
152 | * TODO: Supplementing the next two linked lists with hash tables |
|
a8bc9676ea52
Add a note that we should use hash tables for the permit and deny lists.
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
153 | * should help performance a lot when these lists are long. This |
|
a8bc9676ea52
Add a note that we should use hash tables for the permit and deny lists.
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
154 | * matters quite a bit for protocols like MSN, where all your |
|
a8bc9676ea52
Add a note that we should use hash tables for the permit and deny lists.
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
155 | * buddies are added to your permit list. Currently we have to |
|
a8bc9676ea52
Add a note that we should use hash tables for the permit and deny lists.
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
156 | * iterate through the entire list if we want to check if someone |
|
a8bc9676ea52
Add a note that we should use hash tables for the permit and deny lists.
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
157 | * is permitted or denied. We should do this for 3.0.0. |
| 31418 | 158 | * Or maybe use a GTree. |
|
25592
a8bc9676ea52
Add a note that we should use hash tables for the permit and deny lists.
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
159 | */ |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
160 | GSList *permit; /**< Permit list. */ |
|
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
161 | GSList *deny; /**< Deny list. */ |
|
26392
614847d4e059
Is there any reason this is an int instead of PurplePrivacyType? I
Mark Doliner <markdoliner@pidgin.im>
parents:
25911
diff
changeset
|
162 | PurplePrivacyType perm_deny; /**< The permit/deny setting. */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
163 | |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
164 | GList *status_types; /**< Status types. */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
165 | |
| 15884 | 166 | PurplePresence *presence; /**< Presence. */ |
| 167 | PurpleLog *system_log; /**< The system log */ | |
|
9304
5077b31f5526
[gaim-migrate @ 10112]
Christian Hammond <chipx86@chipx86.com>
parents:
9187
diff
changeset
|
168 | |
|
32627
ed5e5f628475
disapproval of revision 'c11d59fa749fd2299edf12c187847f8956ed11ad'
Kevin Stange <kstange@pidgin.im>
parents:
32626
diff
changeset
|
169 | void *ui_data; /**< The UI can put data here. */ |
|
17814
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
170 | PurpleAccountRegistrationCb registration_cb; |
|
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
171 | void *registration_cb_user_data; |
|
21287
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
172 | |
|
32628
d3ad4cb046aa
The intention is to make PurpleAccount a private structure in account.c, so merge
Andrew Victor <andrew.victor@mxit.com>
parents:
32626
diff
changeset
|
173 | PurpleConnectionErrorInfo *current_error; /**< Errors */ |
| 5563 | 174 | }; |
| 175 | ||
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32722
diff
changeset
|
176 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
177 | |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
178 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
179 | /** @name Account API */ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
180 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
181 | /*@{*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
182 | |
| 5563 | 183 | /** |
| 184 | * Creates a new account. | |
| 185 | * | |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
186 | * @param username The username. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
187 | * @param protocol_id The protocol ID. |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10021
diff
changeset
|
188 | * |
|
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10021
diff
changeset
|
189 | * @return The new account. |
| 5563 | 190 | */ |
| 15884 | 191 | PurpleAccount *purple_account_new(const char *username, const char *protocol_id); |
| 5563 | 192 | |
| 193 | /** | |
| 194 | * Destroys an account. | |
| 195 | * | |
| 196 | * @param account The account to destroy. | |
| 197 | */ | |
| 15884 | 198 | void purple_account_destroy(PurpleAccount *account); |
| 5563 | 199 | |
| 200 | /** | |
| 201 | * Connects to an account. | |
| 202 | * | |
| 203 | * @param account The account to connect to. | |
| 204 | */ | |
| 15884 | 205 | void purple_account_connect(PurpleAccount *account); |
| 5563 | 206 | |
| 207 | /** | |
|
17814
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
208 | * Sets the callback for successful registration. |
|
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
209 | * |
|
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
210 | * @param account The account for which this callback should be used |
|
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
211 | * @param cb The callback |
|
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
212 | * @param user_data The user data passed to the callback |
|
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
213 | */ |
|
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
214 | void purple_account_set_register_callback(PurpleAccount *account, PurpleAccountRegistrationCb cb, void *user_data); |
|
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
215 | |
|
c47c22006b0d
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
Andreas Monitzer <am@adiumx.com>
parents:
17800
diff
changeset
|
216 | /** |
| 6581 | 217 | * Registers an account. |
| 218 | * | |
| 219 | * @param account The account to register. | |
| 220 | */ | |
| 15884 | 221 | void purple_account_register(PurpleAccount *account); |
| 6581 | 222 | |
| 223 | /** | |
|
32721
3a64afbc2da2
Introduce purple_account_register_completed() to handle the invoking of any
Andrew Victor <andrew.victor@mxit.com>
parents:
32630
diff
changeset
|
224 | * Registration of the account was completed. |
|
3a64afbc2da2
Introduce purple_account_register_completed() to handle the invoking of any
Andrew Victor <andrew.victor@mxit.com>
parents:
32630
diff
changeset
|
225 | * Calls the registration call-back set with purple_account_set_register_callback(). |
|
3a64afbc2da2
Introduce purple_account_register_completed() to handle the invoking of any
Andrew Victor <andrew.victor@mxit.com>
parents:
32630
diff
changeset
|
226 | * |
|
3a64afbc2da2
Introduce purple_account_register_completed() to handle the invoking of any
Andrew Victor <andrew.victor@mxit.com>
parents:
32630
diff
changeset
|
227 | * @param account The account being registered. |
|
3a64afbc2da2
Introduce purple_account_register_completed() to handle the invoking of any
Andrew Victor <andrew.victor@mxit.com>
parents:
32630
diff
changeset
|
228 | * @param succeeded Was the account registration successful? |
|
3a64afbc2da2
Introduce purple_account_register_completed() to handle the invoking of any
Andrew Victor <andrew.victor@mxit.com>
parents:
32630
diff
changeset
|
229 | */ |
|
3a64afbc2da2
Introduce purple_account_register_completed() to handle the invoking of any
Andrew Victor <andrew.victor@mxit.com>
parents:
32630
diff
changeset
|
230 | void purple_account_register_completed(PurpleAccount *account, gboolean succeeded); |
|
3a64afbc2da2
Introduce purple_account_register_completed() to handle the invoking of any
Andrew Victor <andrew.victor@mxit.com>
parents:
32630
diff
changeset
|
231 | |
|
3a64afbc2da2
Introduce purple_account_register_completed() to handle the invoking of any
Andrew Victor <andrew.victor@mxit.com>
parents:
32630
diff
changeset
|
232 | /** |
|
18912
606597744812
Added unregistering XMPP accounts. This requires a new prpl-struct entry, but I got an ok for that on the mailing list.
Andreas Monitzer <am@adiumx.com>
parents:
18718
diff
changeset
|
233 | * Unregisters an account (deleting it from the server). |
|
606597744812
Added unregistering XMPP accounts. This requires a new prpl-struct entry, but I got an ok for that on the mailing list.
Andreas Monitzer <am@adiumx.com>
parents:
18718
diff
changeset
|
234 | * |
|
606597744812
Added unregistering XMPP accounts. This requires a new prpl-struct entry, but I got an ok for that on the mailing list.
Andreas Monitzer <am@adiumx.com>
parents:
18718
diff
changeset
|
235 | * @param account The account to unregister. |
|
18994
310e9d853e2b
Implemented a callback for unregistering, mirroring the registration callback. Since this is a new API, I can do it properly by passing it right in the unregister function call, instead of having a separate function for setting it.
Andreas Monitzer <am@adiumx.com>
parents:
18912
diff
changeset
|
236 | * @param cb Optional callback to be called when unregistration is complete |
|
310e9d853e2b
Implemented a callback for unregistering, mirroring the registration callback. Since this is a new API, I can do it properly by passing it right in the unregister function call, instead of having a separate function for setting it.
Andreas Monitzer <am@adiumx.com>
parents:
18912
diff
changeset
|
237 | * @param user_data user data to pass to the callback |
|
18912
606597744812
Added unregistering XMPP accounts. This requires a new prpl-struct entry, but I got an ok for that on the mailing list.
Andreas Monitzer <am@adiumx.com>
parents:
18718
diff
changeset
|
238 | */ |
|
18994
310e9d853e2b
Implemented a callback for unregistering, mirroring the registration callback. Since this is a new API, I can do it properly by passing it right in the unregister function call, instead of having a separate function for setting it.
Andreas Monitzer <am@adiumx.com>
parents:
18912
diff
changeset
|
239 | void purple_account_unregister(PurpleAccount *account, PurpleAccountUnregistrationCb cb, void *user_data); |
|
18912
606597744812
Added unregistering XMPP accounts. This requires a new prpl-struct entry, but I got an ok for that on the mailing list.
Andreas Monitzer <am@adiumx.com>
parents:
18718
diff
changeset
|
240 | |
|
606597744812
Added unregistering XMPP accounts. This requires a new prpl-struct entry, but I got an ok for that on the mailing list.
Andreas Monitzer <am@adiumx.com>
parents:
18718
diff
changeset
|
241 | /** |
| 5563 | 242 | * Disconnects from an account. |
| 243 | * | |
| 244 | * @param account The account to disconnect from. | |
| 245 | */ | |
| 15884 | 246 | void purple_account_disconnect(PurpleAccount *account); |
| 5563 | 247 | |
| 248 | /** | |
|
32722
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
249 | * Indicates if the account is currently being disconnected. |
|
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
250 | * |
|
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
251 | * @param account The account |
|
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
252 | * |
|
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
253 | * @return TRUE if the account is being disconnected. |
|
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
254 | */ |
|
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
255 | gboolean purple_account_is_disconnecting(const PurpleAccount *account); |
|
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
256 | |
|
50ed95d90d55
Add purple_account_is_disconnecting() accessor function.
Andrew Victor <andrew.victor@mxit.com>
parents:
32721
diff
changeset
|
257 | /** |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
258 | * Notifies the user that the account was added to a remote user's |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
259 | * buddy list. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
260 | * |
| 12285 | 261 | * This will present a dialog informing the user that he was added to the |
| 262 | * remote user's buddy list. | |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
263 | * |
| 12286 | 264 | * @param account The account that was added. |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
265 | * @param remote_user The name of the user that added this account. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
266 | * @param id The optional ID of the local account. Rarely used. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
267 | * @param alias The optional alias of the user. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
268 | * @param message The optional message sent from the user adding you. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
269 | */ |
| 15884 | 270 | void purple_account_notify_added(PurpleAccount *account, const char *remote_user, |
| 12285 | 271 | const char *id, const char *alias, |
| 272 | const char *message); | |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
273 | |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
274 | /** |
| 12285 | 275 | * Notifies the user that the account was addded to a remote user's buddy |
| 276 | * list and asks ther user if they want to add the remote user to their buddy | |
| 277 | * list. | |
| 278 | * | |
| 279 | * This will present a dialog informing the local user that the remote user | |
| 280 | * added them to the remote user's buddy list and will ask if they want to add | |
| 281 | * the remote user to the buddy list. | |
| 282 | * | |
| 283 | * @param account The account that was added. | |
| 284 | * @param remote_user The name of the user that added this account. | |
| 285 | * @param id The optional ID of the local account. Rarely used. | |
| 286 | * @param alias The optional alias of the user. | |
| 287 | * @param message The optional message sent from the user adding you. | |
| 288 | */ | |
| 15884 | 289 | void purple_account_request_add(PurpleAccount *account, const char *remote_user, |
| 12285 | 290 | const char *id, const char *alias, |
| 291 | const char *message); | |
| 15119 | 292 | |
| 293 | /** | |
| 294 | * Notifies the user that a remote user has wants to add the local user | |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
295 | * to his or her buddy list and requires authorization to do so. |
| 15119 | 296 | * |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
297 | * This will present a dialog informing the user of this and ask if the |
| 15119 | 298 | * user authorizes or denies the remote user from adding him. |
| 299 | * | |
| 300 | * @param account The account that was added | |
|
16262
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
16180
diff
changeset
|
301 | * @param remote_user The name of the user that added this account. |
| 15119 | 302 | * @param id The optional ID of the local account. Rarely used. |
| 303 | * @param alias The optional alias of the remote user. | |
| 21927 | 304 | * @param message The optional message sent by the user wanting to add you. |
|
16262
1d9b65303dfc
Doxygen updates. This eliminated all the warnings from Doxygen.
Richard Laager <rlaager@pidgin.im>
parents:
16180
diff
changeset
|
305 | * @param on_list Is the remote user already on the buddy list? |
| 15119 | 306 | * @param auth_cb The callback called when the local user accepts |
| 307 | * @param deny_cb The callback called when the local user rejects | |
| 308 | * @param user_data Data to be passed back to the above callbacks | |
|
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
|
309 | * |
|
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
|
310 | * @return A UI-specific handle. |
| 15119 | 311 | */ |
| 15884 | 312 | void *purple_account_request_authorization(PurpleAccount *account, const char *remote_user, |
| 15197 | 313 | const char *id, const char *alias, const char *message, gboolean on_list, |
|
19335
4613b53d5741
Warning fixes in the aftermath of resiak's authorize_cb and deny_cb type fixing.
Daniel Atallah <datallah@pidgin.im>
parents:
19125
diff
changeset
|
314 | PurpleAccountRequestAuthorizationCb auth_cb, PurpleAccountRequestAuthorizationCb deny_cb, void *user_data); |
| 15119 | 315 | |
| 12285 | 316 | /** |
| 15884 | 317 | * 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
|
318 | * |
|
15997
ff97c5f69196
A little doxygen love and some tiny gaim->purpleisms
Mark Doliner <markdoliner@pidgin.im>
parents:
15884
diff
changeset
|
319 | * @param 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
|
320 | */ |
| 15884 | 321 | 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
|
322 | |
|
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
|
323 | /** |
|
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
|
324 | * Close the account request for the given ui handle |
|
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
|
325 | * |
|
15997
ff97c5f69196
A little doxygen love and some tiny gaim->purpleisms
Mark Doliner <markdoliner@pidgin.im>
parents:
15884
diff
changeset
|
326 | * @param 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
|
327 | */ |
| 15884 | 328 | 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
|
329 | |
|
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
|
330 | /** |
|
16180
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
331 | * 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
|
332 | * 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
|
333 | * |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
334 | * @param account The account to request the password for. |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
335 | * @param ok_cb The callback for the OK button. |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
336 | * @param cancel_cb The callback for the cancel button. |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
337 | * @param user_data User data to be passed into callbacks. |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
338 | */ |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
339 | 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
|
340 | 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
|
341 | |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
342 | /** |
|
7063
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
343 | * Requests information from the user to change the account's password. |
|
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
344 | * |
|
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
345 | * @param account The account to change the password on. |
|
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
346 | */ |
| 15884 | 347 | void purple_account_request_change_password(PurpleAccount *account); |
|
7063
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
348 | |
|
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
349 | /** |
|
7067
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
350 | * Requests information from the user to change the account's |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
351 | * user information. |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
352 | * |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
353 | * @param account The account to change the user information on. |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
354 | */ |
| 15884 | 355 | void purple_account_request_change_user_info(PurpleAccount *account); |
|
7067
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
356 | |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
357 | /** |
| 5563 | 358 | * Sets the account's username. |
| 359 | * | |
| 360 | * @param account The account. | |
| 361 | * @param username The username. | |
| 362 | */ | |
| 15884 | 363 | void purple_account_set_username(PurpleAccount *account, const char *username); |
| 5563 | 364 | |
| 365 | /** | |
| 366 | * Sets the account's password. | |
| 367 | * | |
|
34044
0a176fe8b867
Clean up comments.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34029
diff
changeset
|
368 | * The password in the keyring might not be immediately updated, but the cached |
|
34013
988e67e95a6a
Cleaned up documentation and macros around deprecated password access.
Vivien Bernet-Rollande <scrouaf@soc.pidgin.im>
parents:
34007
diff
changeset
|
369 | * version will be, and it is therefore safe to read the password back before |
|
34044
0a176fe8b867
Clean up comments.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34029
diff
changeset
|
370 | * the callback has been triggered. One can also set a NULL callback if |
|
0a176fe8b867
Clean up comments.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34029
diff
changeset
|
371 | * notification of saving to the keyring is not required. |
|
34013
988e67e95a6a
Cleaned up documentation and macros around deprecated password access.
Vivien Bernet-Rollande <scrouaf@soc.pidgin.im>
parents:
34007
diff
changeset
|
372 | * |
| 5563 | 373 | * @param account The account. |
| 374 | * @param password The password. | |
|
34028
a3050b6df38e
Remove deprecated API since we're targeting 3.0.0 here. Don't mind the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34023
diff
changeset
|
375 | * @param cb A callback for once the password is saved. |
|
a3050b6df38e
Remove deprecated API since we're targeting 3.0.0 here. Don't mind the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34023
diff
changeset
|
376 | * @param data A pointer to be passed to the callback. |
| 5563 | 377 | */ |
|
34145
fa72f1e5cd77
Some polishing on files modified on this branch (mostly formatting)
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
34111
diff
changeset
|
378 | void purple_account_set_password(PurpleAccount *account, const gchar *password, |
|
fa72f1e5cd77
Some polishing on files modified on this branch (mostly formatting)
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
34111
diff
changeset
|
379 | PurpleKeyringSaveCallback cb, gpointer data); |
| 5563 | 380 | |
| 381 | /** | |
| 382 | * Sets the account's alias. | |
| 383 | * | |
| 384 | * @param account The account. | |
| 385 | * @param alias The alias. | |
| 386 | */ | |
| 15884 | 387 | void purple_account_set_alias(PurpleAccount *account, const char *alias); |
| 5563 | 388 | |
| 389 | /** | |
| 390 | * Sets the account's user information | |
| 391 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6621
diff
changeset
|
392 | * @param account The account. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6621
diff
changeset
|
393 | * @param user_info The user information. |
| 5563 | 394 | */ |
| 15884 | 395 | void purple_account_set_user_info(PurpleAccount *account, const char *user_info); |
| 5563 | 396 | |
| 397 | /** | |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
398 | * Sets the account's buddy icon path. |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
399 | * |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
400 | * @param account The account. |
|
15997
ff97c5f69196
A little doxygen love and some tiny gaim->purpleisms
Mark Doliner <markdoliner@pidgin.im>
parents:
15884
diff
changeset
|
401 | * @param path The buddy icon non-cached path. |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
402 | */ |
| 15884 | 403 | 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
|
404 | |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
405 | /** |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
406 | * Sets the account's protocol ID. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
407 | * |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
408 | * @param account The account. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
409 | * @param protocol_id The protocol ID. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
410 | */ |
| 15884 | 411 | void purple_account_set_protocol_id(PurpleAccount *account, |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
412 | const char *protocol_id); |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
413 | |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
414 | /** |
| 5563 | 415 | * Sets the account's connection. |
| 416 | * | |
| 417 | * @param account The account. | |
| 418 | * @param gc The connection. | |
| 419 | */ | |
| 15884 | 420 | void purple_account_set_connection(PurpleAccount *account, PurpleConnection *gc); |
| 5563 | 421 | |
| 422 | /** | |
| 423 | * Sets whether or not this account should save its password. | |
| 424 | * | |
| 425 | * @param account The account. | |
| 426 | * @param value @c TRUE if it should remember the password. | |
| 427 | */ | |
| 15884 | 428 | void purple_account_set_remember_password(PurpleAccount *account, gboolean value); |
| 5563 | 429 | |
| 430 | /** | |
|
5565
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
431 | * Sets whether or not this account should check for mail. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
432 | * |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
433 | * @param account The account. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
434 | * @param value @c TRUE if it should check for mail. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
435 | */ |
| 15884 | 436 | void purple_account_set_check_mail(PurpleAccount *account, gboolean value); |
|
5565
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
437 | |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
438 | /** |
| 10400 | 439 | * Sets whether or not this account is enabled for the specified |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
440 | * UI. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
441 | * |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
442 | * @param account The account. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
443 | * @param ui The UI. |
| 10400 | 444 | * @param value @c TRUE if it is enabled. |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
445 | */ |
| 15884 | 446 | void purple_account_set_enabled(PurpleAccount *account, const char *ui, |
| 10400 | 447 | gboolean value); |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
448 | |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
449 | /** |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
450 | * Sets the account's proxy information. |
|
6583
198cb8cc465c
[gaim-migrate @ 7105]
Christian Hammond <chipx86@chipx86.com>
parents:
6581
diff
changeset
|
451 | * |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
452 | * @param account The account. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
453 | * @param info The proxy information. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
454 | */ |
| 15884 | 455 | void purple_account_set_proxy_info(PurpleAccount *account, PurpleProxyInfo *info); |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
456 | |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
457 | /** |
|
30021
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
458 | * Sets the account's privacy type. |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
459 | * |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
460 | * @param account The account. |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
461 | * @param privacy_type The privacy type. |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
462 | */ |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
463 | void purple_account_set_privacy_type(PurpleAccount *account, PurplePrivacyType privacy_type); |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
464 | |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
465 | /** |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
466 | * Sets the account's status types. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
467 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
468 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
469 | * @param status_types The list of status types. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
470 | */ |
| 15884 | 471 | 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
|
472 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
473 | /** |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
474 | * Variadic version of purple_account_set_status_list(); the variadic list |
|
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
475 | * replaces @a attrs, and should be <tt>NULL</tt>-terminated. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
476 | * |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
477 | * @copydoc purple_account_set_status_list() |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
478 | */ |
| 15884 | 479 | 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
|
480 | gboolean active, ...) G_GNUC_NULL_TERMINATED; |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
481 | |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
482 | |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
483 | /** |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
484 | * Activates or deactivates a status. All changes to the statuses of |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
485 | * an account go through this function or purple_account_set_status(). |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
486 | * |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
487 | * You can only deactivate an exclusive status by activating another exclusive |
|
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
488 | * status. So, if @a status_id is an exclusive status and @a active is @c |
|
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
489 | * FALSE, this function does nothing. |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
490 | * |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
491 | * @param account The account. |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
492 | * @param status_id The ID of the status. |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
493 | * @param active Whether @a status_id is to be activated (<tt>TRUE</tt>) or |
|
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
494 | * deactivated (<tt>FALSE</tt>). |
|
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
495 | * @param attrs A list of <tt>const char *</tt> attribute names followed by |
|
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
496 | * <tt>const char *</tt> attribute values for the status. |
|
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
497 | * (For example, one pair might be <tt>"message"</tt> followed |
|
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
498 | * by <tt>"hello, talk to me!"</tt>.) |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
499 | */ |
| 15884 | 500 | void purple_account_set_status_list(PurpleAccount *account, |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
501 | const char *status_id, gboolean active, GList *attrs); |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
502 | |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
503 | /** |
|
30138
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
504 | * Set a server-side (public) alias for this account. The account |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
505 | * must already be connected. |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
506 | * |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
507 | * Currently, the public alias is not stored locally, although this |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
508 | * may change in a later version. |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
509 | * |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
510 | * @param account The account |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
511 | * @param alias The new public alias for this account or NULL |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
512 | * to unset the alias/nickname (or return it to |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
513 | * a protocol-specific "default", like the username) |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
514 | * @param success_cb A callback which will be called if the alias |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
515 | * is successfully set on the server (or NULL). |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
516 | * @param failure_cb A callback which will be called if the alias |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
517 | * is not successfully set on the server (or NULL). |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
518 | */ |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
519 | void purple_account_set_public_alias(PurpleAccount *account, |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
520 | const char *alias, PurpleSetPublicAliasSuccessCallback success_cb, |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
521 | PurpleSetPublicAliasFailureCallback failure_cb); |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
522 | |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
523 | /** |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
524 | * Fetch the server-side (public) alias for this account. The account |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
525 | * must already be connected. |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
526 | * |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
527 | * @param account The account |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
528 | * @param success_cb A callback which will be called with the alias |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
529 | * @param failure_cb A callback which will be called if the prpl is |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
530 | * unable to retrieve the server-side alias. |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
531 | */ |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
532 | void purple_account_get_public_alias(PurpleAccount *account, |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
533 | PurpleGetPublicAliasSuccessCallback success_cb, |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
534 | PurpleGetPublicAliasFailureCallback failure_cb); |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
535 | |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
536 | /** |
|
31566
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
537 | * Return whether silence suppression is used during voice call. |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
538 | * |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
539 | * @param account The account. |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
540 | * |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
541 | * @return @c TRUE if suppression is used, or @c FALSE if not. |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
542 | */ |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
543 | gboolean purple_account_get_silence_suppression(const PurpleAccount *account); |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
544 | |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
545 | /** |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
546 | * Sets whether silence suppression is used during voice call. |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
547 | * |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
548 | * @param account The account. |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
549 | * @param value @c TRUE if suppression should be used. |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
550 | */ |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
551 | void purple_account_set_silence_suppression(PurpleAccount *account, |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
552 | gboolean value); |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
553 | |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
554 | /** |
|
5694
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
555 | * Clears all protocol-specific settings on an account. |
|
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
556 | * |
|
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
557 | * @param account The account. |
|
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
558 | */ |
| 15884 | 559 | void purple_account_clear_settings(PurpleAccount *account); |
|
5694
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
560 | |
|
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
561 | /** |
|
27562
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
562 | * Removes an account-specific setting by name. |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
563 | * |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
564 | * @param account The account. |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
565 | * @param setting The setting to remove. |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
566 | */ |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
567 | void purple_account_remove_setting(PurpleAccount *account, const char *setting); |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
568 | |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
569 | /** |
| 5563 | 570 | * Sets a protocol-specific integer setting for an account. |
| 571 | * | |
| 572 | * @param account The account. | |
| 573 | * @param name The name of the setting. | |
| 574 | * @param value The setting's value. | |
| 575 | */ | |
| 15884 | 576 | void purple_account_set_int(PurpleAccount *account, const char *name, int value); |
| 5563 | 577 | |
| 578 | /** | |
| 579 | * Sets a protocol-specific string setting for an account. | |
| 580 | * | |
| 581 | * @param account The account. | |
| 582 | * @param name The name of the setting. | |
| 583 | * @param value The setting's value. | |
| 584 | */ | |
| 15884 | 585 | void purple_account_set_string(PurpleAccount *account, const char *name, |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6621
diff
changeset
|
586 | const char *value); |
| 5563 | 587 | |
| 588 | /** | |
| 589 | * Sets a protocol-specific boolean setting for an account. | |
| 590 | * | |
| 591 | * @param account The account. | |
| 592 | * @param name The name of the setting. | |
| 593 | * @param value The setting's value. | |
| 594 | */ | |
| 15884 | 595 | void purple_account_set_bool(PurpleAccount *account, const char *name, |
| 5563 | 596 | gboolean value); |
| 597 | ||
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
598 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
599 | * Sets a UI-specific integer setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
600 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
601 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
602 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
603 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
604 | * @param value The setting's value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
605 | */ |
| 15884 | 606 | void purple_account_set_ui_int(PurpleAccount *account, const char *ui, |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
607 | const char *name, int value); |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
608 | |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
609 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
610 | * Sets a UI-specific string setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
611 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
612 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
613 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
614 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
615 | * @param value The setting's value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
616 | */ |
| 15884 | 617 | void purple_account_set_ui_string(PurpleAccount *account, const char *ui, |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6621
diff
changeset
|
618 | const char *name, const char *value); |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
619 | |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
620 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
621 | * Sets a UI-specific boolean setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
622 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
623 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
624 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
625 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
626 | * @param value The setting's value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
627 | */ |
| 15884 | 628 | void purple_account_set_ui_bool(PurpleAccount *account, const char *ui, |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
629 | const char *name, gboolean value); |
| 5563 | 630 | |
| 631 | /** | |
|
32630
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
632 | * Returns the UI data associated with this account. |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
633 | * |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
634 | * @param account The account. |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
635 | * |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
636 | * @return The UI data associated with this object. This is a |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
637 | * convenience field provided to the UIs--it is not |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
638 | * used by the libuprple core. |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
639 | */ |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
640 | gpointer purple_account_get_ui_data(const PurpleAccount *account); |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
641 | |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
642 | /** |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
643 | * Set the UI data associated with this account. |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
644 | * |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
645 | * @param account The account. |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
646 | * @param ui_data A pointer to associate with this object. |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
647 | */ |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
648 | void purple_account_set_ui_data(PurpleAccount *account, gpointer ui_data); |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
649 | |
|
461f208c04c0
Add accessors for _PurpleAccount.ui_data
Kevin Stange <kstange@pidgin.im>
parents:
32629
diff
changeset
|
650 | /** |
| 5563 | 651 | * Returns whether or not the account is connected. |
| 652 | * | |
| 653 | * @param account The account. | |
| 654 | * | |
| 655 | * @return @c TRUE if connected, or @c FALSE otherwise. | |
| 656 | */ | |
| 15884 | 657 | gboolean purple_account_is_connected(const PurpleAccount *account); |
| 5563 | 658 | |
| 659 | /** | |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
660 | * Returns whether or not the account is connecting. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
661 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
662 | * @param account The account. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
663 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
664 | * @return @c TRUE if connecting, or @c FALSE otherwise. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
665 | */ |
| 15884 | 666 | gboolean purple_account_is_connecting(const PurpleAccount *account); |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
667 | |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
668 | /** |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
669 | * Returns whether or not the account is disconnected. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
670 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
671 | * @param account The account. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
672 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
673 | * @return @c TRUE if disconnected, or @c FALSE otherwise. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
674 | */ |
| 15884 | 675 | gboolean purple_account_is_disconnected(const PurpleAccount *account); |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
676 | |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
677 | /** |
| 5563 | 678 | * Returns the account's username. |
| 679 | * | |
| 680 | * @param account The account. | |
| 681 | * | |
| 682 | * @return The username. | |
| 683 | */ | |
| 15884 | 684 | const char *purple_account_get_username(const PurpleAccount *account); |
| 5563 | 685 | |
| 686 | /** | |
|
34044
0a176fe8b867
Clean up comments.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34029
diff
changeset
|
687 | * Reads the password for the account. |
|
0a176fe8b867
Clean up comments.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34029
diff
changeset
|
688 | * |
|
0a176fe8b867
Clean up comments.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34029
diff
changeset
|
689 | * This is an asynchronous call, that will return the password in a callback |
|
0a176fe8b867
Clean up comments.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34029
diff
changeset
|
690 | * once it has been read from the keyring. If the account is connected, and you |
|
0a176fe8b867
Clean up comments.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34029
diff
changeset
|
691 | * require the password immediately, then consider using @ref |
|
0a176fe8b867
Clean up comments.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34029
diff
changeset
|
692 | * purple_connection_get_password instead. |
| 5563 | 693 | * |
| 694 | * @param account The account. | |
|
34028
a3050b6df38e
Remove deprecated API since we're targeting 3.0.0 here. Don't mind the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34023
diff
changeset
|
695 | * @param cb The callback to give the password. |
|
a3050b6df38e
Remove deprecated API since we're targeting 3.0.0 here. Don't mind the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34023
diff
changeset
|
696 | * @param data A pointer passed to the callback. |
| 5563 | 697 | */ |
|
34028
a3050b6df38e
Remove deprecated API since we're targeting 3.0.0 here. Don't mind the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34023
diff
changeset
|
698 | void purple_account_get_password(PurpleAccount *account, |
|
34145
fa72f1e5cd77
Some polishing on files modified on this branch (mostly formatting)
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
34111
diff
changeset
|
699 | PurpleKeyringReadCallback cb, gpointer data); |
| 5563 | 700 | |
| 701 | /** | |
| 702 | * Returns the account's alias. | |
| 703 | * | |
| 704 | * @param account The account. | |
| 705 | * | |
| 706 | * @return The alias. | |
| 707 | */ | |
| 15884 | 708 | const char *purple_account_get_alias(const PurpleAccount *account); |
| 5563 | 709 | |
| 710 | /** | |
| 711 | * Returns the account's user information. | |
| 712 | * | |
| 713 | * @param account The account. | |
| 714 | * | |
| 715 | * @return The user information. | |
| 716 | */ | |
| 15884 | 717 | const char *purple_account_get_user_info(const PurpleAccount *account); |
| 5563 | 718 | |
| 719 | /** | |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
720 | * Gets the account's buddy icon path. |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
721 | * |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
722 | * @param account The account. |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
723 | * |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
724 | * @return The buddy icon's non-cached path. |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
725 | */ |
| 15884 | 726 | const char *purple_account_get_buddy_icon_path(const PurpleAccount *account); |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
727 | |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
728 | /** |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
729 | * Returns the account's protocol ID. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
730 | * |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
731 | * @param account The account. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
732 | * |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
733 | * @return The protocol ID. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
734 | */ |
| 15884 | 735 | const char *purple_account_get_protocol_id(const PurpleAccount *account); |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
736 | |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
737 | /** |
|
9699
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
738 | * Returns the account's protocol name. |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
739 | * |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
740 | * @param account The account. |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
741 | * |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
742 | * @return The protocol name. |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
743 | */ |
| 15884 | 744 | const char *purple_account_get_protocol_name(const PurpleAccount *account); |
|
9699
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
745 | |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
746 | /** |
| 5563 | 747 | * Returns the account's connection. |
| 748 | * | |
| 749 | * @param account The account. | |
| 750 | * | |
| 751 | * @return The connection. | |
| 752 | */ | |
| 15884 | 753 | PurpleConnection *purple_account_get_connection(const PurpleAccount *account); |
| 5563 | 754 | |
| 755 | /** | |
|
29515
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
756 | * Returns a name for this account appropriate for display to the user. In |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
757 | * order of preference: the account's alias; the contact or buddy alias (if |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
758 | * the account exists on its own buddy list); the connection's display name; |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
759 | * the account's username. |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
760 | * |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
761 | * @param account The account. |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
762 | * |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
763 | * @return The name to display. |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
764 | */ |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
765 | const gchar *purple_account_get_name_for_display(const PurpleAccount *account); |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
766 | |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
767 | /** |
| 5563 | 768 | * Returns whether or not this account should save its password. |
| 769 | * | |
| 770 | * @param account The account. | |
| 771 | * | |
| 772 | * @return @c TRUE if it should remember the password. | |
| 773 | */ | |
| 15884 | 774 | gboolean purple_account_get_remember_password(const PurpleAccount *account); |
| 5563 | 775 | |
| 776 | /** | |
|
5565
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
777 | * Returns whether or not this account should check for mail. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
778 | * |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
779 | * @param account The account. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
780 | * |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
781 | * @return @c TRUE if it should check for mail. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
782 | */ |
| 15884 | 783 | gboolean purple_account_get_check_mail(const PurpleAccount *account); |
|
5565
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
784 | |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
785 | /** |
| 10400 | 786 | * Returns whether or not this account is enabled for the |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
787 | * specified UI. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
788 | * |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
789 | * @param account The account. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
790 | * @param ui The UI. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
791 | * |
| 10400 | 792 | * @return @c TRUE if it enabled on this UI. |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
793 | */ |
| 15884 | 794 | gboolean purple_account_get_enabled(const PurpleAccount *account, |
| 10400 | 795 | const char *ui); |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
796 | |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
797 | /** |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
798 | * Returns the account's proxy information. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
799 | * |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
800 | * @param account The account. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
801 | * |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
802 | * @return The proxy information. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
803 | */ |
| 15884 | 804 | PurpleProxyInfo *purple_account_get_proxy_info(const PurpleAccount *account); |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
805 | |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
806 | /** |
|
30021
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
807 | * Returns the account's privacy type. |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
808 | * |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
809 | * @param account The account. |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
810 | * |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
811 | * @return The privacy type. |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
812 | */ |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
813 | PurplePrivacyType purple_account_get_privacy_type(const PurpleAccount *account); |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
814 | |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
815 | /** |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
816 | * Returns the active status for this account. This looks through |
| 15884 | 817 | * the PurplePresence associated with this account and returns the |
| 818 | * PurpleStatus that has its active flag set to "TRUE." There can be | |
| 819 | * only one active PurpleStatus in a PurplePresence. | |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
820 | * |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
821 | * @param account The account. |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
822 | * |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
823 | * @return The active status. |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
824 | */ |
| 15884 | 825 | PurpleStatus *purple_account_get_active_status(const PurpleAccount *account); |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
826 | |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
827 | /** |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
828 | * Returns the account status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
829 | * |
| 15884 | 830 | * Note that this works differently than purple_buddy_get_status() in that |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
831 | * it will only return NULL if the status was not registered. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
832 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
833 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
834 | * @param status_id The status ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
835 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
836 | * @return The status, or NULL if it was never registered. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
837 | */ |
| 15884 | 838 | PurpleStatus *purple_account_get_status(const PurpleAccount *account, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
839 | const char *status_id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
840 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
841 | /** |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
842 | * Returns the account status type with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
843 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
844 | * @param account The account. |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
845 | * @param id The ID of the status type to find. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
846 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
847 | * @return The status type if found, or NULL. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
848 | */ |
| 15884 | 849 | PurpleStatusType *purple_account_get_status_type(const PurpleAccount *account, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
850 | const char *id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
851 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
852 | /** |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
853 | * Returns the account status type with the specified primitive. |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
854 | * Note: It is possible for an account to have more than one |
| 15884 | 855 | * PurpleStatusType with the same primitive. In this case, the |
| 856 | * first PurpleStatusType is returned. | |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
857 | * |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
858 | * @param account The account. |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
859 | * @param primitive The type of the status type to find. |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
860 | * |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
861 | * @return The status if found, or NULL. |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
862 | */ |
| 15884 | 863 | PurpleStatusType *purple_account_get_status_type_with_primitive( |
| 864 | const PurpleAccount *account, | |
| 865 | PurpleStatusPrimitive primitive); | |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
866 | |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
867 | /** |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
868 | * Returns the account's presence. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
869 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
870 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
871 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
872 | * @return The account's presence. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
873 | */ |
| 15884 | 874 | PurplePresence *purple_account_get_presence(const PurpleAccount *account); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
875 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
876 | /** |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
877 | * Returns whether or not an account status is active. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
878 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
879 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
880 | * @param status_id The status ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
881 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
882 | * @return TRUE if active, or FALSE if not. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
883 | */ |
| 15884 | 884 | gboolean purple_account_is_status_active(const PurpleAccount *account, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
885 | const char *status_id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
886 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
887 | /** |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
888 | * Returns the account's status types. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
889 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
890 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
891 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
892 | * @constreturn The account's status types. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
893 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
894 | GList *purple_account_get_status_types(const PurpleAccount *account); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
895 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
896 | /** |
| 5563 | 897 | * Returns a protocol-specific integer setting for an account. |
| 898 | * | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
899 | * @param account The account. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
900 | * @param name The name of the setting. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
901 | * @param default_value The default value. |
| 5563 | 902 | * |
| 903 | * @return The value. | |
| 904 | */ | |
| 15884 | 905 | int purple_account_get_int(const PurpleAccount *account, const char *name, |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
906 | int default_value); |
| 5563 | 907 | |
| 908 | /** | |
| 909 | * Returns a protocol-specific string setting for an account. | |
| 910 | * | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
911 | * @param account The account. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
912 | * @param name The name of the setting. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
913 | * @param default_value The default value. |
| 5563 | 914 | * |
| 915 | * @return The value. | |
| 916 | */ | |
| 15884 | 917 | const char *purple_account_get_string(const PurpleAccount *account, |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
918 | const char *name, |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
919 | const char *default_value); |
| 5563 | 920 | |
| 921 | /** | |
| 922 | * Returns a protocol-specific boolean setting for an account. | |
| 923 | * | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
924 | * @param account The account. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
925 | * @param name The name of the setting. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
926 | * @param default_value The default value. |
| 5563 | 927 | * |
| 928 | * @return The value. | |
| 929 | */ | |
| 15884 | 930 | gboolean purple_account_get_bool(const PurpleAccount *account, const char *name, |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
931 | gboolean default_value); |
| 5563 | 932 | |
| 933 | /** | |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
934 | * Returns a UI-specific integer setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
935 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
936 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
937 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
938 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
939 | * @param default_value The default value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
940 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
941 | * @return The value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
942 | */ |
| 15884 | 943 | int purple_account_get_ui_int(const PurpleAccount *account, const char *ui, |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
944 | const char *name, int default_value); |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
945 | |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
946 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
947 | * Returns a UI-specific string setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
948 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
949 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
950 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
951 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
952 | * @param default_value The default value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
953 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
954 | * @return The value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
955 | */ |
| 15884 | 956 | const char *purple_account_get_ui_string(const PurpleAccount *account, |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
957 | const char *ui, const char *name, |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
958 | const char *default_value); |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
959 | |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
960 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
961 | * Returns a UI-specific boolean setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
962 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
963 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
964 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
965 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
966 | * @param default_value The default value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
967 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
968 | * @return The value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
969 | */ |
| 15884 | 970 | gboolean purple_account_get_ui_bool(const PurpleAccount *account, const char *ui, |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
971 | const char *name, gboolean default_value); |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
972 | |
| 8573 | 973 | |
| 974 | /** | |
| 975 | * Returns the system log for an account. | |
| 976 | * | |
| 9000 | 977 | * @param account The account. |
|
13508
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
978 | * @param create Should it be created if it doesn't exist? |
| 8573 | 979 | * |
| 980 | * @return The log. | |
|
13508
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
981 | * |
|
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
982 | * @note Callers should almost always pass @c FALSE for @a create. |
|
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
983 | * Passing @c TRUE could result in an existing log being reopened, |
|
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
984 | * if the log has already been closed, which not all loggers deal |
|
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
985 | * with appropriately. |
| 8573 | 986 | */ |
| 15884 | 987 | PurpleLog *purple_account_get_log(PurpleAccount *account, gboolean create); |
| 8573 | 988 | |
| 989 | /** | |
| 990 | * Frees the system log of an account | |
| 991 | * | |
| 9000 | 992 | * @param account The account. |
| 8573 | 993 | */ |
| 15884 | 994 | void purple_account_destroy_log(PurpleAccount *account); |
| 8573 | 995 | |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
996 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
997 | * Adds a buddy to the server-side buddy list for the specified account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
998 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
999 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1000 | * @param buddy The buddy to add. |
|
32315
2550a39e0285
Rename the _with_invite functions to their counterparts.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31594
diff
changeset
|
1001 | * @param message The invite message. This may be ignored by a prpl. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1002 | */ |
|
32315
2550a39e0285
Rename the _with_invite functions to their counterparts.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31594
diff
changeset
|
1003 | 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
|
1004 | |
|
ec0856af6477
Add new functions for adding buddies with an invite message. If the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31566
diff
changeset
|
1005 | /** |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1006 | * Adds a list of buddies to the server-side buddy list. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1007 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1008 | * @param account The account. |
| 15884 | 1009 | * @param buddies The list of PurpleBlistNodes representing the buddies to add. |
|
32315
2550a39e0285
Rename the _with_invite functions to their counterparts.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31594
diff
changeset
|
1010 | * @param message The invite message. This may be ignored by a prpl. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1011 | */ |
|
32315
2550a39e0285
Rename the _with_invite functions to their counterparts.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31594
diff
changeset
|
1012 | 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
|
1013 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1014 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1015 | * Removes a buddy from the server-side buddy list. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1016 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1017 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1018 | * @param buddy The buddy to remove. |
|
11782
fb3bbb36dc25
[gaim-migrate @ 14073]
Peter Lawler <pidgin@bleeter.id.au>
parents:
11739
diff
changeset
|
1019 | * @param group The group to remove the buddy from. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1020 | */ |
| 15884 | 1021 | void purple_account_remove_buddy(PurpleAccount *account, PurpleBuddy *buddy, |
| 1022 | PurpleGroup *group); | |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1023 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1024 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1025 | * Removes a list of buddies from the server-side buddy list. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1026 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1027 | * @note The lists buddies and groups are parallel lists. Be sure that node n of |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1028 | * groups matches node n of buddies. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1029 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1030 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1031 | * @param buddies The list of buddies to remove. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1032 | * @param groups The list of groups to remove buddies from. Each node of this |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1033 | * list should match the corresponding node of buddies. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1034 | */ |
| 15884 | 1035 | void purple_account_remove_buddies(PurpleAccount *account, GList *buddies, |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1036 | GList *groups); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1037 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1038 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1039 | * Removes a group from the server-side buddy list. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1040 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1041 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1042 | * @param group The group to remove. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1043 | */ |
| 15884 | 1044 | void purple_account_remove_group(PurpleAccount *account, PurpleGroup *group); |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1045 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1046 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1047 | * Changes the password on the specified account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1048 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1049 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1050 | * @param orig_pw The old password. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1051 | * @param new_pw The new password. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1052 | */ |
| 15884 | 1053 | 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
|
1054 | const char *new_pw); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1055 | |
|
12645
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1056 | /** |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1057 | * Whether the account supports sending offline messages to buddy. |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1058 | * |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1059 | * @param account The account |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1060 | * @param buddy The buddy |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1061 | */ |
| 15884 | 1062 | 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
|
1063 | |
|
21287
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
1064 | /** |
|
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
1065 | * Get the error that caused the account to be disconnected, or @c NULL if the |
|
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
1066 | * 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
|
1067 | * |
|
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
1068 | * @param account The account whose error should be retrieved. |
|
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
1069 | * @constreturn The type of error and a human-readable description of the |
|
21300
1c23e08cb824
Document exactly how long the PurpleConnectionErrorInfo pointers given out by
Will Thompson <resiak@pidgin.im>
parents:
21298
diff
changeset
|
1070 | * current error, or @c NULL if there is no current error. This |
|
1c23e08cb824
Document exactly how long the PurpleConnectionErrorInfo pointers given out by
Will Thompson <resiak@pidgin.im>
parents:
21298
diff
changeset
|
1071 | * pointer is guaranteed to remain valid until the @ref |
|
1c23e08cb824
Document exactly how long the PurpleConnectionErrorInfo pointers given out by
Will Thompson <resiak@pidgin.im>
parents:
21298
diff
changeset
|
1072 | * account-error-changed signal is emitted for @a 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
|
1073 | */ |
|
21298
d0d9cfaf3fe7
Mark pointed out that PurpleConnectionErrorPair is not a very good name for the
Will Thompson <resiak@pidgin.im>
parents:
21295
diff
changeset
|
1074 | const PurpleConnectionErrorInfo *purple_account_get_current_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
|
1075 | |
|
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
|
1076 | /** |
|
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
1077 | * Clear an account's current error state, resetting it to @c NULL. |
|
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
1078 | * |
|
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
1079 | * @param account The account whose error state should be cleared. |
|
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
1080 | */ |
|
21315
031ad548b3c8
purple_account_clear_current_error is public API, so should not be static.
Will Thompson <resiak@pidgin.im>
parents:
21311
diff
changeset
|
1081 | void purple_account_clear_current_error(PurpleAccount *account); |
|
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
|
1082 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1083 | /*@}*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1084 | |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1085 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1086 | /** @name Accounts API */ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1087 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1088 | /*@{*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1089 | |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
1090 | /** |
|
5710
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1091 | * Adds an account to the list of accounts. |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1092 | * |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1093 | * @param account The account. |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1094 | */ |
| 15884 | 1095 | void purple_accounts_add(PurpleAccount *account); |
|
5710
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1096 | |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1097 | /** |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1098 | * Removes an account from the list of accounts. |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1099 | * |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1100 | * @param account The account. |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1101 | */ |
| 15884 | 1102 | void purple_accounts_remove(PurpleAccount *account); |
|
5710
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1103 | |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1104 | /** |
|
6368
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1105 | * Deletes an account. |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1106 | * |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1107 | * This will remove any buddies from the buddy list that belong to this |
| 11732 | 1108 | * account, buddy pounces that belong to this account, and will also |
| 8235 | 1109 | * destroy @a account. |
|
6368
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1110 | * |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1111 | * @param account The account. |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1112 | */ |
| 15884 | 1113 | void purple_accounts_delete(PurpleAccount *account); |
|
6368
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1114 | |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1115 | /** |
|
5580
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1116 | * Reorders an account. |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1117 | * |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1118 | * @param account The account to reorder. |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1119 | * @param new_index The new index for the account. |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1120 | */ |
| 15884 | 1121 | void purple_accounts_reorder(PurpleAccount *account, gint new_index); |
|
5580
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1122 | |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1123 | /** |
| 5563 | 1124 | * Returns a list of all accounts. |
| 1125 | * | |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
1126 | * @constreturn A list of all accounts. |
| 5563 | 1127 | */ |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
1128 | GList *purple_accounts_get_all(void); |
| 5563 | 1129 | |
|
5874
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1130 | /** |
| 10400 | 1131 | * Returns a list of all enabled accounts |
| 1132 | * | |
| 11732 | 1133 | * @return A list of all enabled accounts. The list is owned |
| 1134 | * by the caller, and must be g_list_free()d to avoid | |
| 1135 | * leaking the nodes. | |
| 10400 | 1136 | */ |
| 15884 | 1137 | GList *purple_accounts_get_all_active(void); |
| 10400 | 1138 | |
| 1139 | /** | |
|
8073
bcd09dc33ad0
[gaim-migrate @ 8771]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
1140 | * Finds an account with the specified name and protocol id. |
|
5874
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1141 | * |
|
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1142 | * @param name The account username. |
|
8073
bcd09dc33ad0
[gaim-migrate @ 8771]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
1143 | * @param protocol The account protocol ID. |
|
5874
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1144 | * |
|
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1145 | * @return The account, if found, or @c FALSE otherwise. |
|
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1146 | */ |
| 15884 | 1147 | PurpleAccount *purple_accounts_find(const char *name, const char *protocol); |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
1148 | |
|
11348
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1149 | /** |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1150 | * This is called by the core after all subsystems and what |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1151 | * not have been initialized. It sets all enabled accounts |
|
12857
2e99b4a360fc
[gaim-migrate @ 15208]
Daniel Atallah <datallah@pidgin.im>
parents:
12645
diff
changeset
|
1152 | * to their startup status by signing them on, setting them |
|
11348
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1153 | * away, etc. |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1154 | * |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1155 | * You probably shouldn't call this unless you really know |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1156 | * what you're doing. |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1157 | */ |
| 15884 | 1158 | void purple_accounts_restore_current_statuses(void); |
|
11348
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1159 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1160 | /*@}*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1161 | |
|
7122
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1162 | |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1163 | /**************************************************************************/ |
|
7122
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1164 | /** @name UI Registration Functions */ |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1165 | /**************************************************************************/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1166 | /*@{*/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1167 | /** |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1168 | * Sets the UI operations structure to be used for accounts. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1169 | * |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1170 | * @param ops The UI operations structure. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1171 | */ |
| 15884 | 1172 | void purple_accounts_set_ui_ops(PurpleAccountUiOps *ops); |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1173 | |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1174 | /** |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1175 | * Returns the UI operations structure used for accounts. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1176 | * |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1177 | * @return The UI operations structure in use. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1178 | */ |
| 15884 | 1179 | PurpleAccountUiOps *purple_accounts_get_ui_ops(void); |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1180 | |
|
7122
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1181 | /*@}*/ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1182 | |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1183 | |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1184 | /**************************************************************************/ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1185 | /** @name Accounts Subsystem */ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1186 | /**************************************************************************/ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1187 | /*@{*/ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1188 | |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1189 | /** |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1190 | * Returns the accounts subsystem handle. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1191 | * |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1192 | * @return The accounts subsystem handle. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1193 | */ |
| 15884 | 1194 | void *purple_accounts_get_handle(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1195 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1196 | /** |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1197 | * Initializes the accounts subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1198 | */ |
| 15884 | 1199 | void purple_accounts_init(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1200 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1201 | /** |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1202 | * Uninitializes the accounts subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1203 | */ |
| 15884 | 1204 | void purple_accounts_uninit(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1205 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1206 | /*@}*/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1207 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32722
diff
changeset
|
1208 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1209 | |
| 15884 | 1210 | #endif /* _PURPLE_ACCOUNT_H_ */ |