Mercurial > pidgin.yaz
comparison src/accountopt.h @ 10658:61930cadca7c
[gaim-migrate @ 12190]
sf patch #1108846, from Richard Laager
This patch allows one to create protocol plugin options which
are masked. This is useful for storing passwords, etc. This
patch implements functions similar to the masking functions for
general plugin preferences.
I'm submitting this for inclusion in Gaim because I've written a
plugin which hides the NickServ or Q (for QuakeNet)
authentication details from the user. It makes IRC feel more
like the other protocols in Gaim. I'd like to have the
passwords masked in the preferences to match other
password fields in Gaim. This is the only change to Gaim I
need for my plugin to work.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 06 Mar 2005 06:14:26 +0000 |
parents | db62420a53a2 |
children | 36a0c8719af3 |
comparison
equal
deleted
inserted
replaced
10657:3f7508b1531f | 10658:61930cadca7c |
---|---|
47 char *string; /**< The default string value. */ | 47 char *string; /**< The default string value. */ |
48 GList *list; /**< The default list value. */ | 48 GList *list; /**< The default list value. */ |
49 | 49 |
50 } default_value; | 50 } default_value; |
51 | 51 |
52 gboolean masked; | |
53 | |
52 } GaimAccountOption; | 54 } GaimAccountOption; |
53 | 55 |
54 /** | 56 /** |
55 * A username split. | 57 * A username split. |
56 * | 58 * |
177 */ | 179 */ |
178 void gaim_account_option_set_default_string(GaimAccountOption *option, | 180 void gaim_account_option_set_default_string(GaimAccountOption *option, |
179 const char *value); | 181 const char *value); |
180 | 182 |
181 /** | 183 /** |
184 * Sets the masking for an account option. | |
185 * | |
186 * @param option The account option. | |
187 * @param masked The masking. | |
188 */ | |
189 void | |
190 gaim_account_option_set_masked(GaimAccountOption *option, gboolean masked); | |
191 | |
192 /** | |
182 * Sets the list values for an account option. | 193 * Sets the list values for an account option. |
183 * | 194 * |
184 * The list passed will be owned by the account option, and the | 195 * The list passed will be owned by the account option, and the |
185 * strings inside will be freed automatically. | 196 * strings inside will be freed automatically. |
186 * | 197 * |
254 * | 265 * |
255 * @return The default string value. | 266 * @return The default string value. |
256 */ | 267 */ |
257 const char *gaim_account_option_get_default_string( | 268 const char *gaim_account_option_get_default_string( |
258 const GaimAccountOption *option); | 269 const GaimAccountOption *option); |
270 | |
271 /** | |
272 * Returns the masking for an account option. | |
273 * | |
274 * @param option The account option. | |
275 * | |
276 * @return The masking. | |
277 */ | |
278 gboolean | |
279 gaim_account_option_get_masked(const GaimAccountOption *option); | |
259 | 280 |
260 /** | 281 /** |
261 * Returns the list values for an account option. | 282 * Returns the list values for an account option. |
262 * | 283 * |
263 * @param option The account option. | 284 * @param option The account option. |