| |
1 #include "module.h" |
| |
2 |
| |
3 MODULE = Gaim::Account PACKAGE = Gaim::Account PREFIX = gaim_account_ |
| |
4 PROTOTYPES: ENABLE |
| |
5 |
| |
6 Gaim::Presence |
| |
7 gaim_account_get_presence(account) |
| |
8 Gaim::Account account |
| |
9 |
| |
10 Gaim::Account |
| |
11 gaim_account_new(class, username, protocol_id) |
| |
12 const char * username |
| |
13 const char * protocol_id |
| |
14 C_ARGS: |
| |
15 username, protocol_id |
| |
16 |
| |
17 void |
| |
18 gaim_account_destroy(account) |
| |
19 Gaim::Account account |
| |
20 |
| |
21 void |
| |
22 gaim_account_connect(account) |
| |
23 Gaim::Account account |
| |
24 |
| |
25 void |
| |
26 gaim_account_register(account) |
| |
27 Gaim::Account account |
| |
28 |
| |
29 void |
| |
30 gaim_account_disconnect(account) |
| |
31 Gaim::Account account |
| |
32 |
| |
33 void |
| |
34 gaim_account_request_change_password(account) |
| |
35 Gaim::Account account |
| |
36 |
| |
37 void |
| |
38 gaim_account_request_change_user_info(account) |
| |
39 Gaim::Account account |
| |
40 |
| |
41 void |
| |
42 gaim_account_set_username(account, username) |
| |
43 Gaim::Account account |
| |
44 const char * username |
| |
45 |
| |
46 void |
| |
47 gaim_account_set_password(account, password) |
| |
48 Gaim::Account account |
| |
49 const char * password |
| |
50 |
| |
51 void |
| |
52 gaim_account_set_alias(account, alias) |
| |
53 Gaim::Account account |
| |
54 const char * alias |
| |
55 |
| |
56 void |
| |
57 gaim_account_set_user_info(account, user_info) |
| |
58 Gaim::Account account |
| |
59 const char *user_info |
| |
60 |
| |
61 void |
| |
62 gaim_account_set_buddy_icon(account, icon) |
| |
63 Gaim::Account account |
| |
64 const char *icon |
| |
65 |
| |
66 void |
| |
67 gaim_account_set_connection(account, gc) |
| |
68 Gaim::Account account |
| |
69 Gaim::Connection gc |
| |
70 |
| |
71 void |
| |
72 gaim_account_set_remember_password(account, value) |
| |
73 Gaim::Account account |
| |
74 gboolean value |
| |
75 |
| |
76 void |
| |
77 gaim_account_set_check_mail(account, value) |
| |
78 Gaim::Account account |
| |
79 gboolean value |
| |
80 |
| |
81 void gaim_account_set_enabled(account, ui, value) |
| |
82 Gaim::Account account |
| |
83 const char *ui |
| |
84 gboolean value |
| |
85 |
| |
86 void |
| |
87 gaim_account_set_proxy_info(account, info) |
| |
88 Gaim::Account account |
| |
89 Gaim::ProxyInfo info |
| |
90 |
| |
91 void |
| |
92 gaim_account_set_status(account, status_id, active) |
| |
93 Gaim::Account account |
| |
94 const char *status_id |
| |
95 gboolean active |
| |
96 CODE: |
| |
97 gaim_account_set_status(account, status_id, active, NULL); |
| |
98 |
| |
99 void |
| |
100 gaim_account_set_status_types(account, status_types) |
| |
101 Gaim::Account account |
| |
102 SV * status_types |
| |
103 PREINIT: |
| |
104 GList *t_GL; |
| |
105 int i, t_len; |
| |
106 PPCODE: |
| |
107 t_GL = NULL; |
| |
108 t_len = av_len((AV *)SvRV(status_types)); |
| |
109 |
| |
110 for (i = 0; i < t_len; i++) { |
| |
111 STRLEN t_sl; |
| |
112 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(status_types), i, 0), t_sl)); |
| |
113 } |
| |
114 gaim_account_set_status_types(account, t_GL); |
| |
115 |
| |
116 void |
| |
117 gaim_account_clear_settings(account) |
| |
118 Gaim::Account account |
| |
119 |
| |
120 void |
| |
121 gaim_account_set_int(account, name, value) |
| |
122 Gaim::Account account |
| |
123 const char *name |
| |
124 int value |
| |
125 |
| |
126 gboolean |
| |
127 gaim_account_is_connected(account) |
| |
128 Gaim::Account account |
| |
129 |
| |
130 const char * |
| |
131 gaim_account_get_username(account) |
| |
132 Gaim::Account account |
| |
133 |
| |
134 const char * |
| |
135 gaim_account_get_password(account) |
| |
136 Gaim::Account account |
| |
137 |
| |
138 const char * |
| |
139 gaim_account_get_alias(account) |
| |
140 Gaim::Account account |
| |
141 |
| |
142 const char * |
| |
143 gaim_account_get_user_info(account) |
| |
144 Gaim::Account account |
| |
145 |
| |
146 const char * |
| |
147 gaim_account_get_buddy_icon(account) |
| |
148 Gaim::Account account |
| |
149 |
| |
150 const char * |
| |
151 gaim_account_get_protocol_id(account) |
| |
152 Gaim::Account account |
| |
153 |
| |
154 const char * |
| |
155 gaim_account_get_protocol_name(account) |
| |
156 Gaim::Account account |
| |
157 |
| |
158 Gaim::Connection |
| |
159 gaim_account_get_connection(account) |
| |
160 Gaim::Account account |
| |
161 |
| |
162 gboolean |
| |
163 gaim_account_get_remember_password(account) |
| |
164 Gaim::Account account |
| |
165 |
| |
166 gboolean |
| |
167 gaim_account_get_check_mail(account) |
| |
168 Gaim::Account account |
| |
169 |
| |
170 gboolean |
| |
171 gaim_account_get_enabled(account, ui) |
| |
172 Gaim::Account account |
| |
173 const char *ui |
| |
174 |
| |
175 Gaim::ProxyInfo |
| |
176 gaim_account_get_proxy_info(account) |
| |
177 Gaim::Account account |
| |
178 |
| |
179 Gaim::Status |
| |
180 gaim_account_get_active_status(account) |
| |
181 Gaim::Account account |
| |
182 |
| |
183 void |
| |
184 gaim_account_get_status_types(account) |
| |
185 Gaim::Account account |
| |
186 PREINIT: |
| |
187 const GList *l; |
| |
188 PPCODE: |
| |
189 for (l = gaim_account_get_status_types(account); l != NULL; l = l->next) { |
| |
190 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::StatusType"))); |
| |
191 } |
| |
192 |
| |
193 Gaim::Log |
| |
194 gaim_account_get_log(account, create) |
| |
195 Gaim::Account account |
| |
196 gboolean create |
| |
197 |
| |
198 void |
| |
199 gaim_account_destroy_log(account) |
| |
200 Gaim::Account account |
| |
201 |
| |
202 void |
| |
203 gaim_account_add_buddies(account, list) |
| |
204 Gaim::Account account |
| |
205 SV * list |
| |
206 PREINIT: |
| |
207 GList *t_GL; |
| |
208 int i, t_len; |
| |
209 PPCODE: |
| |
210 t_GL = NULL; |
| |
211 t_len = av_len((AV *)SvRV(list)); |
| |
212 |
| |
213 for (i = 0; i < t_len; i++) { |
| |
214 STRLEN t_sl; |
| |
215 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(list), i, 0), t_sl)); |
| |
216 } |
| |
217 gaim_account_add_buddies(account, t_GL); |
| |
218 |
| |
219 void |
| |
220 gaim_account_add_buddy(account, buddy) |
| |
221 Gaim::Account account |
| |
222 Gaim::BuddyList::Buddy buddy |
| |
223 |
| |
224 void |
| |
225 gaim_account_change_password(account, a, b) |
| |
226 Gaim::Account account |
| |
227 const char * a |
| |
228 const char * b |
| |
229 |
| |
230 void |
| |
231 gaim_account_remove_buddies(account, A, B) |
| |
232 Gaim::Account account |
| |
233 SV * A |
| |
234 SV * B |
| |
235 PREINIT: |
| |
236 GList *t_GL1, *t_GL2; |
| |
237 int i, t_len; |
| |
238 PPCODE: |
| |
239 t_GL1 = NULL; |
| |
240 t_len = av_len((AV *)SvRV(A)); |
| |
241 |
| |
242 for (i = 0; i < t_len; i++) { |
| |
243 STRLEN t_sl; |
| |
244 t_GL1 = g_list_append(t_GL1, SvPV(*av_fetch((AV *)SvRV(A), i, 0), t_sl)); |
| |
245 } |
| |
246 |
| |
247 t_GL2 = NULL; |
| |
248 t_len = av_len((AV *)SvRV(B)); |
| |
249 |
| |
250 for (i = 0; i < t_len; i++) { |
| |
251 STRLEN t_sl; |
| |
252 t_GL2 = g_list_append(t_GL2, SvPV(*av_fetch((AV *)SvRV(B), i, 0), t_sl)); |
| |
253 } |
| |
254 gaim_account_remove_buddies(account, t_GL1, t_GL2); |
| |
255 |
| |
256 void |
| |
257 gaim_account_remove_buddy(account, buddy, group) |
| |
258 Gaim::Account account |
| |
259 Gaim::BuddyList::Buddy buddy |
| |
260 Gaim::BuddyList::Group group |
| |
261 |
| |
262 void |
| |
263 gaim_account_remove_group(account, group) |
| |
264 Gaim::Account account |
| |
265 Gaim::BuddyList::Group group |
| |
266 |
| |
267 MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_ |
| |
268 PROTOTYPES: ENABLE |
| |
269 |
| |
270 void |
| |
271 gaim_accounts_add(account) |
| |
272 Gaim::Account account |
| |
273 |
| |
274 void |
| |
275 gaim_accounts_remove(account) |
| |
276 Gaim::Account account |
| |
277 |
| |
278 void |
| |
279 gaim_accounts_delete(account) |
| |
280 Gaim::Account account |
| |
281 |
| |
282 void |
| |
283 gaim_accounts_reorder(account, new_index) |
| |
284 Gaim::Account account |
| |
285 size_t new_index |
| |
286 |
| |
287 void |
| |
288 gaim_accounts_get_all() |
| |
289 PREINIT: |
| |
290 GList *l; |
| |
291 PPCODE: |
| |
292 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) { |
| |
293 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); |
| |
294 } |
| |
295 |
| |
296 void |
| |
297 gaim_accounts_get_all_active() |
| |
298 PREINIT: |
| |
299 GList *list, *iter; |
| |
300 PPCODE: |
| |
301 list = gaim_accounts_get_all_active(); |
| |
302 for (iter = list; iter != NULL; iter = iter->next) { |
| |
303 XPUSHs(sv_2mortal(gaim_perl_bless_object(iter->data, "Gaim::Account"))); |
| |
304 } |
| |
305 g_list_free(list); |
| |
306 |
| |
307 Gaim::Account |
| |
308 gaim_accounts_find(name, protocol) |
| |
309 const char * name |
| |
310 const char * protocol |
| |
311 |
| |
312 void |
| |
313 gaim_accounts_set_ui_ops(ops) |
| |
314 Gaim::Account::UiOps ops |
| |
315 |
| |
316 Gaim::Account::UiOps |
| |
317 gaim_accounts_get_ui_ops() |
| |
318 |
| |
319 Gaim::Handle |
| |
320 gaim_accounts_get_handle() |
| |
321 |
| |
322 void |
| |
323 gaim_accounts_init() |
| |
324 |
| |
325 void |
| |
326 gaim_accounts_uninit() |