comparison src/account.h @ 10400:6a043ae92db6

[gaim-migrate @ 11631] I'm about to go home for the holidays, so I figured I'd commit this before I left so someone else could pick up on it while I'm gone. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 19 Dec 2004 20:32:32 +0000
parents b234ad7e0dfe
children 16d63d8c26d8
comparison
equal deleted inserted replaced
10399:aab0c9508318 10400:6a043ae92db6
111 111
112 /** 112 /**
113 * Connects to an account. 113 * Connects to an account.
114 * 114 *
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 * 117 *
117 * @return The gaim connection. 118 * @return The gaim connection.
118 */ 119 */
119 GaimConnection *gaim_account_connect(GaimAccount *account); 120 GaimConnection *gaim_account_connect(GaimAccount *account, GaimStatus *status);
120 121
121 /** 122 /**
122 * Registers an account. 123 * Registers an account.
123 * 124 *
124 * @param account The account to register. 125 * @param account The account to register.
238 * @param value @c TRUE if it should check for mail. 239 * @param value @c TRUE if it should check for mail.
239 */ 240 */
240 void gaim_account_set_check_mail(GaimAccount *account, gboolean value); 241 void gaim_account_set_check_mail(GaimAccount *account, gboolean value);
241 242
242 /** 243 /**
243 * Sets whether or not this account should auto-login for the specified 244 * Sets whether or not this account is enabled for the specified
244 * UI. 245 * UI.
245 * 246 *
246 * @param account The account. 247 * @param account The account.
247 * @param ui The UI. 248 * @param ui The UI.
248 * @param value @c TRUE if it should check for mail. 249 * @param value @c TRUE if it is enabled.
249 */ 250 */
250 void gaim_account_set_auto_login(GaimAccount *account, const char *ui, 251 void gaim_account_set_enabled(GaimAccount *account, const char *ui,
251 gboolean value); 252 gboolean value);
252 253
253 /** 254 /**
254 * Sets the account's proxy information. 255 * Sets the account's proxy information.
255 * 256 *
256 * @param account The account. 257 * @param account The account.
456 * @return @c TRUE if it should check for mail. 457 * @return @c TRUE if it should check for mail.
457 */ 458 */
458 gboolean gaim_account_get_check_mail(const GaimAccount *account); 459 gboolean gaim_account_get_check_mail(const GaimAccount *account);
459 460
460 /** 461 /**
461 * Returns whether or not this account should auto-login for the 462 * Returns whether or not this account is enabled for the
462 * specified UI. 463 * specified UI.
463 * 464 *
464 * @param account The account. 465 * @param account The account.
465 * @param ui The UI. 466 * @param ui The UI.
466 * 467 *
467 * @return @c TRUE if it should auto-login on this UI. 468 * @return @c TRUE if it enabled on this UI.
468 */ 469 */
469 gboolean gaim_account_get_auto_login(const GaimAccount *account, 470 gboolean gaim_account_get_enabled(const GaimAccount *account,
470 const char *ui); 471 const char *ui);
471 472
472 /** 473 /**
473 * Returns the account's proxy information. 474 * Returns the account's proxy information.
474 * 475 *
475 * @param account The account. 476 * @param account The account.
693 * @return A list of all accounts. 694 * @return A list of all accounts.
694 */ 695 */
695 GList *gaim_accounts_get_all(void); 696 GList *gaim_accounts_get_all(void);
696 697
697 /** 698 /**
699 * Returns a list of all enabled accounts
700 *
701 * @return A list of all enabled accounts.
702 */
703 GList *gaim_accounts_get_all_active(void);
704
705 /**
698 * Finds an account with the specified name and protocol id. 706 * Finds an account with the specified name and protocol id.
699 * 707 *
700 * @param name The account username. 708 * @param name The account username.
701 * @param protocol The account protocol ID. 709 * @param protocol The account protocol ID.
702 * 710 *