Mercurial > pidgin.yaz
comparison libpurple/accountopt.h @ 32827:4a34689eeb33 default tip
merged from im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 19 Nov 2011 14:42:54 +0900 |
parents | 6e27091869eb |
children |
comparison
equal
deleted
inserted
replaced
32692:0f94ec89f0bc | 32827:4a34689eeb33 |
---|---|
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 | |
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 | 40 |
76 #ifdef __cplusplus | 41 #ifdef __cplusplus |
77 extern "C" { | 42 extern "C" { |
78 #endif | 43 #endif |
79 | 44 |