Sat, 01 Oct 2011 21:54:15 +0000
The intention is to make PurpleAccount a private structure in account.c, so merge
PurpleAccountPrivate into PurpleAccount.
| 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); |
| 39 | typedef void (*PurpleAccountRequestAuthorizationCb)(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" |
| 5563 | 53 | |
|
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
|
54 | /** |
|
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 | * 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
|
56 | */ |
|
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 | 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
|
58 | { |
| 15884 | 59 | PURPLE_ACCOUNT_REQUEST_AUTHORIZATION = 0 /* Account authorization request */ |
| 60 | } 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
|
61 | |
|
31325
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
62 | /** |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
63 | * 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
|
64 | */ |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
65 | typedef enum |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
66 | { |
|
2bb18e0658e7
Patch from Stefan Ott to add the account-authorization-requested-with-message
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
30138
diff
changeset
|
67 | 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
|
68 | 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
|
69 | 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
|
70 | 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
|
71 | } PurpleAccountRequestResponse; |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
72 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
73 | /** 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
|
74 | * 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
|
75 | */ |
| 15884 | 76 | struct _PurpleAccountUiOps |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
77 | { |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
78 | /** 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
|
79 | * to their buddy list. |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
80 | */ |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
81 | void (*notify_added)(PurpleAccount *account, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
82 | const char *remote_user, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
83 | const char *id, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
84 | const char *alias, |
| 12285 | 85 | const char *message); |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
86 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
87 | /** This account's status changed. */ |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
88 | void (*status_changed)(PurpleAccount *account, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
89 | PurpleStatus *status); |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
90 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
91 | /** 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
|
92 | void (*request_add)(PurpleAccount *account, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
93 | const char *remote_user, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
94 | const char *id, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
95 | const char *alias, |
| 12285 | 96 | const char *message); |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
97 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
98 | /** 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
|
99 | * list. To authorize them to see this account's presence, call \a |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
100 | * authorize_cb (\a user_data); otherwise call \a deny_cb (\a user_data); |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
101 | * @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
|
102 | */ |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
103 | void *(*request_authorize)(PurpleAccount *account, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
104 | const char *remote_user, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
105 | const char *id, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
106 | const char *alias, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
107 | const char *message, |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
108 | 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
|
109 | 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
|
110 | PurpleAccountRequestAuthorizationCb deny_cb, |
|
19114
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
111 | void *user_data); |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
112 | |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
113 | /** 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
|
114 | * as returned by #request_authorize. |
|
5b707fe77bcb
Document PurpleAccountUiOps, and fix a documentation typo.
Will Thompson <resiak@pidgin.im>
parents:
18243
diff
changeset
|
115 | */ |
|
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
|
116 | 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
|
117 | |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16538
diff
changeset
|
118 | 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
|
119 | 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
|
120 | 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
|
121 | void (*_purple_reserved4)(void); |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
122 | }; |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
123 | |
|
22592
0c01dc1d3ddd
Make PurpleAccount's documentation actually show up; also, sprinkle some
Will Thompson <resiak@pidgin.im>
parents:
22246
diff
changeset
|
124 | /** Structure representing an account. |
|
0c01dc1d3ddd
Make PurpleAccount's documentation actually show up; also, sprinkle some
Will Thompson <resiak@pidgin.im>
parents:
22246
diff
changeset
|
125 | */ |
| 15884 | 126 | struct _PurpleAccount |
| 5563 | 127 | { |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
128 | char *username; /**< The username. */ |
|
14337
63870f0c0b01
[gaim-migrate @ 16960]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
129 | char *alias; /**< How you appear to yourself. */ |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
130 | char *password; /**< The account password. */ |
|
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
131 | char *user_info; /**< User information. */ |
| 5563 | 132 | |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
133 | char *buddy_icon_path; /**< The buddy icon's non-cached path. */ |
| 5563 | 134 | |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
135 | gboolean remember_pass; /**< Remember the password. */ |
| 5563 | 136 | |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
137 | char *protocol_id; /**< The ID of the protocol. */ |
| 5563 | 138 | |
| 15884 | 139 | PurpleConnection *gc; /**< The connection handle. */ |
| 10384 | 140 | gboolean disconnecting; /**< The account is currently disconnecting */ |
| 5563 | 141 | |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
142 | GHashTable *settings; /**< Protocol-specific settings. */ |
|
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
143 | GHashTable *ui_settings; /**< UI-specific settings. */ |
| 5563 | 144 | |
| 15884 | 145 | PurpleProxyInfo *proxy_info; /**< Proxy information. This will be set */ |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
146 | /* to NULL when the account inherits */ |
|
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
147 | /* proxy settings from global prefs. */ |
| 5563 | 148 | |
|
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
|
149 | /* |
|
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
|
150 | * 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
|
151 | * 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
|
152 | * 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
|
153 | * 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
|
154 | * 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
|
155 | * is permitted or denied. We should do this for 3.0.0. |
| 31418 | 156 | * 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
|
157 | */ |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
158 | GSList *permit; /**< Permit list. */ |
|
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
159 | 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
|
160 | PurplePrivacyType perm_deny; /**< The permit/deny setting. */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
161 | |
|
10812
25c595cbffe8
[gaim-migrate @ 12465]
Richard Laager <rlaager@pidgin.im>
parents:
10758
diff
changeset
|
162 | GList *status_types; /**< Status types. */ |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
163 | |
| 15884 | 164 | PurplePresence *presence; /**< Presence. */ |
| 165 | PurpleLog *system_log; /**< The system log */ | |
|
9304
5077b31f5526
[gaim-migrate @ 10112]
Christian Hammond <chipx86@chipx86.com>
parents:
9187
diff
changeset
|
166 | |
|
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
|
167 | 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
|
168 | 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
|
169 | |
|
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
|
170 | PurpleConnectionErrorInfo *current_error; /**< Errors */ |
| 5563 | 171 | }; |
| 172 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
173 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
174 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
175 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
176 | |
|
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 | /** @name Account API */ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
179 | /**************************************************************************/ |
|
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 | |
| 5563 | 182 | /** |
| 183 | * Creates a new account. | |
| 184 | * | |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
185 | * @param username The username. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
186 | * @param protocol_id The protocol ID. |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10021
diff
changeset
|
187 | * |
|
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10021
diff
changeset
|
188 | * @return The new account. |
| 5563 | 189 | */ |
| 15884 | 190 | PurpleAccount *purple_account_new(const char *username, const char *protocol_id); |
| 5563 | 191 | |
| 192 | /** | |
| 193 | * Destroys an account. | |
| 194 | * | |
| 195 | * @param account The account to destroy. | |
| 196 | */ | |
| 15884 | 197 | void purple_account_destroy(PurpleAccount *account); |
| 5563 | 198 | |
| 199 | /** | |
| 200 | * Connects to an account. | |
| 201 | * | |
| 202 | * @param account The account to connect to. | |
| 203 | */ | |
| 15884 | 204 | void purple_account_connect(PurpleAccount *account); |
| 5563 | 205 | |
| 206 | /** | |
|
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
|
207 | * 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
|
208 | * |
|
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 | * @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
|
210 | * @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
|
211 | * @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
|
212 | */ |
|
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 | 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
|
214 | |
|
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 | /** |
| 6581 | 216 | * Registers an account. |
| 217 | * | |
| 218 | * @param account The account to register. | |
| 219 | */ | |
| 15884 | 220 | void purple_account_register(PurpleAccount *account); |
| 6581 | 221 | |
| 222 | /** | |
|
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
|
223 | * 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
|
224 | * |
|
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
|
225 | * @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
|
226 | * @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
|
227 | * @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
|
228 | */ |
|
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
|
229 | 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
|
230 | |
|
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
|
231 | /** |
| 5563 | 232 | * Disconnects from an account. |
| 233 | * | |
| 234 | * @param account The account to disconnect from. | |
| 235 | */ | |
| 15884 | 236 | void purple_account_disconnect(PurpleAccount *account); |
| 5563 | 237 | |
| 238 | /** | |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
239 | * 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
|
240 | * buddy list. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
241 | * |
| 12285 | 242 | * This will present a dialog informing the user that he was added to the |
| 243 | * remote user's buddy list. | |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
244 | * |
| 12286 | 245 | * @param account The account that was added. |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
246 | * @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
|
247 | * @param id The optional ID of the local account. Rarely used. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
248 | * @param alias The optional alias of the user. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
249 | * @param message The optional message sent from the user adding you. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
250 | */ |
| 15884 | 251 | void purple_account_notify_added(PurpleAccount *account, const char *remote_user, |
| 12285 | 252 | const char *id, const char *alias, |
| 253 | const char *message); | |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
254 | |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
255 | /** |
| 12285 | 256 | * Notifies the user that the account was addded to a remote user's buddy |
| 257 | * list and asks ther user if they want to add the remote user to their buddy | |
| 258 | * list. | |
| 259 | * | |
| 260 | * This will present a dialog informing the local user that the remote user | |
| 261 | * added them to the remote user's buddy list and will ask if they want to add | |
| 262 | * the remote user to the buddy list. | |
| 263 | * | |
| 264 | * @param account The account that was added. | |
| 265 | * @param remote_user The name of the user that added this account. | |
| 266 | * @param id The optional ID of the local account. Rarely used. | |
| 267 | * @param alias The optional alias of the user. | |
| 268 | * @param message The optional message sent from the user adding you. | |
| 269 | */ | |
| 15884 | 270 | void purple_account_request_add(PurpleAccount *account, const char *remote_user, |
| 12285 | 271 | const char *id, const char *alias, |
| 272 | const char *message); | |
| 15119 | 273 | |
| 274 | /** | |
| 275 | * 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
|
276 | * to his or her buddy list and requires authorization to do so. |
| 15119 | 277 | * |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
22592
diff
changeset
|
278 | * This will present a dialog informing the user of this and ask if the |
| 15119 | 279 | * user authorizes or denies the remote user from adding him. |
| 280 | * | |
| 281 | * @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
|
282 | * @param remote_user The name of the user that added this account. |
| 15119 | 283 | * @param id The optional ID of the local account. Rarely used. |
| 284 | * @param alias The optional alias of the remote user. | |
| 21927 | 285 | * @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
|
286 | * @param on_list Is the remote user already on the buddy list? |
| 15119 | 287 | * @param auth_cb The callback called when the local user accepts |
| 288 | * @param deny_cb The callback called when the local user rejects | |
| 289 | * @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
|
290 | * |
|
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
|
291 | * @return A UI-specific handle. |
| 15119 | 292 | */ |
| 15884 | 293 | void *purple_account_request_authorization(PurpleAccount *account, const char *remote_user, |
| 15197 | 294 | 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
|
295 | PurpleAccountRequestAuthorizationCb auth_cb, PurpleAccountRequestAuthorizationCb deny_cb, void *user_data); |
| 15119 | 296 | |
| 12285 | 297 | /** |
| 15884 | 298 | * 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
|
299 | * |
|
15997
ff97c5f69196
A little doxygen love and some tiny gaim->purpleisms
Mark Doliner <markdoliner@pidgin.im>
parents:
15884
diff
changeset
|
300 | * @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
|
301 | */ |
| 15884 | 302 | 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
|
303 | |
|
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
|
304 | /** |
|
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
|
305 | * 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
|
306 | * |
|
15997
ff97c5f69196
A little doxygen love and some tiny gaim->purpleisms
Mark Doliner <markdoliner@pidgin.im>
parents:
15884
diff
changeset
|
307 | * @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
|
308 | */ |
| 15884 | 309 | 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
|
310 | |
|
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
|
311 | /** |
|
16180
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
312 | * 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
|
313 | * 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
|
314 | * |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
315 | * @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
|
316 | * @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
|
317 | * @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
|
318 | * @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
|
319 | */ |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
320 | 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
|
321 | 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
|
322 | |
|
82761882c366
patch from Simon Wilkinson to support Jabber/XMPP w/o passwords
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
323 | /** |
|
7063
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
324 | * Requests information from the user to change the account's password. |
|
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
325 | * |
|
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
326 | * @param account The account to change the password on. |
|
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
327 | */ |
| 15884 | 328 | void purple_account_request_change_password(PurpleAccount *account); |
|
7063
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
329 | |
|
4bfe512a4b8c
[gaim-migrate @ 7627]
Christian Hammond <chipx86@chipx86.com>
parents:
7015
diff
changeset
|
330 | /** |
|
7067
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
331 | * Requests information from the user to change the account's |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
332 | * user information. |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
333 | * |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
334 | * @param account The account to change the user information on. |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
335 | */ |
| 15884 | 336 | void purple_account_request_change_user_info(PurpleAccount *account); |
|
7067
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
337 | |
|
c57295414efa
[gaim-migrate @ 7631]
Christian Hammond <chipx86@chipx86.com>
parents:
7065
diff
changeset
|
338 | /** |
| 5563 | 339 | * Sets the account's username. |
| 340 | * | |
| 341 | * @param account The account. | |
| 342 | * @param username The username. | |
| 343 | */ | |
| 15884 | 344 | void purple_account_set_username(PurpleAccount *account, const char *username); |
| 5563 | 345 | |
| 346 | /** | |
| 347 | * Sets the account's password. | |
| 348 | * | |
| 349 | * @param account The account. | |
| 350 | * @param password The password. | |
| 351 | */ | |
| 15884 | 352 | void purple_account_set_password(PurpleAccount *account, const char *password); |
| 5563 | 353 | |
| 354 | /** | |
| 355 | * Sets the account's alias. | |
| 356 | * | |
| 357 | * @param account The account. | |
| 358 | * @param alias The alias. | |
| 359 | */ | |
| 15884 | 360 | void purple_account_set_alias(PurpleAccount *account, const char *alias); |
| 5563 | 361 | |
| 362 | /** | |
| 363 | * Sets the account's user information | |
| 364 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6621
diff
changeset
|
365 | * @param account The account. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6621
diff
changeset
|
366 | * @param user_info The user information. |
| 5563 | 367 | */ |
| 15884 | 368 | void purple_account_set_user_info(PurpleAccount *account, const char *user_info); |
| 5563 | 369 | |
| 370 | /** | |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
371 | * Sets the account's buddy icon path. |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
372 | * |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
373 | * @param account The account. |
|
15997
ff97c5f69196
A little doxygen love and some tiny gaim->purpleisms
Mark Doliner <markdoliner@pidgin.im>
parents:
15884
diff
changeset
|
374 | * @param path The buddy icon non-cached path. |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
375 | */ |
| 15884 | 376 | 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
|
377 | |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
378 | /** |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
379 | * Sets the account's protocol ID. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
380 | * |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
381 | * @param account The account. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
382 | * @param protocol_id The protocol ID. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
383 | */ |
| 15884 | 384 | void purple_account_set_protocol_id(PurpleAccount *account, |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
385 | const char *protocol_id); |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
386 | |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
387 | /** |
| 5563 | 388 | * Sets the account's connection. |
| 389 | * | |
| 390 | * @param account The account. | |
| 391 | * @param gc The connection. | |
| 392 | */ | |
| 15884 | 393 | void purple_account_set_connection(PurpleAccount *account, PurpleConnection *gc); |
| 5563 | 394 | |
| 395 | /** | |
| 396 | * Sets whether or not this account should save its password. | |
| 397 | * | |
| 398 | * @param account The account. | |
| 399 | * @param value @c TRUE if it should remember the password. | |
| 400 | */ | |
| 15884 | 401 | void purple_account_set_remember_password(PurpleAccount *account, gboolean value); |
| 5563 | 402 | |
| 403 | /** | |
|
5565
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
404 | * Sets whether or not this account should check for mail. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
405 | * |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
406 | * @param account The account. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
407 | * @param value @c TRUE if it should check for mail. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
408 | */ |
| 15884 | 409 | void purple_account_set_check_mail(PurpleAccount *account, gboolean value); |
|
5565
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
410 | |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
411 | /** |
| 10400 | 412 | * 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
|
413 | * UI. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
414 | * |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
415 | * @param account The account. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
416 | * @param ui The UI. |
| 10400 | 417 | * @param value @c TRUE if it is enabled. |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
418 | */ |
| 15884 | 419 | void purple_account_set_enabled(PurpleAccount *account, const char *ui, |
| 10400 | 420 | gboolean value); |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
421 | |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
422 | /** |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
423 | * Sets the account's proxy information. |
|
6583
198cb8cc465c
[gaim-migrate @ 7105]
Christian Hammond <chipx86@chipx86.com>
parents:
6581
diff
changeset
|
424 | * |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
425 | * @param account The account. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
426 | * @param info The proxy information. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
427 | */ |
| 15884 | 428 | void purple_account_set_proxy_info(PurpleAccount *account, PurpleProxyInfo *info); |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
429 | |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
430 | /** |
|
30021
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
431 | * 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
|
432 | * |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
433 | * @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
|
434 | * @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
|
435 | */ |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
436 | 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
|
437 | |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
438 | /** |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
439 | * Sets the account's status types. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
440 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
441 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
442 | * @param status_types The list of status types. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
443 | */ |
| 15884 | 444 | 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
|
445 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
446 | /** |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
447 | * 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
|
448 | * replaces @a attrs, and should be <tt>NULL</tt>-terminated. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
449 | * |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
450 | * @copydoc purple_account_set_status_list() |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
451 | */ |
| 15884 | 452 | 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
|
453 | gboolean active, ...) G_GNUC_NULL_TERMINATED; |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
454 | |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
455 | |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
456 | /** |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
457 | * 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
|
458 | * 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
|
459 | * |
|
22246
d2814ea686bd
Clarify documentation of purple_account_set_status_list(), and use @copydoc to
Will Thompson <resiak@pidgin.im>
parents:
21927
diff
changeset
|
460 | * 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
|
461 | * 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
|
462 | * FALSE, this function does nothing. |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
463 | * |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
464 | * @param account The account. |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
465 | * @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
|
466 | * @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
|
467 | * 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
|
468 | * @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
|
469 | * <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
|
470 | * (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
|
471 | * by <tt>"hello, talk to me!"</tt>.) |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
472 | */ |
| 15884 | 473 | 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
|
474 | const char *status_id, gboolean active, GList *attrs); |
|
11249
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
475 | |
|
efc82f3e1bd3
[gaim-migrate @ 13418]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
476 | /** |
|
30138
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
477 | * 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
|
478 | * 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
|
479 | * |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
480 | * 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
|
481 | * 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
|
482 | * |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
483 | * @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
|
484 | * @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
|
485 | * 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
|
486 | * 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
|
487 | * @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
|
488 | * 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
|
489 | * @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
|
490 | * 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
|
491 | */ |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
492 | 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
|
493 | 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
|
494 | 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
|
495 | |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
496 | /** |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
497 | * 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
|
498 | * 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
|
499 | * |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
500 | * @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
|
501 | * @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
|
502 | * @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
|
503 | * 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
|
504 | */ |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
505 | 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
|
506 | 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
|
507 | 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
|
508 | |
|
cca9685df785
Add purple_account_[gs]et_public_alias functions, per discussion in d@cpi
Paul Aurich <darkrain42@pidgin.im>
parents:
30047
diff
changeset
|
509 | /** |
|
31566
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
510 | * 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
|
511 | * |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
512 | * @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
|
513 | * |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
514 | * @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
|
515 | */ |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
516 | 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
|
517 | |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
518 | /** |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
519 | * 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
|
520 | * |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
521 | * @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
|
522 | * @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
|
523 | */ |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
524 | 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
|
525 | gboolean value); |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
526 | |
|
fa37798387fa
Make the simple silence suppression stuff optional per-account. Fixes #13180.
Jakub Adam <jakub.adam@ktknet.cz>
parents:
31565
diff
changeset
|
527 | /** |
|
5694
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
528 | * Clears all protocol-specific settings on an account. |
|
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
529 | * |
|
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
530 | * @param account The account. |
|
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
531 | */ |
| 15884 | 532 | void purple_account_clear_settings(PurpleAccount *account); |
|
5694
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
533 | |
|
46768356e6a1
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
534 | /** |
|
27562
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
535 | * 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
|
536 | * |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
537 | * @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
|
538 | * @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
|
539 | */ |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
540 | 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
|
541 | |
|
2e34a10e7135
Migrate Yahoo! JAPAN accounts to the new prpl (in theory). This also adds
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
26392
diff
changeset
|
542 | /** |
| 5563 | 543 | * Sets a protocol-specific integer setting for an account. |
| 544 | * | |
| 545 | * @param account The account. | |
| 546 | * @param name The name of the setting. | |
| 547 | * @param value The setting's value. | |
| 548 | */ | |
| 15884 | 549 | void purple_account_set_int(PurpleAccount *account, const char *name, int value); |
| 5563 | 550 | |
| 551 | /** | |
| 552 | * Sets a protocol-specific string setting for an account. | |
| 553 | * | |
| 554 | * @param account The account. | |
| 555 | * @param name The name of the setting. | |
| 556 | * @param value The setting's value. | |
| 557 | */ | |
| 15884 | 558 | void purple_account_set_string(PurpleAccount *account, const char *name, |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6621
diff
changeset
|
559 | const char *value); |
| 5563 | 560 | |
| 561 | /** | |
| 562 | * Sets a protocol-specific boolean setting for an account. | |
| 563 | * | |
| 564 | * @param account The account. | |
| 565 | * @param name The name of the setting. | |
| 566 | * @param value The setting's value. | |
| 567 | */ | |
| 15884 | 568 | void purple_account_set_bool(PurpleAccount *account, const char *name, |
| 5563 | 569 | gboolean value); |
| 570 | ||
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
571 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
572 | * Sets a UI-specific integer setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
573 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
574 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
575 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
576 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
577 | * @param value The setting's value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
578 | */ |
| 15884 | 579 | 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
|
580 | const char *name, int value); |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
581 | |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
582 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
583 | * Sets a UI-specific string setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
584 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
585 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
586 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
587 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
588 | * @param value The setting's value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
589 | */ |
| 15884 | 590 | 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
|
591 | const char *name, const char *value); |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
592 | |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
593 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
594 | * Sets a UI-specific boolean setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
595 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
596 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
597 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
598 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
599 | * @param value The setting's value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
600 | */ |
| 15884 | 601 | 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
|
602 | const char *name, gboolean value); |
| 5563 | 603 | |
| 604 | /** | |
| 605 | * Returns whether or not the account is connected. | |
| 606 | * | |
| 607 | * @param account The account. | |
| 608 | * | |
| 609 | * @return @c TRUE if connected, or @c FALSE otherwise. | |
| 610 | */ | |
| 15884 | 611 | gboolean purple_account_is_connected(const PurpleAccount *account); |
| 5563 | 612 | |
| 613 | /** | |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
614 | * Returns whether or not the account is connecting. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
615 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
616 | * @param account The account. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
617 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
618 | * @return @c TRUE if connecting, or @c FALSE otherwise. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
619 | */ |
| 15884 | 620 | gboolean purple_account_is_connecting(const PurpleAccount *account); |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
621 | |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
622 | /** |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
623 | * Returns whether or not the account is disconnected. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
624 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
625 | * @param account The account. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
626 | * |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
627 | * @return @c TRUE if disconnected, or @c FALSE otherwise. |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
628 | */ |
| 15884 | 629 | gboolean purple_account_is_disconnected(const PurpleAccount *account); |
|
11251
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
630 | |
|
e38d86958a63
[gaim-migrate @ 13420]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11249
diff
changeset
|
631 | /** |
| 5563 | 632 | * Returns the account's username. |
| 633 | * | |
| 634 | * @param account The account. | |
| 635 | * | |
| 636 | * @return The username. | |
| 637 | */ | |
| 15884 | 638 | const char *purple_account_get_username(const PurpleAccount *account); |
| 5563 | 639 | |
| 640 | /** | |
| 641 | * Returns the account's password. | |
| 642 | * | |
| 643 | * @param account The account. | |
| 644 | * | |
| 645 | * @return The password. | |
| 646 | */ | |
| 15884 | 647 | const char *purple_account_get_password(const PurpleAccount *account); |
| 5563 | 648 | |
| 649 | /** | |
| 650 | * Returns the account's alias. | |
| 651 | * | |
| 652 | * @param account The account. | |
| 653 | * | |
| 654 | * @return The alias. | |
| 655 | */ | |
| 15884 | 656 | const char *purple_account_get_alias(const PurpleAccount *account); |
| 5563 | 657 | |
| 658 | /** | |
| 659 | * Returns the account's user information. | |
| 660 | * | |
| 661 | * @param account The account. | |
| 662 | * | |
| 663 | * @return The user information. | |
| 664 | */ | |
| 15884 | 665 | const char *purple_account_get_user_info(const PurpleAccount *account); |
| 5563 | 666 | |
| 667 | /** | |
|
15132
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
668 | * Gets the account's buddy icon path. |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
669 | * |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
670 | * @param account The account. |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
671 | * |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
672 | * @return The buddy icon's non-cached path. |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
673 | */ |
| 15884 | 674 | 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
|
675 | |
|
672c39839af1
[gaim-migrate @ 17854]
Mark Huetsch <markhuetsch@users.sourceforge.net>
parents:
15121
diff
changeset
|
676 | /** |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
677 | * Returns the account's protocol ID. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
678 | * |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
679 | * @param account The account. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
680 | * |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
681 | * @return The protocol ID. |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
682 | */ |
| 15884 | 683 | const char *purple_account_get_protocol_id(const PurpleAccount *account); |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
684 | |
|
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
685 | /** |
|
9699
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
686 | * Returns the account's protocol name. |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
687 | * |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
688 | * @param account The account. |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
689 | * |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
690 | * @return The protocol name. |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
691 | */ |
| 15884 | 692 | const char *purple_account_get_protocol_name(const PurpleAccount *account); |
|
9699
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
693 | |
|
d1ca5dd91cc2
[gaim-migrate @ 10558]
Mark Doliner <markdoliner@pidgin.im>
parents:
9619
diff
changeset
|
694 | /** |
| 5563 | 695 | * Returns the account's connection. |
| 696 | * | |
| 697 | * @param account The account. | |
| 698 | * | |
| 699 | * @return The connection. | |
| 700 | */ | |
| 15884 | 701 | PurpleConnection *purple_account_get_connection(const PurpleAccount *account); |
| 5563 | 702 | |
| 703 | /** | |
|
29515
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
704 | * 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
|
705 | * 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
|
706 | * 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
|
707 | * 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
|
708 | * |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
709 | * @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
|
710 | * |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
711 | * @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
|
712 | */ |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
713 | 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
|
714 | |
|
7334e85a7a56
This effectively moves Etan's API addition off im.pidgin.pidgin and onto
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27562
diff
changeset
|
715 | /** |
| 5563 | 716 | * Returns whether or not this account should save its password. |
| 717 | * | |
| 718 | * @param account The account. | |
| 719 | * | |
| 720 | * @return @c TRUE if it should remember the password. | |
| 721 | */ | |
| 15884 | 722 | gboolean purple_account_get_remember_password(const PurpleAccount *account); |
| 5563 | 723 | |
| 724 | /** | |
|
5565
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
725 | * Returns whether or not this account should check for mail. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
726 | * |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
727 | * @param account The account. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
728 | * |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
729 | * @return @c TRUE if it should check for mail. |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
730 | */ |
| 15884 | 731 | gboolean purple_account_get_check_mail(const PurpleAccount *account); |
|
5565
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
732 | |
|
687cc390b7dc
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
733 | /** |
| 10400 | 734 | * Returns whether or not this account is enabled for the |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
735 | * specified UI. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
736 | * |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
737 | * @param account The account. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
738 | * @param ui The UI. |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
739 | * |
| 10400 | 740 | * @return @c TRUE if it enabled on this UI. |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
741 | */ |
| 15884 | 742 | gboolean purple_account_get_enabled(const PurpleAccount *account, |
| 10400 | 743 | const char *ui); |
|
5779
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
744 | |
|
8c8b8c8139c2
[gaim-migrate @ 6204]
Christian Hammond <chipx86@chipx86.com>
parents:
5777
diff
changeset
|
745 | /** |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
746 | * Returns the account's proxy information. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
747 | * |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
748 | * @param account The account. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
749 | * |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
750 | * @return The proxy information. |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
751 | */ |
| 15884 | 752 | PurpleProxyInfo *purple_account_get_proxy_info(const PurpleAccount *account); |
|
5681
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
753 | |
|
514fbc5374dc
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
754 | /** |
|
30021
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
755 | * 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
|
756 | * |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
757 | * @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
|
758 | * |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
759 | * @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
|
760 | */ |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
761 | 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
|
762 | |
|
3c7a689ae32e
Add getter and setter for account->perm_deny. Patch by Stephen Whitmore.
Mark Doliner <markdoliner@pidgin.im>
parents:
29517
diff
changeset
|
763 | /** |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
764 | * Returns the active status for this account. This looks through |
| 15884 | 765 | * the PurplePresence associated with this account and returns the |
| 766 | * PurpleStatus that has its active flag set to "TRUE." There can be | |
| 767 | * only one active PurpleStatus in a PurplePresence. | |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
768 | * |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
769 | * @param account The account. |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
770 | * |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
771 | * @return The active status. |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
772 | */ |
| 15884 | 773 | PurpleStatus *purple_account_get_active_status(const PurpleAccount *account); |
|
10738
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
774 | |
|
63ca8277c234
[gaim-migrate @ 12340]
Mark Doliner <markdoliner@pidgin.im>
parents:
10566
diff
changeset
|
775 | /** |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
776 | * Returns the account status with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
777 | * |
| 15884 | 778 | * 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
|
779 | * it will only return NULL if the status was not registered. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
780 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
781 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
782 | * @param status_id The status ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
783 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
784 | * @return The status, or NULL if it was never registered. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
785 | */ |
| 15884 | 786 | PurpleStatus *purple_account_get_status(const PurpleAccount *account, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
787 | const char *status_id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
788 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
789 | /** |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
790 | * Returns the account status type with the specified ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
791 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
792 | * @param account The account. |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
793 | * @param id The ID of the status type to find. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
794 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
795 | * @return The status type if found, or NULL. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
796 | */ |
| 15884 | 797 | PurpleStatusType *purple_account_get_status_type(const PurpleAccount *account, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
798 | const char *id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
799 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
800 | /** |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
801 | * Returns the account status type with the specified primitive. |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
802 | * Note: It is possible for an account to have more than one |
| 15884 | 803 | * PurpleStatusType with the same primitive. In this case, the |
| 804 | * first PurpleStatusType is returned. | |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
805 | * |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
806 | * @param account The account. |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
807 | * @param primitive The type of the status type to find. |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
808 | * |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
809 | * @return The status if found, or NULL. |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
810 | */ |
| 15884 | 811 | PurpleStatusType *purple_account_get_status_type_with_primitive( |
| 812 | const PurpleAccount *account, | |
| 813 | PurpleStatusPrimitive primitive); | |
|
11739
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
814 | |
|
cc15987b3937
[gaim-migrate @ 14030]
Mark Doliner <markdoliner@pidgin.im>
parents:
11732
diff
changeset
|
815 | /** |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
816 | * Returns the account's presence. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
817 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
818 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
819 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
820 | * @return The account's presence. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
821 | */ |
| 15884 | 822 | PurplePresence *purple_account_get_presence(const PurpleAccount *account); |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
823 | |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
824 | /** |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
825 | * Returns whether or not an account status is active. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
826 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
827 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
828 | * @param status_id The status ID. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
829 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
830 | * @return TRUE if active, or FALSE if not. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
831 | */ |
| 15884 | 832 | gboolean purple_account_is_status_active(const PurpleAccount *account, |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
833 | const char *status_id); |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
834 | |
|
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 | * Returns the account's status types. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
837 | * |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
838 | * @param account The account. |
|
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
839 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
840 | * @constreturn The account's status types. |
|
9944
71ef020ec4b0
[gaim-migrate @ 10838]
Christian Hammond <chipx86@chipx86.com>
parents:
9718
diff
changeset
|
841 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
842 | GList *purple_account_get_status_types(const PurpleAccount *account); |
|
9944
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 | /** |
| 5563 | 845 | * Returns a protocol-specific integer setting for an account. |
| 846 | * | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
847 | * @param account The account. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
848 | * @param name The name of the setting. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
849 | * @param default_value The default value. |
| 5563 | 850 | * |
| 851 | * @return The value. | |
| 852 | */ | |
| 15884 | 853 | 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
|
854 | int default_value); |
| 5563 | 855 | |
| 856 | /** | |
| 857 | * Returns a protocol-specific string setting for an account. | |
| 858 | * | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
859 | * @param account The account. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
860 | * @param name The name of the setting. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
861 | * @param default_value The default value. |
| 5563 | 862 | * |
| 863 | * @return The value. | |
| 864 | */ | |
| 15884 | 865 | const char *purple_account_get_string(const PurpleAccount *account, |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
866 | const char *name, |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
867 | const char *default_value); |
| 5563 | 868 | |
| 869 | /** | |
| 870 | * Returns a protocol-specific boolean setting for an account. | |
| 871 | * | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
872 | * @param account The account. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
873 | * @param name The name of the setting. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
874 | * @param default_value The default value. |
| 5563 | 875 | * |
| 876 | * @return The value. | |
| 877 | */ | |
| 15884 | 878 | 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
|
879 | gboolean default_value); |
| 5563 | 880 | |
| 881 | /** | |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
882 | * Returns a UI-specific integer setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
883 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
884 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
885 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
886 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
887 | * @param default_value The default value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
888 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
889 | * @return The value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
890 | */ |
| 15884 | 891 | 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
|
892 | const char *name, int default_value); |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
893 | |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
894 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
895 | * Returns a UI-specific string setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
896 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
897 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
898 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
899 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
900 | * @param default_value The default value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
901 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
902 | * @return The value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
903 | */ |
| 15884 | 904 | const char *purple_account_get_ui_string(const PurpleAccount *account, |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
905 | const char *ui, const char *name, |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
906 | const char *default_value); |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
907 | |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
908 | /** |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
909 | * Returns a UI-specific boolean setting for an account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
910 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
911 | * @param account The account. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
912 | * @param ui The UI name. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
913 | * @param name The name of the setting. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
914 | * @param default_value The default value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
915 | * |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
916 | * @return The value. |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
917 | */ |
| 15884 | 918 | 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
|
919 | const char *name, gboolean default_value); |
|
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
920 | |
| 8573 | 921 | |
| 922 | /** | |
| 923 | * Returns the system log for an account. | |
| 924 | * | |
| 9000 | 925 | * @param account The account. |
|
13508
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
926 | * @param create Should it be created if it doesn't exist? |
| 8573 | 927 | * |
| 928 | * @return The log. | |
|
13508
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
929 | * |
|
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
930 | * @note Callers should almost always pass @c FALSE for @a create. |
|
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
931 | * Passing @c TRUE could result in an existing log being reopened, |
|
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
12857
diff
changeset
|
932 | * 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
|
933 | * with appropriately. |
| 8573 | 934 | */ |
| 15884 | 935 | PurpleLog *purple_account_get_log(PurpleAccount *account, gboolean create); |
| 8573 | 936 | |
| 937 | /** | |
| 938 | * Frees the system log of an account | |
| 939 | * | |
| 9000 | 940 | * @param account The account. |
| 8573 | 941 | */ |
| 15884 | 942 | void purple_account_destroy_log(PurpleAccount *account); |
| 8573 | 943 | |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
944 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
945 | * 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
|
946 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
947 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
948 | * @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
|
949 | * @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
|
950 | */ |
|
32315
2550a39e0285
Rename the _with_invite functions to their counterparts.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31594
diff
changeset
|
951 | 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
|
952 | |
|
ec0856af6477
Add new functions for adding buddies with an invite message. If the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31566
diff
changeset
|
953 | /** |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
954 | * Adds a list of buddies to the server-side buddy list. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
955 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
956 | * @param account The account. |
| 15884 | 957 | * @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
|
958 | * @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
|
959 | */ |
|
32315
2550a39e0285
Rename the _with_invite functions to their counterparts.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31594
diff
changeset
|
960 | 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
|
961 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
962 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
963 | * Removes a buddy from the server-side buddy list. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
964 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
965 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
966 | * @param buddy The buddy to remove. |
|
11782
fb3bbb36dc25
[gaim-migrate @ 14073]
Peter Lawler <pidgin@bleeter.id.au>
parents:
11739
diff
changeset
|
967 | * @param group The group to remove the buddy from. |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
968 | */ |
| 15884 | 969 | void purple_account_remove_buddy(PurpleAccount *account, PurpleBuddy *buddy, |
| 970 | PurpleGroup *group); | |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
971 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
972 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
973 | * Removes a list of buddies from the server-side buddy list. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
974 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
975 | * @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
|
976 | * groups matches node n of buddies. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
977 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
978 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
979 | * @param buddies The list of buddies to remove. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
980 | * @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
|
981 | * list should match the corresponding node of buddies. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
982 | */ |
| 15884 | 983 | void purple_account_remove_buddies(PurpleAccount *account, GList *buddies, |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
984 | GList *groups); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
985 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
986 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
987 | * Removes a group from the server-side buddy list. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
988 | * |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
989 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
990 | * @param group The group to remove. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
991 | */ |
| 15884 | 992 | void purple_account_remove_group(PurpleAccount *account, PurpleGroup *group); |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
993 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
994 | /** |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
995 | * Changes the password on the specified account. |
|
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 | * @param account The account. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
998 | * @param orig_pw The old password. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
999 | * @param new_pw The new password. |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1000 | */ |
| 15884 | 1001 | 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
|
1002 | const char *new_pw); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11348
diff
changeset
|
1003 | |
|
12645
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1004 | /** |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1005 | * Whether the account supports sending offline messages to buddy. |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1006 | * |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1007 | * @param account The account |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1008 | * @param buddy The buddy |
|
a907ba243930
[gaim-migrate @ 14983]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12420
diff
changeset
|
1009 | */ |
| 15884 | 1010 | 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
|
1011 | |
|
21287
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
1012 | /** |
|
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
1013 | * 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
|
1014 | * 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
|
1015 | * |
|
c4971408eae8
Make PurpleAccount keep track of the last connection error suffered (or not, if
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
1016 | * @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
|
1017 | * @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
|
1018 | * 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
|
1019 | * 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
|
1020 | * 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
|
1021 | */ |
|
21298
d0d9cfaf3fe7
Mark pointed out that PurpleConnectionErrorPair is not a very good name for the
Will Thompson <resiak@pidgin.im>
parents:
21295
diff
changeset
|
1022 | 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
|
1023 | |
|
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
|
1024 | /** |
|
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
1025 | * 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
|
1026 | * |
|
bca57f8144a1
Add purple_account_clear_current_error(), which does what it says on the tin.
Will Thompson <resiak@pidgin.im>
parents:
21300
diff
changeset
|
1027 | * @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
|
1028 | */ |
|
21315
031ad548b3c8
purple_account_clear_current_error is public API, so should not be static.
Will Thompson <resiak@pidgin.im>
parents:
21311
diff
changeset
|
1029 | 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
|
1030 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1031 | /*@}*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1032 | |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1033 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1034 | /** @name Accounts API */ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1035 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1036 | /*@{*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1037 | |
|
5777
2b4e8214a7cd
[gaim-migrate @ 6202]
Christian Hammond <chipx86@chipx86.com>
parents:
5710
diff
changeset
|
1038 | /** |
|
5710
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1039 | * Adds an account to the list of accounts. |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1040 | * |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1041 | * @param account The account. |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1042 | */ |
| 15884 | 1043 | void purple_accounts_add(PurpleAccount *account); |
|
5710
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1044 | |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1045 | /** |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1046 | * Removes an account from the list of accounts. |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1047 | * |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1048 | * @param account The account. |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1049 | */ |
| 15884 | 1050 | void purple_accounts_remove(PurpleAccount *account); |
|
5710
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1051 | |
|
3c2bf5725bb0
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
1052 | /** |
|
6368
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1053 | * Deletes an account. |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1054 | * |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1055 | * This will remove any buddies from the buddy list that belong to this |
| 11732 | 1056 | * account, buddy pounces that belong to this account, and will also |
| 8235 | 1057 | * destroy @a account. |
|
6368
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1058 | * |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1059 | * @param account The account. |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1060 | */ |
| 15884 | 1061 | void purple_accounts_delete(PurpleAccount *account); |
|
6368
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1062 | |
|
ab9f99269dfe
[gaim-migrate @ 6873]
Christian Hammond <chipx86@chipx86.com>
parents:
6367
diff
changeset
|
1063 | /** |
|
5580
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1064 | * Reorders an account. |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1065 | * |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1066 | * @param account The account to reorder. |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1067 | * @param new_index The new index for the account. |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1068 | */ |
| 15884 | 1069 | void purple_accounts_reorder(PurpleAccount *account, gint new_index); |
|
5580
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1070 | |
|
a5a3e6dfb409
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
1071 | /** |
| 5563 | 1072 | * Returns a list of all accounts. |
| 1073 | * | |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
1074 | * @constreturn A list of all accounts. |
| 5563 | 1075 | */ |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
1076 | GList *purple_accounts_get_all(void); |
| 5563 | 1077 | |
|
5874
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1078 | /** |
| 10400 | 1079 | * Returns a list of all enabled accounts |
| 1080 | * | |
| 11732 | 1081 | * @return A list of all enabled accounts. The list is owned |
| 1082 | * by the caller, and must be g_list_free()d to avoid | |
| 1083 | * leaking the nodes. | |
| 10400 | 1084 | */ |
| 15884 | 1085 | GList *purple_accounts_get_all_active(void); |
| 10400 | 1086 | |
| 1087 | /** | |
|
8073
bcd09dc33ad0
[gaim-migrate @ 8771]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
1088 | * Finds an account with the specified name and protocol id. |
|
5874
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1089 | * |
|
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1090 | * @param name The account username. |
|
8073
bcd09dc33ad0
[gaim-migrate @ 8771]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
1091 | * @param protocol The account protocol ID. |
|
5874
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1092 | * |
|
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1093 | * @return The account, if found, or @c FALSE otherwise. |
|
5e19273d3c6f
[gaim-migrate @ 6306]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1094 | */ |
| 15884 | 1095 | PurpleAccount *purple_accounts_find(const char *name, const char *protocol); |
|
5943
8a052155157a
[gaim-migrate @ 6384]
Christian Hammond <chipx86@chipx86.com>
parents:
5879
diff
changeset
|
1096 | |
|
11348
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1097 | /** |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1098 | * This is called by the core after all subsystems and what |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1099 | * not have been initialized. It sets all enabled accounts |
|
12857
2e99b4a360fc
[gaim-migrate @ 15208]
Daniel Atallah <datallah@pidgin.im>
parents:
12645
diff
changeset
|
1100 | * to their startup status by signing them on, setting them |
|
11348
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1101 | * away, etc. |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1102 | * |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1103 | * You probably shouldn't call this unless you really know |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1104 | * what you're doing. |
|
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1105 | */ |
| 15884 | 1106 | void purple_accounts_restore_current_statuses(void); |
|
11348
b8938b189d61
[gaim-migrate @ 13565]
Mark Doliner <markdoliner@pidgin.im>
parents:
11328
diff
changeset
|
1107 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1108 | /*@}*/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1109 | |
|
7122
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1110 | |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1111 | /**************************************************************************/ |
|
7122
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1112 | /** @name UI Registration Functions */ |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1113 | /**************************************************************************/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1114 | /*@{*/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1115 | /** |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1116 | * Sets the UI operations structure to be used for accounts. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1117 | * |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1118 | * @param ops The UI operations structure. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1119 | */ |
| 15884 | 1120 | void purple_accounts_set_ui_ops(PurpleAccountUiOps *ops); |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1121 | |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1122 | /** |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1123 | * Returns the UI operations structure used for accounts. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1124 | * |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1125 | * @return The UI operations structure in use. |
|
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1126 | */ |
| 15884 | 1127 | PurpleAccountUiOps *purple_accounts_get_ui_ops(void); |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1128 | |
|
7122
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1129 | /*@}*/ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1130 | |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1131 | |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1132 | /**************************************************************************/ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1133 | /** @name Accounts Subsystem */ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1134 | /**************************************************************************/ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1135 | /*@{*/ |
|
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7067
diff
changeset
|
1136 | |
|
7015
bea9111282b3
[gaim-migrate @ 7578]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
1137 | /** |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1138 | * Returns the accounts subsystem handle. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1139 | * |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1140 | * @return The accounts subsystem handle. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1141 | */ |
| 15884 | 1142 | void *purple_accounts_get_handle(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1143 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1144 | /** |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1145 | * Initializes the accounts subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1146 | */ |
| 15884 | 1147 | void purple_accounts_init(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1148 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1149 | /** |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1150 | * Uninitializes the accounts subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1151 | */ |
| 15884 | 1152 | void purple_accounts_uninit(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1153 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1154 | /*@}*/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6368
diff
changeset
|
1155 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1156 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1157 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1158 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5943
diff
changeset
|
1159 | |
| 15884 | 1160 | #endif /* _PURPLE_ACCOUNT_H_ */ |