Mercurial > pidgin
diff src/account.h @ 5777:1f786fb43ee6
[gaim-migrate @ 6202]
Added UI-specific account settings.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 06 Jun 2003 21:44:47 +0000 |
parents | dbac958d8937 |
children | 758fa27534b3 |
line wrap: on
line diff
--- a/src/account.h Fri Jun 06 16:53:22 2003 +0000 +++ b/src/account.h Fri Jun 06 21:44:47 2003 +0000 @@ -47,6 +47,7 @@ GaimConnection *gc; /**< The connection handle. */ GHashTable *settings; /**< Protocol-specific settings. */ + GHashTable *ui_settings; /**< UI-specific settings. */ GaimProxyInfo *proxy_info; /**< Proxy information. */ @@ -204,6 +205,38 @@ void gaim_account_set_bool(GaimAccount *account, const char *name, gboolean value); +/** + * Sets a UI-specific integer setting for an account. + * + * @param account The account. + * @param ui The UI name. + * @param name The name of the setting. + * @param value The setting's value. + */ +void gaim_account_set_ui_int(GaimAccount *account, const char *ui, + const char *name, int value); + +/** + * Sets a UI-specific string setting for an account. + * + * @param account The account. + * @param ui The UI name. + * @param name The name of the setting. + * @param value The setting's value. + */ +void gaim_account_set_ui_string(GaimAccount *account, const char *ui, + const char *name, const char *string); + +/** + * Sets a UI-specific boolean setting for an account. + * + * @param account The account. + * @param ui The UI name. + * @param name The name of the setting. + * @param value The setting's value. + */ +void gaim_account_set_ui_bool(GaimAccount *account, const char *ui, + const char *name, gboolean value); /** * Returns whether or not the account is connected. @@ -342,6 +375,46 @@ gboolean default_value); /** + * Returns a UI-specific integer setting for an account. + * + * @param account The account. + * @param ui The UI name. + * @param name The name of the setting. + * @param default_value The default value. + * + * @return The value. + */ +int gaim_account_get_ui_int(const GaimAccount *account, const char *ui, + const char *name, int default_value); + +/** + * Returns a UI-specific string setting for an account. + * + * @param account The account. + * @param ui The UI name. + * @param name The name of the setting. + * @param default_value The default value. + * + * @return The value. + */ +const char *gaim_account_get_ui_string(const GaimAccount *account, + const char *ui, const char *name, + const char *default_value); + +/** + * Returns a UI-specific boolean setting for an account. + * + * @param account The account. + * @param ui The UI name. + * @param name The name of the setting. + * @param default_value The default value. + * + * @return The value. + */ +gboolean gaim_account_get_ui_bool(const GaimAccount *account, const char *ui, + const char *name, gboolean default_value); + +/** * Loads the accounts. */ gboolean gaim_accounts_load();