| |
1 #include "module.h" |
| |
2 |
| |
3 MODULE = Gaim::Conversation PACKAGE = Gaim::Conversation PREFIX = gaim_conversation_ |
| |
4 PROTOTYPES: ENABLE |
| |
5 |
| |
6 void |
| |
7 gaim_conversation_set_account(conv, account) |
| |
8 Gaim::Conversation conv |
| |
9 Gaim::Account account |
| |
10 |
| |
11 Gaim::Account |
| |
12 gaim_conversation_get_account(conv) |
| |
13 Gaim::Conversation conv |
| |
14 |
| |
15 Gaim::Connection |
| |
16 gaim_conversation_get_gc(conv) |
| |
17 Gaim::Conversation conv |
| |
18 |
| |
19 void |
| |
20 gaim_conversation_set_title(conv, title) |
| |
21 Gaim::Conversation conv |
| |
22 const char *title |
| |
23 |
| |
24 void |
| |
25 gaim_conversation_autoset_title(conv) |
| |
26 Gaim::Conversation conv |
| |
27 |
| |
28 int |
| |
29 gaim_conversation_get_index(conv) |
| |
30 Gaim::Conversation conv |
| |
31 |
| |
32 const char * |
| |
33 gaim_conversation_get_name(conv) |
| |
34 Gaim::Conversation conv |
| |
35 |
| |
36 void |
| |
37 gaim_conversation_set_logging(conv, log) |
| |
38 Gaim::Conversation conv |
| |
39 gboolean log |
| |
40 |
| |
41 gboolean |
| |
42 gaim_conversation_is_logging(conv) |
| |
43 Gaim::Conversation conv |
| |
44 |
| |
45 Gaim::ConvWindow |
| |
46 gaim_conversation_get_window(conv) |
| |
47 Gaim::Conversation conv |
| |
48 |
| |
49 gboolean |
| |
50 is_chat(conv) |
| |
51 Gaim::Conversation conv |
| |
52 CODE: |
| |
53 RETVAL = (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT); |
| |
54 OUTPUT: |
| |
55 RETVAL |
| |
56 |
| |
57 gboolean |
| |
58 is_im(conv) |
| |
59 Gaim::Conversation conv |
| |
60 CODE: |
| |
61 RETVAL = (gaim_conversation_get_type(conv) == GAIM_CONV_IM); |
| |
62 OUTPUT: |
| |
63 RETVAL |
| |
64 |
| |
65 void |
| |
66 gaim_conversation_set_data(conv, key, data) |
| |
67 Gaim::Conversation conv |
| |
68 const char *key |
| |
69 void *data |
| |
70 |
| |
71 void * |
| |
72 gaim_conversation_get_data(conv, key) |
| |
73 Gaim::Conversation conv |
| |
74 const char *key |
| |
75 |
| |
76 void |
| |
77 gaim_conversation_write(conv, who, message, flags) |
| |
78 Gaim::Conversation conv |
| |
79 const char *who |
| |
80 const char *message |
| |
81 int flags |
| |
82 CODE: |
| |
83 gaim_conversation_write(conv, who, message, -1, flags, time(NULL)); |
| |
84 |
| |
85 Gaim::Conversation::IM |
| |
86 gaim_conversation_get_im_data(conv) |
| |
87 Gaim::Conversation conv |
| |
88 |
| |
89 Gaim::Conversation::Chat |
| |
90 gaim_conversation_get_chat_data(conv) |
| |
91 Gaim::Conversation conv |
| |
92 |
| |
93 |
| |
94 MODULE = Gaim::Conversation PACKAGE = Gaim::Conversations PREFIX = gaim_conversations_ |
| |
95 PROTOTYPES: ENABLE |
| |
96 |
| |
97 Gaim::Conversation |
| |
98 find(name) |
| |
99 const char *name |
| |
100 CODE: |
| |
101 RETVAL = gaim_find_conversation(name); |
| |
102 OUTPUT: |
| |
103 RETVAL |
| |
104 |
| |
105 Gaim::Conversation |
| |
106 find_with_account(name, account) |
| |
107 const char *name |
| |
108 Gaim::Account account |
| |
109 CODE: |
| |
110 RETVAL = gaim_find_conversation_with_account(name, account); |
| |
111 OUTPUT: |
| |
112 RETVAL |
| |
113 |
| |
114 void * |
| |
115 handle() |
| |
116 CODE: |
| |
117 RETVAL = gaim_conversations_get_handle(); |
| |
118 OUTPUT: |
| |
119 RETVAL |
| |
120 |
| |
121 |
| |
122 MODULE = Gaim::Conversation PACKAGE = Gaim PREFIX = gaim_ |
| |
123 PROTOTYPES: ENABLE |
| |
124 |
| |
125 void |
| |
126 conversations() |
| |
127 PREINIT: |
| |
128 GList *l; |
| |
129 PPCODE: |
| |
130 for (l = gaim_get_conversations(); l != NULL; l = l->next) |
| |
131 { |
| |
132 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, |
| |
133 "Gaim::Conversation"))); |
| |
134 } |