Mercurial > pidgin
annotate src/account.h @ 5734:5cd96052bc45
[gaim-migrate @ 6158]
had these prefs wrong
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 04 Jun 2003 06:05:17 +0000 |
parents | dbac958d8937 |
children | 1f786fb43ee6 |
rev | line source |
---|---|
5563 | 1 /** |
2 * @file account.h Account API | |
3 * @ingroup core | |
4 * | |
5 * gaim | |
6 * | |
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | |
8 * | |
9 * This program is free software; you can redistribute it and/or modify | |
10 * it under the terms of the GNU General Public License as published by | |
11 * the Free Software Foundation; either version 2 of the License, or | |
12 * (at your option) any later version. | |
13 * | |
14 * This program is distributed in the hope that it will be useful, | |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program; if not, write to the Free Software | |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 */ | |
23 #ifndef _GAIM_ACCOUNTS_H_ | |
24 #define _GAIM_ACCOUNTS_H_ | |
25 | |
26 typedef struct _GaimAccount GaimAccount; | |
27 | |
28 #include "connection.h" | |
5681
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
29 #include "proxy.h" |
5563 | 30 #include "prpl.h" |
31 | |
32 struct _GaimAccount | |
33 { | |
34 char *username; /**< The username. */ | |
35 char *alias; /**< The current alias. */ | |
36 char *password; /**< The account password. */ | |
37 char *user_info; /**< User information. */ | |
38 | |
39 char *buddy_icon; /**< The buddy icon. */ | |
40 | |
41 gboolean remember_pass; /**< Remember the password. */ | |
5565
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
42 gboolean check_mail; /**< Check for mail. */ |
5563 | 43 |
44 GaimProtocol protocol; /**< The account protocol. */ | |
5643
eb685809108b
[gaim-migrate @ 6057]
Christian Hammond <chipx86@chipx86.com>
parents:
5580
diff
changeset
|
45 char *protocol_id; /**< The ID of the protocol. */ |
5563 | 46 |
47 GaimConnection *gc; /**< The connection handle. */ | |
48 | |
49 GHashTable *settings; /**< Protocol-specific settings. */ | |
50 | |
5681
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
51 GaimProxyInfo *proxy_info; /**< Proxy information. */ |
5563 | 52 |
53 GSList *permit; /**< Permit list. */ | |
54 GSList *deny; /**< Deny list. */ | |
55 int perm_deny; /**< The permit/deny setting. */ | |
56 }; | |
57 | |
58 /** | |
59 * Creates a new account. | |
60 * | |
61 * @param username The username. | |
62 * @param protocol The protocol. | |
63 */ | |
64 GaimAccount *gaim_account_new(const char *username, GaimProtocol protocol); | |
65 | |
66 /** | |
67 * Destroys an account. | |
68 * | |
69 * @param account The account to destroy. | |
70 */ | |
71 void gaim_account_destroy(GaimAccount *account); | |
72 | |
73 /** | |
74 * Connects to an account. | |
75 * | |
76 * @param account The account to connect to. | |
77 * | |
78 * @return The gaim connection. | |
79 */ | |
80 GaimConnection *gaim_account_connect(GaimAccount *account); | |
81 | |
82 /** | |
83 * Disconnects from an account. | |
84 * | |
85 * @param account The account to disconnect from. | |
86 * | |
87 * @return The gaim connection. | |
88 */ | |
89 void gaim_account_disconnect(GaimAccount *account); | |
90 | |
91 /** | |
92 * Sets the account's username. | |
93 * | |
94 * @param account The account. | |
95 * @param username The username. | |
96 */ | |
97 void gaim_account_set_username(GaimAccount *account, const char *username); | |
98 | |
99 /** | |
100 * Sets the account's password. | |
101 * | |
102 * @param account The account. | |
103 * @param password The password. | |
104 */ | |
105 void gaim_account_set_password(GaimAccount *account, const char *password); | |
106 | |
107 /** | |
108 * Sets the account's alias. | |
109 * | |
110 * @param account The account. | |
111 * @param alias The alias. | |
112 */ | |
113 void gaim_account_set_alias(GaimAccount *account, const char *alias); | |
114 | |
115 /** | |
116 * Sets the account's user information | |
117 * | |
118 * @param account The account. | |
119 * @param info The user information. | |
120 */ | |
121 void gaim_account_set_user_info(GaimAccount *account, const char *user_info); | |
122 | |
123 /** | |
124 * Sets the account's buddy icon. | |
125 * | |
126 * @param account The account. | |
127 * @param icon The buddy icon file. | |
128 */ | |
129 void gaim_account_set_buddy_icon(GaimAccount *account, const char *icon); | |
130 | |
131 /** | |
132 * Sets the account's protocol. | |
133 * | |
134 * @param account The account. | |
135 * @param protocol The protocol. | |
136 */ | |
137 void gaim_account_set_protocol(GaimAccount *account, GaimProtocol protocol); | |
138 | |
139 /** | |
140 * Sets the account's connection. | |
141 * | |
142 * @param account The account. | |
143 * @param gc The connection. | |
144 */ | |
145 void gaim_account_set_connection(GaimAccount *account, GaimConnection *gc); | |
146 | |
147 /** | |
148 * Sets whether or not this account should save its password. | |
149 * | |
150 * @param account The account. | |
151 * @param value @c TRUE if it should remember the password. | |
152 */ | |
153 void gaim_account_set_remember_password(GaimAccount *account, gboolean value); | |
154 | |
155 /** | |
5565
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
156 * Sets whether or not this account should check for mail. |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
157 * |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
158 * @param account The account. |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
159 * @param value @c TRUE if it should check for mail. |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
160 */ |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
161 void gaim_account_set_check_mail(GaimAccount *account, gboolean value); |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
162 |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
163 /** |
5681
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
164 * Sets the account's proxy information. |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
165 * |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
166 * @param account The account. |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
167 * @param info The proxy information. |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
168 */ |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
169 void gaim_account_set_proxy_info(GaimAccount *account, GaimProxyInfo *info); |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
170 |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
171 /** |
5694
2d0d96c5a7a7
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
172 * Clears all protocol-specific settings on an account. |
2d0d96c5a7a7
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
173 * |
2d0d96c5a7a7
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
174 * @param account The account. |
2d0d96c5a7a7
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
175 */ |
2d0d96c5a7a7
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
176 void gaim_account_clear_settings(GaimAccount *account); |
2d0d96c5a7a7
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
177 |
2d0d96c5a7a7
[gaim-migrate @ 6115]
Christian Hammond <chipx86@chipx86.com>
parents:
5681
diff
changeset
|
178 /** |
5563 | 179 * Sets a protocol-specific integer setting for an account. |
180 * | |
181 * @param account The account. | |
182 * @param name The name of the setting. | |
183 * @param value The setting's value. | |
184 */ | |
185 void gaim_account_set_int(GaimAccount *account, const char *name, int value); | |
186 | |
187 /** | |
188 * Sets a protocol-specific string setting for an account. | |
189 * | |
190 * @param account The account. | |
191 * @param name The name of the setting. | |
192 * @param value The setting's value. | |
193 */ | |
194 void gaim_account_set_string(GaimAccount *account, const char *name, | |
195 const char *string); | |
196 | |
197 /** | |
198 * Sets a protocol-specific boolean setting for an account. | |
199 * | |
200 * @param account The account. | |
201 * @param name The name of the setting. | |
202 * @param value The setting's value. | |
203 */ | |
204 void gaim_account_set_bool(GaimAccount *account, const char *name, | |
205 gboolean value); | |
206 | |
207 | |
208 /** | |
209 * Returns whether or not the account is connected. | |
210 * | |
211 * @param account The account. | |
212 * | |
213 * @return @c TRUE if connected, or @c FALSE otherwise. | |
214 */ | |
215 gboolean gaim_account_is_connected(const GaimAccount *account); | |
216 | |
217 /** | |
218 * Returns the account's username. | |
219 * | |
220 * @param account The account. | |
221 * | |
222 * @return The username. | |
223 */ | |
224 const char *gaim_account_get_username(const GaimAccount *account); | |
225 | |
226 /** | |
227 * Returns the account's password. | |
228 * | |
229 * @param account The account. | |
230 * | |
231 * @return The password. | |
232 */ | |
233 const char *gaim_account_get_password(const GaimAccount *account); | |
234 | |
235 /** | |
236 * Returns the account's alias. | |
237 * | |
238 * @param account The account. | |
239 * | |
240 * @return The alias. | |
241 */ | |
242 const char *gaim_account_get_alias(const GaimAccount *account); | |
243 | |
244 /** | |
245 * Returns the account's user information. | |
246 * | |
247 * @param account The account. | |
248 * | |
249 * @return The user information. | |
250 */ | |
251 const char *gaim_account_get_user_info(const GaimAccount *account); | |
252 | |
253 /** | |
254 * Returns the account's buddy icon filename. | |
255 * | |
256 * @param account The account. | |
257 * | |
258 * @return The buddy icon filename. | |
259 */ | |
260 const char *gaim_account_get_buddy_icon(const GaimAccount *account); | |
261 | |
262 /** | |
263 * Returns the account's protocol. | |
264 * | |
265 * @param account The account. | |
266 * | |
267 * @return The protocol. | |
268 */ | |
269 GaimProtocol gaim_account_get_protocol(const GaimAccount *account); | |
270 | |
271 /** | |
272 * Returns the account's connection. | |
273 * | |
274 * @param account The account. | |
275 * | |
276 * @return The connection. | |
277 */ | |
278 GaimConnection *gaim_account_get_connection(const GaimAccount *account); | |
279 | |
280 /** | |
281 * Returns whether or not this account should save its password. | |
282 * | |
283 * @param account The account. | |
284 * | |
285 * @return @c TRUE if it should remember the password. | |
286 */ | |
287 gboolean gaim_account_get_remember_password(const GaimAccount *account); | |
288 | |
289 /** | |
5565
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
290 * Returns whether or not this account should check for mail. |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
291 * |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
292 * @param account The account. |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
293 * |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
294 * @return @c TRUE if it should check for mail. |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
295 */ |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
296 gboolean gaim_account_get_check_mail(const GaimAccount *account); |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
297 |
c3c4aaf69f65
[gaim-migrate @ 5967]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
298 /** |
5681
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
299 * Returns the account's proxy information. |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
300 * |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
301 * @param account The account. |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
302 * |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
303 * @return The proxy information. |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
304 */ |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
305 GaimProxyInfo *gaim_account_get_proxy_info(const GaimAccount *account); |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
306 |
46d7ad0dfa26
[gaim-migrate @ 6100]
Christian Hammond <chipx86@chipx86.com>
parents:
5643
diff
changeset
|
307 /** |
5563 | 308 * Returns a protocol-specific integer setting for an account. |
309 * | |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
310 * @param account The account. |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
311 * @param name The name of the setting. |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
312 * @param default_value The default value. |
5563 | 313 * |
314 * @return The value. | |
315 */ | |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
316 int gaim_account_get_int(const GaimAccount *account, const char *name, |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
317 int default_value); |
5563 | 318 |
319 /** | |
320 * Returns a protocol-specific string setting for an account. | |
321 * | |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
322 * @param account The account. |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
323 * @param name The name of the setting. |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
324 * @param default_value The default value. |
5563 | 325 * |
326 * @return The value. | |
327 */ | |
328 const char *gaim_account_get_string(const GaimAccount *account, | |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
329 const char *name, |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
330 const char *default_value); |
5563 | 331 |
332 /** | |
333 * Returns a protocol-specific boolean setting for an account. | |
334 * | |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
335 * @param account The account. |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
336 * @param name The name of the setting. |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
337 * @param default_value The default value. |
5563 | 338 * |
339 * @return The value. | |
340 */ | |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
341 gboolean gaim_account_get_bool(const GaimAccount *account, const char *name, |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
342 gboolean default_value); |
5563 | 343 |
344 /** | |
5573
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
345 * Loads the accounts. |
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
346 */ |
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
347 gboolean gaim_accounts_load(); |
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
348 |
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
349 /** |
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
350 * Force an immediate write of accounts. |
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
351 */ |
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
352 void gaim_accounts_sync(); |
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
353 |
5e7de337a053
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5565
diff
changeset
|
354 /** |
5710
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
355 * Adds an account to the list of accounts. |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
356 * |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
357 * @param account The account. |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
358 */ |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
359 void gaim_accounts_add(GaimAccount *account); |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
360 |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
361 /** |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
362 * Removes an account from the list of accounts. |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
363 * |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
364 * @param account The account. |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
365 */ |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
366 void gaim_accounts_remove(GaimAccount *account); |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
367 |
dbac958d8937
[gaim-migrate @ 6131]
Christian Hammond <chipx86@chipx86.com>
parents:
5694
diff
changeset
|
368 /** |
5580
86456ec3ca25
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
369 * Reorders an account. |
86456ec3ca25
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
370 * |
86456ec3ca25
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
371 * @param account The account to reorder. |
86456ec3ca25
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
372 * @param new_index The new index for the account. |
86456ec3ca25
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
373 */ |
86456ec3ca25
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
374 void gaim_accounts_reorder(GaimAccount *account, size_t new_index); |
86456ec3ca25
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
375 |
86456ec3ca25
[gaim-migrate @ 5984]
Christian Hammond <chipx86@chipx86.com>
parents:
5573
diff
changeset
|
376 /** |
5563 | 377 * Returns a list of all accounts. |
378 * | |
379 * @return A list of all accounts. | |
380 */ | |
381 GList *gaim_accounts_get_all(void); | |
382 | |
383 #endif /* _GAIM_ACCOUNTS_H_ */ |