Mercurial > pidgin
comparison libpurple/accountopt.h @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | 98520ee78f12 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
26 #ifndef _PURPLE_ACCOUNTOPT_H_ | 26 #ifndef _PURPLE_ACCOUNTOPT_H_ |
27 #define _PURPLE_ACCOUNTOPT_H_ | 27 #define _PURPLE_ACCOUNTOPT_H_ |
28 | 28 |
29 #include "prefs.h" | 29 #include "prefs.h" |
30 | 30 |
31 /** | 31 /**************************************************************************/ |
32 * An option for an account. | 32 /** Data Structures */ |
33 * | 33 /**************************************************************************/ |
34 * This is set by protocol plugins, and appears in the account settings | 34 |
35 * dialogs. | 35 /** @copydoc _PurpleAccountOption */ |
36 */ | 36 typedef struct _PurpleAccountOption PurpleAccountOption; |
37 typedef struct | 37 /** @copydoc _PurpleAccountUserSplit */ |
38 { | 38 typedef struct _PurpleAccountUserSplit PurpleAccountUserSplit; |
39 PurplePrefType type; /**< The type of value. */ | 39 |
40 | 40 G_BEGIN_DECLS |
41 char *text; /**< The text that will appear to the user. */ | |
42 char *pref_name; /**< The name of the associated preference. */ | |
43 | |
44 union | |
45 { | |
46 gboolean boolean; /**< The default boolean value. */ | |
47 int integer; /**< The default integer value. */ | |
48 char *string; /**< The default string value. */ | |
49 GList *list; /**< The default list value. */ | |
50 | |
51 } default_value; | |
52 | |
53 gboolean masked; /**< Whether the value entered should be | |
54 * obscured from view (for passwords and | |
55 * similar options) | |
56 */ | |
57 } PurpleAccountOption; | |
58 | |
59 /** | |
60 * A username split. | |
61 * | |
62 * This is used by some protocols to separate the fields of the username | |
63 * into more human-readable components. | |
64 */ | |
65 typedef struct | |
66 { | |
67 char *text; /**< The text that will appear to the user. */ | |
68 char *default_value; /**< The default value. */ | |
69 char field_sep; /**< The field separator. */ | |
70 gboolean reverse; /**< TRUE if the separator should be found | |
71 starting a the end of the string, FALSE | |
72 otherwise */ | |
73 | |
74 } PurpleAccountUserSplit; | |
75 | |
76 #ifdef __cplusplus | |
77 extern "C" { | |
78 #endif | |
79 | 41 |
80 /**************************************************************************/ | 42 /**************************************************************************/ |
81 /** @name Account Option API */ | 43 /** @name Account Option API */ |
82 /**************************************************************************/ | 44 /**************************************************************************/ |
83 /*@{*/ | 45 /*@{*/ |
386 */ | 348 */ |
387 void purple_account_user_split_set_reverse(PurpleAccountUserSplit *split, gboolean reverse); | 349 void purple_account_user_split_set_reverse(PurpleAccountUserSplit *split, gboolean reverse); |
388 | 350 |
389 /*@}*/ | 351 /*@}*/ |
390 | 352 |
391 #ifdef __cplusplus | 353 G_END_DECLS |
392 } | |
393 #endif | |
394 | 354 |
395 #endif /* _PURPLE_ACCOUNTOPT_H_ */ | 355 #endif /* _PURPLE_ACCOUNTOPT_H_ */ |