accountopt.h
Go to the documentation of this file.
1 
6 /* purple
7  *
8  * Purple is the legal property of its developers, whose names are too numerous
9  * to list here. Please refer to the COPYRIGHT file distributed with this
10  * source distribution.
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25  */
26 #ifndef _PURPLE_ACCOUNTOPT_H_
27 #define _PURPLE_ACCOUNTOPT_H_
28 
29 #include "prefs.h"
30 
37 typedef struct
38 {
41  char *text;
42  char *pref_name;
44  union
45  {
46  gboolean boolean;
47  int integer;
48  char *string;
49  GList *list;
51  } default_value;
52 
53  gboolean masked;
58 
65 typedef struct
66 {
67  char *text;
68  char *default_value;
69  char field_sep;
70  gboolean reverse;
75 
76 #ifdef __cplusplus
77 extern "C" {
78 #endif
79 
80 /**************************************************************************/
82 /**************************************************************************/
98  const char *text, const char *pref_name);
99 
110  const char *pref_name, gboolean default_value);
111 
122  const char *pref_name, int default_value);
123 
134  const char *pref_name, const char *default_value);
135 
154  const char *pref_name, GList *list);
155 
162 
170  gboolean value);
171 
179  int value);
180 
188  const char *value);
189 
198 void
199 purple_account_option_set_masked(PurpleAccountOption *option, gboolean masked);
200 
213 void purple_account_option_set_list(PurpleAccountOption *option, GList *values);
214 
223  const char *key, const char *value);
224 
233 
241 const char *purple_account_option_get_text(const PurpleAccountOption *option);
242 
252 const char *purple_account_option_get_setting(const PurpleAccountOption *option);
253 
262 
271 
280  const PurpleAccountOption *option);
281 
290  const PurpleAccountOption *option);
291 
301 gboolean
303 
315 
319 /**************************************************************************/
321 /**************************************************************************/
334  const char *default_value,
335  char sep);
336 
343 
352 
361  const PurpleAccountUserSplit *split);
362 
371 
380 
388 
391 #ifdef __cplusplus
392 }
393 #endif
394 
395 #endif /* _PURPLE_ACCOUNTOPT_H_ */