11118
|
1 #include "module.h"
|
|
2
|
|
3 MODULE = Gaim::Account::Option PACKAGE = Gaim::Account::Option PREFIX = gaim_account_option_
|
|
4 PROTOTYPES: ENABLE
|
|
5
|
|
6 void
|
|
7 gaim_account_option_destroy(option)
|
|
8 Gaim::Account::Option option
|
|
9
|
|
10 const char *
|
|
11 gaim_account_option_get_default_string(option)
|
|
12 Gaim::Account::Option option
|
|
13
|
|
14 void
|
|
15 gaim_account_option_add_list_item(option, key, value)
|
|
16 Gaim::Account::Option option
|
|
17 const char * key
|
|
18 const char * value
|
|
19
|
|
20 void
|
|
21 gaim_account_option_set_default_string(option, value);
|
|
22 Gaim::Account::Option option
|
|
23 const char * value
|
|
24
|
|
25 void
|
|
26 gaim_account_option_set_default_int(option, value);
|
|
27 Gaim::Account::Option option
|
|
28 int value
|
|
29
|
|
30 void
|
|
31 gaim_account_option_set_default_bool(option, value);
|
|
32 Gaim::Account::Option option
|
|
33 gboolean value
|
|
34
|
|
35 Gaim::Account::Option
|
12364
|
36 gaim_account_option_list_new(class, text, pref_name, values)
|
11118
|
37 const char * text
|
|
38 const char * pref_name
|
|
39 SV * values
|
|
40 PREINIT:
|
|
41 GList *t_GL;
|
|
42 int i, t_len;
|
11131
|
43 CODE:
|
11118
|
44 t_GL = NULL;
|
|
45 t_len = av_len((AV *)SvRV(values));
|
|
46
|
|
47 for (i = 0; i < t_len; i++) {
|
|
48 STRLEN t_sl;
|
|
49 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(values), i, 0), t_sl));
|
|
50 }
|
11131
|
51 RETVAL = gaim_account_option_list_new(text, pref_name, t_GL);
|
|
52 OUTPUT:
|
|
53 RETVAL
|
11118
|
54
|
|
55 Gaim::Account::Option
|
12364
|
56 gaim_account_option_string_new(class, text, pref_name, default_value)
|
11118
|
57 const char * text
|
|
58 const char * pref_name
|
|
59 const char * default_value
|
12364
|
60 C_ARGS:
|
|
61 text, pref_name, default_value
|
11118
|
62
|
|
63 Gaim::Account::Option
|
12364
|
64 gaim_account_option_int_new(class, text, pref_name, default_value)
|
11118
|
65 const char * text
|
|
66 const char * pref_name
|
|
67 gboolean default_value
|
12364
|
68 C_ARGS:
|
|
69 text, pref_name, default_value
|
11118
|
70
|
|
71 Gaim::Account::Option
|
12364
|
72 gaim_account_option_bool_new(class, text, pref_name, default_value)
|
11118
|
73 const char * text
|
|
74 const char * pref_name
|
|
75 gboolean default_value
|
12364
|
76 C_ARGS:
|
|
77 text, pref_name, default_value
|
11118
|
78
|
|
79 Gaim::Account::Option
|
12364
|
80 gaim_account_option_new(class, type, text, pref_name)
|
11118
|
81 Gaim::PrefType type
|
|
82 const char * text
|
|
83 const char * pref_name
|
12364
|
84 C_ARGS:
|
|
85 type, text, pref_name
|
11118
|
86
|
|
87 void
|
|
88 gaim_account_option_get_list(option)
|
|
89 Gaim::Account::Option option
|
|
90 PREINIT:
|
11130
|
91 const GList *l;
|
11118
|
92 PPCODE:
|
|
93 for (l = gaim_account_option_get_list(option); l != NULL; l = l->next) {
|
|
94 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
|
|
95 }
|
|
96
|
|
97 Gaim::PrefType
|
|
98 gaim_account_option_get_type(option)
|
|
99 Gaim::Account::Option option
|
|
100
|
|
101 gboolean
|
|
102 gaim_account_option_get_masked(option)
|
|
103 Gaim::Account::Option option
|
|
104
|
|
105 int
|
|
106 gaim_account_option_get_default_int(option)
|
|
107 Gaim::Account::Option option;
|
|
108 INIT:
|
|
109
|
|
110 gboolean
|
|
111 gaim_account_option_get_default_bool(option)
|
|
112 Gaim::Account::Option option;
|
|
113
|
|
114 const char *
|
|
115 gaim_account_option_get_setting(option)
|
|
116 Gaim::Account::Option option
|
|
117
|
|
118 const char *
|
|
119 gaim_account_option_get_text(option)
|
|
120 Gaim::Account::Option option
|
|
121
|
|
122 void
|
|
123 gaim_account_option_set_list(option, values)
|
|
124 Gaim::Account::Option option
|
|
125 SV * values
|
|
126 PREINIT:
|
|
127 GList *t_GL;
|
|
128 int i, t_len;
|
|
129 PPCODE:
|
|
130 t_GL = NULL;
|
|
131 t_len = av_len((AV *)SvRV(values));
|
|
132
|
|
133 for (i = 0; i < t_len; i++) {
|
|
134 STRLEN t_sl;
|
|
135 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(values), i, 0), t_sl));
|
|
136 }
|
|
137 gaim_account_option_set_list(option, t_GL);
|
|
138
|
|
139 void
|
|
140 gaim_account_option_set_masked(option, masked)
|
|
141 Gaim::Account::Option option
|
|
142 gboolean masked
|
|
143
|
|
144 MODULE = Gaim::Account::Option PACKAGE = Gaim::Account::UserSplit PREFIX = gaim_account_user_split_
|
|
145 PROTOTYPES: ENABLE
|
|
146
|
|
147 Gaim::Account::UserSplit
|
12364
|
148 gaim_account_user_split_new(class, text, default_value, sep)
|
11118
|
149 const char * text
|
|
150 const char * default_value
|
|
151 char sep
|
12364
|
152 C_ARGS:
|
|
153 text, default_value, sep
|
11118
|
154
|
|
155 char
|
|
156 gaim_account_user_split_get_separator(split)
|
|
157 Gaim::Account::UserSplit split
|
|
158
|
|
159 const char *
|
|
160 gaim_account_user_split_get_text(split)
|
|
161 Gaim::Account::UserSplit split
|
|
162
|
|
163 void
|
|
164 gaim_account_user_split_destroy(split)
|
|
165 Gaim::Account::UserSplit split
|