comparison src/account.h @ 10738:55af3fa46329

[gaim-migrate @ 12340] Lots of changes here. A lot of it stems from chaning gaim_account_connect() so that it DOES NOT have the GaimStatus parameter. It will attempt to use the GaimStatus of your account from the last time it was connected (which doesn't work quite right yet). My goal here was to save and load each account's GaimStatuses to accounts.xml, so if you were "away" when you signed off then you'll be "away" when you sign back on. Not quite there yet. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 26 Mar 2005 20:08:43 +0000
parents 62fc579810f4
children 94cc67130789
comparison
equal deleted inserted replaced
10737:b7f0bc436179 10738:55af3fa46329
115 * @param account The account to connect to. 115 * @param account The account to connect to.
116 * @param status The status the account should use when logging in. 116 * @param status The status the account should use when logging in.
117 * 117 *
118 * @return The gaim connection. 118 * @return The gaim connection.
119 */ 119 */
120 GaimConnection *gaim_account_connect(GaimAccount *account, GaimStatus *status); 120 GaimConnection *gaim_account_connect(GaimAccount *account);
121 121
122 /** 122 /**
123 * Registers an account. 123 * Registers an account.
124 * 124 *
125 * @param account The account to register. 125 * @param account The account to register.
274 * @param presence The presence. 274 * @param presence The presence.
275 */ 275 */
276 void gaim_account_set_presence(GaimAccount *account, GaimPresence *presence); 276 void gaim_account_set_presence(GaimAccount *account, GaimPresence *presence);
277 277
278 /** 278 /**
279 * Activates or deactivates a status. 279 * Activates or deactivates a status. All changes to the statuses of
280 * an account go through this function or gaim_account_set_status_vargs.
280 * 281 *
281 * Only independent statuses can be deactivated with this. To deactivate 282 * Only independent statuses can be deactivated with this. To deactivate
282 * an exclusive status, activate a different (and exclusive?) status. 283 * an exclusive status, activate a different (and exclusive?) status.
283 * 284 *
284 * @param account The account. 285 * @param account The account.
288 * new status, in an id, value pair. 289 * new status, in an id, value pair.
289 */ 290 */
290 void gaim_account_set_status(GaimAccount *account, const char *status_id, 291 void gaim_account_set_status(GaimAccount *account, const char *status_id,
291 gboolean active, ...); 292 gboolean active, ...);
292 293
294
295 /**
296 * Activates or deactivates a status. All changes to the statuses of
297 * an account go through this function or gaim_account_set_status.
298 *
299 * Only independent statuses can be deactivated with this. To deactivate
300 * an exclusive status, activate a different (and exclusive?) status.
301 *
302 * @param account The account.
303 * @param status_id The ID of the status.
304 * @param active The active state.
305 * @param vargs The va_list of attributes.
306 */
307 void gaim_account_set_status_vargs(GaimAccount *account,
308 const char *status_id,
309 gboolean active, va_list args);
310
293 /** 311 /**
294 * Clears all protocol-specific settings on an account. 312 * Clears all protocol-specific settings on an account.
295 * 313 *
296 * @param account The account. 314 * @param account The account.
297 */ 315 */
476 * @param account The account. 494 * @param account The account.
477 * 495 *
478 * @return The proxy information. 496 * @return The proxy information.
479 */ 497 */
480 GaimProxyInfo *gaim_account_get_proxy_info(const GaimAccount *account); 498 GaimProxyInfo *gaim_account_get_proxy_info(const GaimAccount *account);
499
500 /**
501 * Returns the active status for this account. This looks through
502 * the GaimPresence associated with this account and returns the
503 * GaimStatus that has its active flag set to "TRUE." There can be
504 * only one active GaimStatus in a GaimPresence.
505 *
506 * @param account The account.
507 *
508 * @return The active status.
509 */
510 GaimStatus *gaim_account_get_active_status(const GaimAccount *account);
481 511
482 /** 512 /**
483 * Returns the account status with the specified ID. 513 * Returns the account status with the specified ID.
484 * 514 *
485 * Note that this works differently than gaim_buddy_get_status() in that 515 * Note that this works differently than gaim_buddy_get_status() in that
667 * @param account The account. 697 * @param account The account.
668 */ 698 */
669 void gaim_accounts_delete(GaimAccount *account); 699 void gaim_accounts_delete(GaimAccount *account);
670 700
671 /** 701 /**
672 * Auto-logins to all accounts set to auto-login under the specified UI.
673 *
674 * @param ui The UI.
675 */
676 void gaim_accounts_auto_login(const char *ui);
677
678 /**
679 * Reorders an account. 702 * Reorders an account.
680 * 703 *
681 * @param account The account to reorder. 704 * @param account The account to reorder.
682 * @param new_index The new index for the account. 705 * @param new_index The new index for the account.
683 */ 706 */