11118
|
1 #include "module.h"
|
|
2
|
|
3 /* TODO
|
|
4
|
|
5
|
|
6 void
|
|
7 gaim_status_type_add_attrs(status_type, id, name, value, gaim_status_type_add_attrs)
|
|
8 Gaim::StatusType status_type
|
|
9 const char *id
|
|
10 const char *name
|
|
11 Gaim::Value value
|
|
12 ...
|
|
13
|
|
14
|
|
15 Gaim::StatusType
|
|
16 gaim_status_type_new_with_attrs(primitive, id, name, saveable, user_settable, independent, attr_id, attr_name, attr_value, gaim_status_type_new_with_attrs)
|
|
17 Gaim::StatusPrimitive primitive
|
|
18 const char *id
|
|
19 const char *name
|
|
20 gboolean saveable
|
|
21 gboolean user_settable
|
|
22 gboolean independent
|
|
23 const char *attr_id
|
|
24 const char *attr_name
|
|
25 Gaim::Value attr_value
|
|
26 ...
|
|
27
|
11290
|
28 */
|
|
29
|
|
30 MODULE = Gaim::Status PACKAGE = Gaim::Presence PREFIX = gaim_presence_
|
|
31 PROTOTYPES: ENABLE
|
|
32
|
11118
|
33 void
|
|
34 gaim_presence_add_list(presence, source_list)
|
|
35 Gaim::Presence presence
|
|
36 SV *source_list
|
|
37 PREINIT:
|
|
38 GList *t_GL;
|
|
39 int i, t_len;
|
|
40 PPCODE:
|
|
41 t_GL = NULL;
|
|
42 t_len = av_len((AV *)SvRV(source_list));
|
|
43
|
|
44 for (i = 0; i < t_len; i++) {
|
|
45 STRLEN t_sl;
|
|
46 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(source_list), i, 0), t_sl));
|
|
47 }
|
|
48 gaim_presence_add_list(presence, t_GL);
|
|
49
|
|
50 void
|
|
51 gaim_presence_add_status(presence, status)
|
|
52 Gaim::Presence presence
|
|
53 Gaim::Status status
|
|
54
|
|
55 gint
|
|
56 gaim_presence_compare(presence1, presence2)
|
|
57 Gaim::Presence presence1
|
|
58 Gaim::Presence presence2
|
|
59
|
|
60 void
|
|
61 gaim_presence_destroy(presence)
|
|
62 Gaim::Presence presence
|
|
63
|
|
64 Gaim::Account
|
|
65 gaim_presence_get_account(presence)
|
|
66 Gaim::Presence presence
|
|
67
|
|
68 Gaim::Status
|
|
69 gaim_presence_get_active_status(presence)
|
|
70 Gaim::Presence presence
|
|
71
|
|
72 void
|
|
73 gaim_presence_get_buddies(presence)
|
|
74 Gaim::Presence presence
|
|
75 PREINIT:
|
11130
|
76 const GList *l;
|
11118
|
77 PPCODE:
|
|
78 for (l = gaim_presence_get_buddies(presence); l != NULL; l = l->next) {
|
|
79 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListItem")));
|
|
80 }
|
|
81
|
|
82 const char *
|
|
83 gaim_presence_get_chat_user(presence)
|
|
84 Gaim::Presence presence
|
|
85
|
|
86 Gaim::PresenceContext
|
|
87 gaim_presence_get_context(presence)
|
|
88 Gaim::Presence presence
|
|
89
|
|
90 Gaim::Conversation
|
|
91 gaim_presence_get_conversation(presence)
|
|
92 Gaim::Presence presence
|
|
93
|
|
94 time_t
|
|
95 gaim_presence_get_idle_time(presence)
|
|
96 Gaim::Presence presence
|
|
97
|
|
98 time_t
|
|
99 gaim_presence_get_login_time(presence)
|
|
100 Gaim::Presence presence
|
|
101
|
|
102 Gaim::Status
|
|
103 gaim_presence_get_status(presence, status_id)
|
|
104 Gaim::Presence presence
|
|
105 const char *status_id
|
|
106
|
|
107 void
|
|
108 gaim_presence_get_statuses(presence)
|
|
109 Gaim::Presence presence
|
|
110 PREINIT:
|
11130
|
111 const GList *l;
|
11118
|
112 PPCODE:
|
|
113 for (l = gaim_presence_get_statuses(presence); l != NULL; l = l->next) {
|
|
114 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListItem")));
|
|
115 }
|
|
116
|
|
117 gboolean
|
|
118 gaim_presence_is_available(presence)
|
|
119 Gaim::Presence presence
|
|
120
|
|
121 gboolean
|
|
122 gaim_presence_is_idle(presence)
|
|
123 Gaim::Presence presence
|
|
124
|
|
125 gboolean
|
|
126 gaim_presence_is_online(presence)
|
|
127 Gaim::Presence presence
|
|
128
|
|
129 gboolean
|
|
130 gaim_presence_is_status_active(presence, status_id)
|
|
131 Gaim::Presence presence
|
|
132 const char *status_id
|
|
133
|
|
134 gboolean
|
|
135 gaim_presence_is_status_primitive_active(presence, primitive)
|
|
136 Gaim::Presence presence
|
|
137 Gaim::StatusPrimitive primitive
|
|
138
|
|
139 Gaim::Presence
|
|
140 gaim_presence_new(context)
|
|
141 Gaim::PresenceContext context
|
|
142
|
|
143 Gaim::Presence
|
|
144 gaim_presence_new_for_account(account)
|
|
145 Gaim::Account account
|
|
146
|
|
147 Gaim::Presence
|
|
148 gaim_presence_new_for_buddy(buddy)
|
|
149 Gaim::BuddyList::Buddy buddy
|
|
150
|
|
151 Gaim::Presence
|
|
152 gaim_presence_new_for_conv(conv)
|
|
153 Gaim::Conversation conv
|
|
154
|
|
155 void
|
|
156 gaim_presence_remove_buddy(presence, buddy)
|
|
157 Gaim::Presence presence
|
|
158 Gaim::BuddyList::Buddy buddy
|
|
159
|
|
160 void
|
|
161 gaim_presence_set_idle(presence, idle, idle_time)
|
|
162 Gaim::Presence presence
|
|
163 gboolean idle
|
|
164 time_t idle_time
|
|
165
|
|
166 void
|
|
167 gaim_presence_set_login_time(presence, login_time)
|
|
168 Gaim::Presence presence
|
|
169 time_t login_time
|
|
170
|
|
171 void
|
|
172 gaim_presence_set_status_active(presence, status_id, active)
|
|
173 Gaim::Presence presence
|
|
174 const char *status_id
|
|
175 gboolean active
|
|
176
|
|
177 void
|
|
178 gaim_presence_switch_status(presence, status_id)
|
|
179 Gaim::Presence presence
|
|
180 const char *status_id
|
|
181
|
|
182 const char *
|
|
183 gaim_primitive_get_id_from_type(type)
|
|
184 Gaim::StatusPrimitive type
|
|
185
|
|
186 const char *
|
|
187 gaim_primitive_get_name_from_type(type)
|
|
188 Gaim::StatusPrimitive type
|
|
189
|
|
190 Gaim::StatusPrimitive
|
|
191 gaim_primitive_get_type_from_id(id)
|
|
192 const char *id
|
|
193
|
|
194 MODULE = Gaim::Status PACKAGE = Gaim::Status PREFIX = gaim_status_
|
|
195 PROTOTYPES: ENABLE
|
|
196
|
|
197 void
|
|
198 gaim_status_attr_destroy(attr)
|
|
199 Gaim::StatusAttr attr
|
|
200
|
|
201 const char *
|
|
202 gaim_status_attr_get_id(attr)
|
|
203 Gaim::StatusAttr attr
|
|
204
|
|
205 const char *
|
|
206 gaim_status_attr_get_name(attr)
|
|
207 Gaim::StatusAttr attr
|
|
208
|
|
209 Gaim::Value
|
11249
|
210 gaim_status_attr_get_value(attr)
|
11118
|
211 Gaim::StatusAttr attr
|
|
212
|
|
213 Gaim::StatusAttr
|
|
214 gaim_status_attr_new(id, name, value_type)
|
|
215 const char *id
|
|
216 const char *name
|
|
217 Gaim::Value value_type
|
|
218
|
|
219 gint
|
|
220 gaim_status_compare(status1, status2)
|
|
221 Gaim::Status status1
|
|
222 Gaim::Status status2
|
|
223
|
|
224 void
|
|
225 gaim_status_destroy(status)
|
|
226 Gaim::Status status
|
|
227
|
|
228 gboolean
|
|
229 gaim_status_get_attr_boolean(status, id)
|
|
230 Gaim::Status status
|
|
231 const char *id
|
|
232
|
|
233 int
|
|
234 gaim_status_get_attr_int(status, id)
|
|
235 Gaim::Status status
|
|
236 const char *id
|
|
237
|
|
238 const char *
|
|
239 gaim_status_get_attr_string(status, id)
|
|
240 Gaim::Status status
|
|
241 const char *id
|
|
242
|
|
243 Gaim::Value
|
|
244 gaim_status_get_attr_value(status, id)
|
|
245 Gaim::Status status
|
|
246 const char *id
|
|
247
|
|
248 void *
|
|
249 gaim_status_get_handle()
|
|
250
|
|
251
|
|
252 const char *
|
|
253 gaim_status_get_id(status)
|
|
254 Gaim::Status status
|
|
255
|
|
256 const char *
|
|
257 gaim_status_get_name(status)
|
|
258 Gaim::Status status
|
|
259
|
|
260 Gaim::Presence
|
|
261 gaim_status_get_presence(status)
|
|
262 Gaim::Status status
|
|
263
|
|
264 Gaim::StatusType
|
|
265 gaim_status_get_type(status)
|
|
266 Gaim::Status status
|
|
267
|
|
268 void
|
|
269 gaim_status_init()
|
|
270
|
|
271
|
|
272 gboolean
|
|
273 gaim_status_is_active(status)
|
|
274 Gaim::Status status
|
|
275
|
|
276 gboolean
|
|
277 gaim_status_is_available(status)
|
|
278 Gaim::Status status
|
|
279
|
|
280 gboolean
|
|
281 gaim_status_is_exclusive(status)
|
|
282 Gaim::Status status
|
|
283
|
|
284 gboolean
|
|
285 gaim_status_is_independent(status)
|
|
286 Gaim::Status status
|
|
287
|
|
288 gboolean
|
|
289 gaim_status_is_online(status)
|
|
290 Gaim::Status status
|
|
291
|
|
292 Gaim::Status
|
|
293 gaim_status_new(status_type, presence)
|
|
294 Gaim::StatusType status_type
|
|
295 Gaim::Presence presence
|
|
296
|
|
297 void
|
|
298 gaim_status_set_active(status, active)
|
|
299 Gaim::Status status
|
|
300 gboolean active
|
|
301
|
|
302 void
|
|
303 gaim_status_set_active_with_attrs(status, active, args)
|
|
304 Gaim::Status status
|
|
305 gboolean active
|
|
306 va_list args
|
|
307
|
|
308 void
|
|
309 gaim_status_set_attr_boolean(status, id, value)
|
|
310 Gaim::Status status
|
|
311 const char *id
|
|
312 gboolean value
|
|
313
|
|
314 void
|
|
315 gaim_status_set_attr_string(status, id, value)
|
|
316 Gaim::Status status
|
|
317 const char *id
|
|
318 const char *value
|
|
319
|
|
320 void
|
|
321 gaim_status_type_add_attr(status_type, id, name, value)
|
|
322 Gaim::StatusType status_type
|
|
323 const char *id
|
|
324 const char *name
|
|
325 Gaim::Value value
|
|
326
|
|
327
|
|
328 void
|
|
329 gaim_status_type_add_attrs_vargs(status_type, args)
|
|
330 Gaim::StatusType status_type
|
|
331 va_list args
|
|
332
|
|
333 void
|
|
334 gaim_status_type_destroy(status_type)
|
|
335 Gaim::StatusType status_type
|
|
336
|
|
337 Gaim::StatusType
|
|
338 gaim_status_type_find_with_id(status_types, id)
|
|
339 SV *status_types
|
|
340 const char *id
|
|
341 PREINIT:
|
|
342 GList *t_GL;
|
|
343 int i, t_len;
|
11131
|
344 CODE:
|
11118
|
345 t_GL = NULL;
|
|
346 t_len = av_len((AV *)SvRV(status_types));
|
|
347
|
|
348 for (i = 0; i < t_len; i++) {
|
|
349 STRLEN t_sl;
|
|
350 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(status_types), i, 0), t_sl));
|
|
351 }
|
11170
|
352 RETVAL = (GaimStatusType *)gaim_status_type_find_with_id(t_GL, id);
|
|
353 OUTPUT:
|
|
354 RETVAL
|
11118
|
355
|
|
356 Gaim::StatusAttr
|
|
357 gaim_status_type_get_attr(status_type, id)
|
|
358 Gaim::StatusType status_type
|
|
359 const char *id
|
|
360
|
|
361 void
|
|
362 gaim_status_type_get_attrs(status_type)
|
|
363 Gaim::StatusType status_type
|
|
364 PREINIT:
|
11130
|
365 const GList *l;
|
11118
|
366 PPCODE:
|
|
367 for (l = gaim_status_type_get_attrs(status_type); l != NULL; l = l->next) {
|
|
368 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListItem")));
|
|
369 }
|
|
370
|
|
371 const char *
|
|
372 gaim_status_type_get_id(status_type)
|
|
373 Gaim::StatusType status_type
|
|
374
|
|
375 const char *
|
|
376 gaim_status_type_get_name(status_type)
|
|
377 Gaim::StatusType status_type
|
|
378
|
|
379 const char *
|
|
380 gaim_status_type_get_primary_attr(type)
|
|
381 Gaim::StatusType type
|
|
382
|
|
383 Gaim::StatusPrimitive
|
|
384 gaim_status_type_get_primitive(status_type)
|
|
385 Gaim::StatusType status_type
|
|
386
|
|
387 gboolean
|
|
388 gaim_status_type_is_available(status_type)
|
|
389 Gaim::StatusType status_type
|
|
390
|
|
391 gboolean
|
|
392 gaim_status_type_is_exclusive(status_type)
|
|
393 Gaim::StatusType status_type
|
|
394
|
|
395 gboolean
|
|
396 gaim_status_type_is_independent(status_type)
|
|
397 Gaim::StatusType status_type
|
|
398
|
|
399 gboolean
|
|
400 gaim_status_type_is_saveable(status_type)
|
|
401 Gaim::StatusType status_type
|
|
402
|
|
403 gboolean
|
|
404 gaim_status_type_is_user_settable(status_type)
|
|
405 Gaim::StatusType status_type
|
|
406
|
|
407 Gaim::StatusType
|
|
408 gaim_status_type_new(primitive, id, name, user_settable)
|
|
409 Gaim::StatusPrimitive primitive
|
|
410 const char *id
|
|
411 const char *name
|
|
412 gboolean user_settable
|
|
413
|
|
414 Gaim::StatusType
|
|
415 gaim_status_type_new_full(primitive, id, name, saveable, user_settable, independent)
|
|
416 Gaim::StatusPrimitive primitive
|
|
417 const char *id
|
|
418 const char *name
|
|
419 gboolean saveable
|
|
420 gboolean user_settable
|
|
421 gboolean independent
|
|
422
|
|
423 void
|
|
424 gaim_status_type_set_primary_attr(status_type, attr_id)
|
|
425 Gaim::StatusType status_type
|
|
426 const char *attr_id
|
|
427
|
|
428 void
|
|
429 gaim_status_uninit()
|
|
430
|
|
431
|