Mercurial > pidgin.yaz
annotate plugins/perl/common/Account.xs @ 11636:2f7558b0c01b
[gaim-migrate @ 13912]
Don't freaking rebuild the tooltip twice for every mouse-over popup
in the buddy list.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 10 Oct 2005 05:42:24 +0000 |
parents | 519dc2186438 |
children | eb14bbcf7249 |
rev | line source |
---|---|
6508 | 1 #include "module.h" |
2 | |
11290 | 3 MODULE = Gaim::Account PACKAGE = Gaim::Account PREFIX = gaim_account_ |
4 PROTOTYPES: ENABLE | |
11118 | 5 |
6 Gaim::Presence | |
7 gaim_account_get_presence(account) | |
8 Gaim::Account account | |
9 | |
10 Gaim::Account | |
11 gaim_account_new(username, protocol_id) | |
12 const char * username | |
13 const char * protocol_id | |
14 | |
15 void | |
16 gaim_account_destroy(account) | |
17 Gaim::Account account | |
18 | |
19 void | |
10437 | 20 gaim_account_connect(account) |
21 Gaim::Account account | |
22 | |
11118 | 23 void |
24 gaim_account_register(account) | |
25 Gaim::Account account | |
26 | |
27 void | |
6508 | 28 gaim_account_disconnect(account) |
29 Gaim::Account account | |
30 | |
11118 | 31 void |
32 gaim_account_request_change_password(account) | |
33 Gaim::Account account | |
34 | |
35 void | |
36 gaim_account_request_change_user_info(account) | |
37 Gaim::Account account | |
38 | |
39 void | |
6508 | 40 gaim_account_set_username(account, username) |
41 Gaim::Account account | |
11118 | 42 const char * username |
6508 | 43 |
11118 | 44 void |
6508 | 45 gaim_account_set_password(account, password) |
46 Gaim::Account account | |
11118 | 47 const char * password |
6508 | 48 |
11118 | 49 void |
6508 | 50 gaim_account_set_alias(account, alias) |
51 Gaim::Account account | |
11118 | 52 const char * alias |
6508 | 53 |
11118 | 54 void |
6508 | 55 gaim_account_set_user_info(account, user_info) |
56 Gaim::Account account | |
57 const char *user_info | |
58 | |
11118 | 59 void |
60 gaim_account_set_buddy_icon(account, icon) | |
6508 | 61 Gaim::Account account |
11118 | 62 const char *icon |
6508 | 63 |
11118 | 64 void |
65 gaim_account_set_connection(account, gc) | |
6508 | 66 Gaim::Account account |
11118 | 67 Gaim::Connection gc |
6508 | 68 |
11118 | 69 void |
6508 | 70 gaim_account_set_remember_password(account, value) |
71 Gaim::Account account | |
72 gboolean value | |
73 | |
11118 | 74 void |
6508 | 75 gaim_account_set_check_mail(account, value) |
76 Gaim::Account account | |
77 gboolean value | |
78 | |
11118 | 79 void |
80 gaim_account_set_proxy_info(account, info) | |
81 Gaim::Account account | |
82 Gaim::ProxyInfo info | |
83 | |
10504 | 84 void |
11118 | 85 gaim_account_set_status(account, status_id, active) |
86 Gaim::Account account | |
87 const char *status_id | |
88 gboolean active | |
89 CODE: | |
90 gaim_account_set_status(account, status_id, active); | |
91 | |
92 | |
93 void | |
94 gaim_account_set_status_types(account, status_types) | |
10504 | 95 Gaim::Account account |
11118 | 96 SV * status_types |
97 PREINIT: | |
98 GList *t_GL; | |
99 int i, t_len; | |
100 PPCODE: | |
101 t_GL = NULL; | |
102 t_len = av_len((AV *)SvRV(status_types)); | |
10504 | 103 |
11118 | 104 for (i = 0; i < t_len; i++) { |
105 STRLEN t_sl; | |
106 t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(status_types), i, 0), t_sl)); | |
107 } | |
108 gaim_account_set_status_types(account, t_GL); | |
109 | |
110 | |
111 void | |
112 gaim_account_clear_settings(account) | |
113 Gaim::Account account | |
114 | |
115 void | |
116 gaim_account_set_int(account, name, value) | |
117 Gaim::Account account | |
118 const char *name | |
119 int value | |
120 | |
121 gboolean | |
6508 | 122 gaim_account_is_connected(account) |
123 Gaim::Account account | |
124 | |
125 const char * | |
126 gaim_account_get_username(account) | |
127 Gaim::Account account | |
128 | |
129 const char * | |
130 gaim_account_get_password(account) | |
131 Gaim::Account account | |
132 | |
133 const char * | |
134 gaim_account_get_alias(account) | |
135 Gaim::Account account | |
136 | |
137 const char * | |
138 gaim_account_get_user_info(account) | |
139 Gaim::Account account | |
140 | |
141 const char * | |
142 gaim_account_get_buddy_icon(account) | |
143 Gaim::Account account | |
144 | |
145 const char * | |
146 gaim_account_get_protocol_id(account) | |
147 Gaim::Account account | |
148 | |
11118 | 149 const char * |
150 gaim_account_get_protocol_name(account) | |
151 Gaim::Account account | |
152 | |
6508 | 153 Gaim::Connection |
154 gaim_account_get_connection(account) | |
155 Gaim::Account account | |
156 | |
11118 | 157 gboolean |
6508 | 158 gaim_account_get_remember_password(account) |
159 Gaim::Account account | |
160 | |
11118 | 161 gboolean |
6508 | 162 gaim_account_get_check_mail(account) |
163 Gaim::Account account | |
164 | |
11118 | 165 Gaim::ProxyInfo |
166 gaim_account_get_proxy_info(account) | |
167 Gaim::Account account | |
168 | |
169 Gaim::Status | |
170 gaim_account_get_active_status(account) | |
171 Gaim::Account account | |
172 | |
173 void | |
174 gaim_account_get_status_types(account) | |
10504 | 175 Gaim::Account account |
11118 | 176 PREINIT: |
11130 | 177 const GList *l; |
11118 | 178 PPCODE: |
179 for (l = gaim_account_get_status_types(account); l != NULL; l = l->next) { | |
180 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Status::Type"))); | |
181 } | |
182 | |
183 Gaim::Log | |
184 gaim_account_get_log(account) | |
185 Gaim::Account account | |
186 | |
187 void | |
188 gaim_account_destroy_log(account) | |
189 Gaim::Account account | |
190 | |
191 | |
10504 | 192 |
6508 | 193 |
194 MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_ | |
11118 | 195 PROTOTYPES: ENABLE |
6508 | 196 |
11118 | 197 void |
6508 | 198 gaim_accounts_add(account) |
199 Gaim::Account account | |
200 | |
11118 | 201 void |
6508 | 202 gaim_accounts_remove(account) |
203 Gaim::Account account | |
204 | |
11118 | 205 void |
206 gaim_accounts_delete(account) | |
207 Gaim::Account account | |
6595
782eef79cf3c
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
208 |
11118 | 209 void |
210 gaim_accounts_reorder(account, new_index) | |
211 Gaim::Account account | |
212 size_t new_index | |
6508 | 213 |
214 void | |
11118 | 215 gaim_accounts_get_all() |
216 PREINIT: | |
217 GList *l; | |
218 PPCODE: | |
219 for (l = gaim_accounts_get_all(); l != NULL; l = l->next) { | |
220 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); | |
221 } | |
222 | |
223 void | |
224 gaim_accounts_get_all_active() | |
6508 | 225 PREINIT: |
226 GList *l; | |
227 PPCODE: | |
11118 | 228 for (l = gaim_accounts_get_all_active(); l != NULL; l = l->next) { |
6508 | 229 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); |
11118 | 230 } |
6508 | 231 |
11118 | 232 Gaim::Account |
233 gaim_accounts_find(name, protocol) | |
234 const char * name | |
235 const char * protocol | |
236 | |
237 void | |
238 gaim_accounts_set_ui_ops(ops) | |
239 Gaim::Account::UiOps ops | |
240 | |
241 Gaim::Account::UiOps | |
242 gaim_accounts_get_ui_ops() | |
243 | |
244 void | |
245 gaim_accounts_get_handle() | |
246 | |
247 void | |
248 gaim_accounts_init() | |
249 | |
250 void | |
251 gaim_accounts_uninit() |