comparison 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
comparison
equal deleted inserted replaced
5776:147f4c25af15 5777:1f786fb43ee6
45 char *protocol_id; /**< The ID of the protocol. */ 45 char *protocol_id; /**< The ID of the protocol. */
46 46
47 GaimConnection *gc; /**< The connection handle. */ 47 GaimConnection *gc; /**< The connection handle. */
48 48
49 GHashTable *settings; /**< Protocol-specific settings. */ 49 GHashTable *settings; /**< Protocol-specific settings. */
50 GHashTable *ui_settings; /**< UI-specific settings. */
50 51
51 GaimProxyInfo *proxy_info; /**< Proxy information. */ 52 GaimProxyInfo *proxy_info; /**< Proxy information. */
52 53
53 GSList *permit; /**< Permit list. */ 54 GSList *permit; /**< Permit list. */
54 GSList *deny; /**< Deny list. */ 55 GSList *deny; /**< Deny list. */
202 * @param value The setting's value. 203 * @param value The setting's value.
203 */ 204 */
204 void gaim_account_set_bool(GaimAccount *account, const char *name, 205 void gaim_account_set_bool(GaimAccount *account, const char *name,
205 gboolean value); 206 gboolean value);
206 207
208 /**
209 * Sets a UI-specific integer setting for an account.
210 *
211 * @param account The account.
212 * @param ui The UI name.
213 * @param name The name of the setting.
214 * @param value The setting's value.
215 */
216 void gaim_account_set_ui_int(GaimAccount *account, const char *ui,
217 const char *name, int value);
218
219 /**
220 * Sets a UI-specific string setting for an account.
221 *
222 * @param account The account.
223 * @param ui The UI name.
224 * @param name The name of the setting.
225 * @param value The setting's value.
226 */
227 void gaim_account_set_ui_string(GaimAccount *account, const char *ui,
228 const char *name, const char *string);
229
230 /**
231 * Sets a UI-specific boolean setting for an account.
232 *
233 * @param account The account.
234 * @param ui The UI name.
235 * @param name The name of the setting.
236 * @param value The setting's value.
237 */
238 void gaim_account_set_ui_bool(GaimAccount *account, const char *ui,
239 const char *name, gboolean value);
207 240
208 /** 241 /**
209 * Returns whether or not the account is connected. 242 * Returns whether or not the account is connected.
210 * 243 *
211 * @param account The account. 244 * @param account The account.
340 */ 373 */
341 gboolean gaim_account_get_bool(const GaimAccount *account, const char *name, 374 gboolean gaim_account_get_bool(const GaimAccount *account, const char *name,
342 gboolean default_value); 375 gboolean default_value);
343 376
344 /** 377 /**
378 * Returns a UI-specific integer setting for an account.
379 *
380 * @param account The account.
381 * @param ui The UI name.
382 * @param name The name of the setting.
383 * @param default_value The default value.
384 *
385 * @return The value.
386 */
387 int gaim_account_get_ui_int(const GaimAccount *account, const char *ui,
388 const char *name, int default_value);
389
390 /**
391 * Returns a UI-specific string setting for an account.
392 *
393 * @param account The account.
394 * @param ui The UI name.
395 * @param name The name of the setting.
396 * @param default_value The default value.
397 *
398 * @return The value.
399 */
400 const char *gaim_account_get_ui_string(const GaimAccount *account,
401 const char *ui, const char *name,
402 const char *default_value);
403
404 /**
405 * Returns a UI-specific boolean setting for an account.
406 *
407 * @param account The account.
408 * @param ui The UI name.
409 * @param name The name of the setting.
410 * @param default_value The default value.
411 *
412 * @return The value.
413 */
414 gboolean gaim_account_get_ui_bool(const GaimAccount *account, const char *ui,
415 const char *name, gboolean default_value);
416
417 /**
345 * Loads the accounts. 418 * Loads the accounts.
346 */ 419 */
347 gboolean gaim_accounts_load(); 420 gboolean gaim_accounts_load();
348 421
349 /** 422 /**