Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/account.h Sat Mar 26 19:19:33 2005 +0000 +++ b/src/account.h Sat Mar 26 20:08:43 2005 +0000 @@ -117,7 +117,7 @@ * * @return The gaim connection. */ -GaimConnection *gaim_account_connect(GaimAccount *account, GaimStatus *status); +GaimConnection *gaim_account_connect(GaimAccount *account); /** * Registers an account. @@ -276,7 +276,8 @@ void gaim_account_set_presence(GaimAccount *account, GaimPresence *presence); /** - * Activates or deactivates a status. + * Activates or deactivates a status. All changes to the statuses of + * an account go through this function or gaim_account_set_status_vargs. * * Only independent statuses can be deactivated with this. To deactivate * an exclusive status, activate a different (and exclusive?) status. @@ -290,6 +291,23 @@ void gaim_account_set_status(GaimAccount *account, const char *status_id, gboolean active, ...); + +/** + * Activates or deactivates a status. All changes to the statuses of + * an account go through this function or gaim_account_set_status. + * + * Only independent statuses can be deactivated with this. To deactivate + * an exclusive status, activate a different (and exclusive?) status. + * + * @param account The account. + * @param status_id The ID of the status. + * @param active The active state. + * @param vargs The va_list of attributes. + */ +void gaim_account_set_status_vargs(GaimAccount *account, + const char *status_id, + gboolean active, va_list args); + /** * Clears all protocol-specific settings on an account. * @@ -480,6 +498,18 @@ GaimProxyInfo *gaim_account_get_proxy_info(const GaimAccount *account); /** + * Returns the active status for this account. This looks through + * the GaimPresence associated with this account and returns the + * GaimStatus that has its active flag set to "TRUE." There can be + * only one active GaimStatus in a GaimPresence. + * + * @param account The account. + * + * @return The active status. + */ +GaimStatus *gaim_account_get_active_status(const GaimAccount *account); + +/** * Returns the account status with the specified ID. * * Note that this works differently than gaim_buddy_get_status() in that @@ -669,13 +699,6 @@ void gaim_accounts_delete(GaimAccount *account); /** - * Auto-logins to all accounts set to auto-login under the specified UI. - * - * @param ui The UI. - */ -void gaim_accounts_auto_login(const char *ui); - -/** * Reorders an account. * * @param account The account to reorder.