Mercurial > pidgin
comparison src/prefs.h @ 5561:d67b5b4e1323
[gaim-migrate @ 5962]
prefs just keeps getting cooler and cool
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 30 May 2003 04:05:48 +0000 |
parents | 7a64114641c3 |
children | 0bdfa28c678e |
comparison
equal
deleted
inserted
replaced
5560:b7319c094153 | 5561:d67b5b4e1323 |
---|---|
30 typedef enum _GaimPrefType | 30 typedef enum _GaimPrefType |
31 { | 31 { |
32 GAIM_PREF_NONE, | 32 GAIM_PREF_NONE, |
33 GAIM_PREF_BOOLEAN, | 33 GAIM_PREF_BOOLEAN, |
34 GAIM_PREF_INT, | 34 GAIM_PREF_INT, |
35 GAIM_PREF_STRING | 35 GAIM_PREF_STRING, |
36 GAIM_PREF_STRING_LIST | |
36 } GaimPrefType; | 37 } GaimPrefType; |
37 | 38 |
38 /** | 39 /** |
39 * Pref change callback type | 40 * Pref change callback type |
40 */ | 41 */ |
82 * @param value The initial value to set | 83 * @param value The initial value to set |
83 */ | 84 */ |
84 void gaim_prefs_add_string(const char *name, const char *value); | 85 void gaim_prefs_add_string(const char *name, const char *value); |
85 | 86 |
86 /** | 87 /** |
88 * Add a new string list pref. | |
89 * | |
90 * @param name The name of the pref | |
91 * @param value The initial value to set | |
92 */ | |
93 void gaim_prefs_add_string_list(const char *name, GList *value); | |
94 | |
95 /** | |
87 * Remove a pref. | 96 * Remove a pref. |
88 * | 97 * |
89 * @param name The name of the pref | 98 * @param name The name of the pref |
90 */ | 99 */ |
91 void gaim_prefs_remove(const char *name); | 100 void gaim_prefs_remove(const char *name); |
126 * @param value The value to set | 135 * @param value The value to set |
127 */ | 136 */ |
128 void gaim_prefs_set_string(const char *name, const char *value); | 137 void gaim_prefs_set_string(const char *name, const char *value); |
129 | 138 |
130 /** | 139 /** |
140 * Set string pref value | |
141 * | |
142 * @param name The name of the pref | |
143 * @param value The value to set | |
144 */ | |
145 void gaim_prefs_set_string_list(const char *name, GList *value); | |
146 | |
147 /** | |
131 * Get boolean pref value | 148 * Get boolean pref value |
132 * | 149 * |
133 * @param name The name of the pref | 150 * @param name The name of the pref |
134 * @return The value of the pref | 151 * @return The value of the pref |
135 */ | 152 */ |
148 * | 165 * |
149 * @param name The name of the pref | 166 * @param name The name of the pref |
150 * @return The value of the pref | 167 * @return The value of the pref |
151 */ | 168 */ |
152 const char *gaim_prefs_get_string(const char *name); | 169 const char *gaim_prefs_get_string(const char *name); |
170 | |
171 /** | |
172 * Get string pref value | |
173 * | |
174 * @param name The name of the pref | |
175 * @return The value of the pref | |
176 */ | |
177 GList *gaim_prefs_get_string_list(const char *name); | |
153 | 178 |
154 /** | 179 /** |
155 * Add a callback to a pref (and its children) | 180 * Add a callback to a pref (and its children) |
156 */ | 181 */ |
157 guint gaim_prefs_connect_callback(const char *name, GaimPrefCallback cb, | 182 guint gaim_prefs_connect_callback(const char *name, GaimPrefCallback cb, |