Mon, 03 Oct 2005 03:17:46 +0000
[gaim-migrate @ 13866]
Rewrite of the "transparency" plugin. This should suck less and now offers the option of being opaque on focus. I need to evaluate the "Always on top" functionality of the Buddy List because it may conflict wiht the WinGaim Options plugin.
| 6591 | 1 | #include "module.h" |
| 2 | ||
| 11123 | 3 | MODULE = Gaim::Conv PACKAGE = Gaim::Conv PREFIX = gaim_conversation_ |
| 4 | PROTOTYPES: ENABLE | |
| 5 | ||
| 6 | void * | |
| 7 | gaim_conversations_get_handle() | |
| 8 | ||
| 11581 | 9 | void |
| 11123 | 10 | gaim_conversations_init() |
| 11 | ||
| 12 | void | |
| 11581 | 13 | gaim_conversations_uninit() |
| 11123 | 14 | |
| 15 | void | |
| 16 | get_ims() | |
| 17 | PREINIT: | |
| 18 | GList *l; | |
| 19 | PPCODE: | |
| 20 | for (l = gaim_get_ims(); l != NULL; l = l->next) { | |
| 21 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 22 | } | |
| 23 | ||
| 24 | void | |
| 25 | get_conversations() | |
| 26 | PREINIT: | |
| 27 | GList *l; | |
| 28 | PPCODE: | |
| 29 | for (l = gaim_get_conversations(); l != NULL; l = l->next) { | |
| 30 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 31 | } | |
| 32 | ||
| 33 | void | |
| 34 | get_chats() | |
| 35 | PREINIT: | |
| 36 | GList *l; | |
| 37 | PPCODE: | |
| 38 | for (l = gaim_get_chats(); l != NULL; l = l->next) { | |
| 39 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 40 | } | |
| 41 | ||
| 42 | void | |
| 43 | gaim_conversation_get_send_history(conv) | |
| 6591 | 44 | Gaim::Conversation conv |
| 11123 | 45 | PREINIT: |
| 46 | GList *l; | |
| 47 | PPCODE: | |
| 48 | for (l = gaim_conversation_get_send_history(conv); l != NULL; l = l->next) { | |
| 49 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 50 | } | |
| 51 | ||
| 11581 | 52 | void |
| 11123 | 53 | gaim_conversation_destroy(conv) |
| 54 | Gaim::Conversation conv | |
| 55 | ||
| 11581 | 56 | Gaim::ConversationType |
| 11123 | 57 | gaim_conversation_get_type(conv) |
| 58 | Gaim::Conversation conv | |
| 6591 | 59 | |
| 60 | Gaim::Account | |
| 61 | gaim_conversation_get_account(conv) | |
| 62 | Gaim::Conversation conv | |
| 63 | ||
| 64 | Gaim::Connection | |
| 65 | gaim_conversation_get_gc(conv) | |
| 66 | Gaim::Conversation conv | |
| 67 | ||
| 11581 | 68 | void |
| 11123 | 69 | gaim_conversation_set_title(conv, title); |
| 6591 | 70 | Gaim::Conversation conv |
| 11123 | 71 | const char * title |
| 6591 | 72 | |
| 11123 | 73 | const char * |
| 74 | gaim_conversation_get_title(conv) | |
| 75 | Gaim::Conversation conv | |
| 76 | ||
| 11581 | 77 | void |
| 6591 | 78 | gaim_conversation_autoset_title(conv) |
| 79 | Gaim::Conversation conv | |
| 80 | ||
| 11581 | 81 | Gaim::UnseenState |
| 11123 | 82 | gaim_conversation_get_unseen(conv) |
| 83 | Gaim::Conversation conv | |
| 84 | ||
| 11581 | 85 | void |
| 11123 | 86 | gaim_conversation_set_name(conv, name) |
| 87 | Gaim::Conversation conv | |
| 88 | const char *name | |
| 89 | ||
| 6591 | 90 | const char * |
| 91 | gaim_conversation_get_name(conv) | |
| 92 | Gaim::Conversation conv | |
| 11581 | 93 | |
| 94 | void | |
| 6591 | 95 | gaim_conversation_set_logging(conv, log) |
| 96 | Gaim::Conversation conv | |
| 97 | gboolean log | |
| 98 | ||
| 11581 | 99 | gboolean |
| 6591 | 100 | gaim_conversation_is_logging(conv) |
| 101 | Gaim::Conversation conv | |
| 102 | ||
| 11123 | 103 | |
| 6591 | 104 | Gaim::Conversation::IM |
| 105 | gaim_conversation_get_im_data(conv) | |
| 106 | Gaim::Conversation conv | |
| 107 | ||
| 108 | Gaim::Conversation::Chat | |
| 109 | gaim_conversation_get_chat_data(conv) | |
| 110 | Gaim::Conversation conv | |
| 111 | ||
| 11581 | 112 | gpointer |
| 11123 | 113 | gaim_conversation_get_data(conv, key) |
| 114 | Gaim::Conversation conv | |
| 115 | const char * key | |
| 6591 | 116 | |
| 11581 | 117 | Gaim::ConnectionFlags |
| 11123 | 118 | gaim_conversation_get_features(conv) |
| 119 | Gaim::Conversation conv | |
| 120 | ||
| 11581 | 121 | gboolean |
| 11123 | 122 | gaim_conversation_has_focus(conv) |
| 123 | Gaim::Conversation conv | |
| 124 | ||
| 11581 | 125 | void |
| 11123 | 126 | gaim_conversation_update(conv, type) |
| 127 | Gaim::Conversation conv | |
| 128 | Gaim::ConvUpdateType type | |
| 11581 | 129 | |
| 130 | Gaim::Conversation | |
| 11170 | 131 | gaim_conversation_new(type, account, name) |
| 11581 | 132 | Gaim::ConversationType type |
| 11170 | 133 | Gaim::Account account |
| 134 | const char *name | |
| 11123 | 135 | |
| 11581 | 136 | void |
| 11170 | 137 | gaim_conversation_set_account(conv, account); |
| 138 | Gaim::Conversation conv | |
| 139 | Gaim::Account account | |
| 11581 | 140 | |
| 11123 | 141 | |
| 142 | ||
| 143 | MODULE = Gaim::Conv PACKAGE = Gaim::Conv::IM PREFIX = gaim_conv_im_ | |
| 144 | PROTOTYPES: ENABLE | |
| 145 | ||
| 146 | Gaim::Conversation | |
| 147 | gaim_conv_im_get_conversation(im) | |
| 148 | Gaim::Conversation::IM im | |
| 149 | ||
| 11581 | 150 | void |
| 11123 | 151 | gaim_conv_im_set_icon(im, icon) |
| 152 | Gaim::Conversation::IM im | |
| 153 | Gaim::Buddy::Icon icon | |
| 154 | ||
| 155 | Gaim::Buddy::Icon | |
| 156 | gaim_conv_im_get_icon(im) | |
| 157 | Gaim::Conversation::IM im | |
| 158 | ||
| 11581 | 159 | void |
| 11123 | 160 | gaim_conv_im_set_typing_state(im, state) |
| 161 | Gaim::Conversation::IM im | |
| 162 | Gaim::TypingState state | |
| 163 | ||
| 11581 | 164 | Gaim::TypingState |
| 11123 | 165 | gaim_conv_im_get_typing_state(im) |
| 166 | Gaim::Conversation::IM im | |
| 167 | ||
| 11581 | 168 | void |
| 11123 | 169 | gaim_conv_im_start_typing_timeout(im, timeout) |
| 170 | Gaim::Conversation::IM im | |
| 171 | int timeout | |
| 172 | ||
| 11581 | 173 | void |
| 11123 | 174 | gaim_conv_im_stop_typing_timeout(im) |
| 175 | Gaim::Conversation::IM im | |
| 176 | ||
| 11581 | 177 | guint |
| 11123 | 178 | gaim_conv_im_get_typing_timeout(im) |
| 179 | Gaim::Conversation::IM im | |
| 180 | ||
| 11581 | 181 | void |
| 11123 | 182 | gaim_conv_im_set_type_again(im, val) |
| 183 | Gaim::Conversation::IM im | |
| 184 | time_t val | |
| 185 | ||
| 186 | time_t | |
| 187 | gaim_conv_im_get_type_again(im) | |
| 188 | Gaim::Conversation::IM im | |
| 189 | ||
| 11581 | 190 | void |
| 11123 | 191 | gaim_conv_im_start_type_again_timeout(im) |
| 192 | Gaim::Conversation::IM im | |
| 193 | ||
| 11581 | 194 | void |
| 11123 | 195 | gaim_conv_im_stop_type_again_timeout(im) |
| 196 | Gaim::Conversation::IM im | |
| 197 | ||
| 11581 | 198 | guint |
| 11123 | 199 | gaim_conv_im_get_type_again_timeout(im) |
| 200 | Gaim::Conversation::IM im | |
| 201 | ||
| 202 | ||
| 11581 | 203 | void |
| 11123 | 204 | gaim_conv_im_update_typing(im) |
| 205 | Gaim::Conversation::IM im | |
| 206 | ||
| 207 | ||
| 11581 | 208 | void |
| 11123 | 209 | gaim_conv_im_send(im, message) |
| 210 | Gaim::Conversation::IM im | |
| 211 | const char *message | |
| 212 | ||
| 11581 | 213 | void |
| 11170 | 214 | gaim_conv_im_write(im, who, message, flags, mtime) |
| 215 | Gaim::Conversation::IM im | |
| 216 | const char *who | |
| 217 | const char *message | |
| 218 | Gaim::MessageFlags flags | |
| 219 | time_t mtime | |
| 11123 | 220 | |
| 221 | ||
| 222 | MODULE = Gaim::Conv PACKAGE = Gaim::Conv PREFIX = gaim_conv_ | |
| 223 | PROTOTYPES: ENABLE | |
| 224 | ||
| 11581 | 225 | gboolean |
| 11123 | 226 | gaim_conv_present_error(who, account, what) |
| 227 | const char *who | |
| 228 | Gaim::Account account | |
| 229 | const char *what | |
| 230 | ||
| 11581 | 231 | void |
| 11123 | 232 | gaim_conv_custom_smiley_close(conv, smile) |
| 233 | Gaim::Conversation conv | |
| 234 | const char *smile | |
| 235 | ||
| 236 | ||
| 237 | ||
| 238 | ||
| 239 | ||
| 240 | ||
| 241 | MODULE = Gaim::Conv PACKAGE = Gaim::Conv::Chat PREFIX = gaim_conv_chat_ | |
| 6591 | 242 | PROTOTYPES: ENABLE |
| 243 | ||
| 244 | Gaim::Conversation | |
| 11123 | 245 | gaim_conv_chat_get_conversation(chat) |
| 246 | Gaim::Conversation::Chat chat | |
| 6591 | 247 | |
| 11123 | 248 | void |
| 249 | gaim_conv_chat_set_users(chat, users) | |
| 250 | Gaim::Conversation::Chat chat | |
| 251 | SV * users | |
| 252 | PREINIT: | |
| 253 | GList *l, *t_GL; | |
| 254 | int i, t_len; | |
| 255 | PPCODE: | |
| 256 | t_GL = NULL; | |
| 257 | t_len = av_len((AV *)SvRV(users)); | |
| 6591 | 258 | |
| 11123 | 259 | for (i = 0; i < t_len; i++) { |
| 260 | STRLEN t_sl; | |
| 261 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(users), i, 0), t_sl)); | |
| 262 | } | |
| 6591 | 263 | |
| 11123 | 264 | for (l = gaim_conv_chat_set_users(chat, t_GL); l != NULL; l = l->next) { |
| 265 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 266 | } | |
| 6591 | 267 | |
| 268 | void | |
| 11123 | 269 | gaim_conv_chat_get_users(chat) |
| 270 | Gaim::Conversation::Chat chat | |
| 271 | PREINIT: | |
| 272 | GList *l; | |
| 273 | PPCODE: | |
| 274 | for (l = gaim_conv_chat_get_users(chat); l != NULL; l = l->next) { | |
| 275 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 276 | } | |
| 277 | ||
| 11581 | 278 | void |
| 11123 | 279 | gaim_conv_chat_ignore(chat, name) |
| 280 | Gaim::Conversation::Chat chat | |
| 281 | const char *name | |
| 282 | ||
| 11581 | 283 | void |
| 11123 | 284 | gaim_conv_chat_unignore(chat, name) |
| 285 | Gaim::Conversation::Chat chat | |
| 286 | const char *name | |
| 287 | ||
| 11581 | 288 | void |
| 11123 | 289 | gaim_conv_chat_set_ignored(chat, ignored) |
| 290 | Gaim::Conversation::Chat chat | |
| 291 | SV * ignored | |
| 292 | PREINIT: | |
| 293 | GList *l, *t_GL; | |
| 294 | int i, t_len; | |
| 295 | PPCODE: | |
| 296 | t_GL = NULL; | |
| 297 | t_len = av_len((AV *)SvRV(ignored)); | |
| 298 | ||
| 299 | for (i = 0; i < t_len; i++) { | |
| 300 | STRLEN t_sl; | |
| 301 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(ignored), i, 0), t_sl)); | |
| 302 | } | |
| 303 | ||
| 304 | for (l = gaim_conv_chat_set_ignored(chat, t_GL); l != NULL; l = l->next) { | |
| 305 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 306 | } | |
| 307 | ||
| 308 | void | |
| 309 | gaim_conv_chat_get_ignored(chat) | |
| 310 | Gaim::Conversation::Chat chat | |
| 6591 | 311 | PREINIT: |
| 312 | GList *l; | |
| 313 | PPCODE: | |
| 11123 | 314 | for (l = gaim_conv_chat_get_ignored(chat); l != NULL; l = l->next) { |
| 315 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 316 | } | |
| 317 | ||
| 318 | const char * | |
| 319 | gaim_conv_chat_get_topic(chat) | |
| 320 | Gaim::Conversation::Chat chat | |
| 321 | ||
| 322 | ||
| 323 | ||
| 11581 | 324 | void |
| 11123 | 325 | gaim_conv_chat_set_id(chat, id) |
| 326 | Gaim::Conversation::Chat chat | |
| 327 | int id | |
| 328 | ||
| 11581 | 329 | int |
| 11123 | 330 | gaim_conv_chat_get_id(chat) |
| 331 | Gaim::Conversation::Chat chat | |
| 332 | ||
| 11581 | 333 | void |
| 11123 | 334 | gaim_conv_chat_send(chat, message) |
| 335 | Gaim::Conversation::Chat chat | |
| 336 | const char * message | |
| 337 | ||
| 11581 | 338 | void |
|
11456
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
339 | gaim_conv_chat_add_users(chat, users, extra_msgs, flags, new_arrivals) |
| 11123 | 340 | Gaim::Conversation::Chat chat |
| 341 | SV * users | |
|
11456
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
342 | SV * extra_msgs |
| 11123 | 343 | SV * flags |
|
11456
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
344 | gboolean new_arrivals |
| 11123 | 345 | PREINIT: |
|
11456
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
346 | GList *t_GL_users, *t_GL_extra_msgs, *t_GL_flags; |
| 11123 | 347 | int i, t_len; |
| 348 | PPCODE: | |
| 349 | t_GL_users = NULL; | |
| 350 | t_len = av_len((AV *)SvRV(users)); | |
| 351 | ||
| 352 | for (i = 0; i < t_len; i++) { | |
| 353 | STRLEN t_sl; | |
| 354 | t_GL_users = g_list_append(t_GL_users, SvPV(*av_fetch((AV *)SvRV(users), i, 0), t_sl)); | |
| 6591 | 355 | } |
| 11123 | 356 | |
| 357 | t_GL_flags = NULL; | |
| 358 | t_len = av_len((AV *)SvRV(flags)); | |
| 359 | ||
| 360 | for (i = 0; i < t_len; i++) { | |
| 361 | STRLEN t_sl; | |
| 362 | t_GL_flags = g_list_append(t_GL_flags, SvPV(*av_fetch((AV *)SvRV(flags), i, 0), t_sl)); | |
| 363 | } | |
| 364 | ||
|
11456
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
365 | t_GL_extra_msgs = NULL; |
|
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
366 | t_len = av_len((AV *)SvRV(extra_msgs)); |
|
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
367 | |
|
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
368 | for (i = 0; i < t_len; i++) { |
|
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
369 | STRLEN t_sl; |
|
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
370 | t_GL_extra_msgs = g_list_append(t_GL_extra_msgs, SvPV(*av_fetch((AV *)SvRV(extra_msgs), i, 0), t_sl)); |
|
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
371 | } |
|
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
372 | |
|
ed9863eb788f
[gaim-migrate @ 13695]
Richard Laager <rlaager@pidgin.im>
parents:
11290
diff
changeset
|
373 | gaim_conv_chat_add_users(chat, t_GL_users, t_GL_extra_msgs, t_GL_flags, new_arrivals); |
| 11581 | 374 | |
| 11123 | 375 | |
| 11581 | 376 | gboolean |
| 11123 | 377 | gaim_conv_chat_find_user(chat, user) |
| 378 | Gaim::Conversation::Chat chat | |
| 379 | const char * user | |
| 380 | ||
| 381 | void gaim_conv_chat_clear_users(chat) | |
| 382 | Gaim::Conversation::Chat chat | |
| 383 | ||
| 384 | void gaim_conv_chat_set_nick(chat, nick) | |
| 385 | Gaim::Conversation::Chat chat | |
| 386 | const char * nick | |
| 387 | ||
| 388 | const char * | |
| 389 | gaim_conv_chat_get_nick(chat) | |
| 390 | Gaim::Conversation::Chat chat | |
| 391 | ||
| 392 | Gaim::Conversation | |
| 393 | gaim_find_chat(gc, id) | |
| 394 | Gaim::Connection gc | |
| 395 | int id | |
| 396 | ||
| 397 | void gaim_conv_chat_left(chat) | |
| 398 | Gaim::Conversation::Chat chat | |
| 399 | ||
| 400 | gboolean gaim_conv_chat_has_left(chat) | |
| 401 | Gaim::Conversation::Chat chat | |
| 402 | ||
| 403 | Gaim::Conversation::ChatBuddy | |
| 404 | gaim_conv_chat_cb_find(chat, name) | |
| 405 | Gaim::Conversation::Chat chat | |
| 406 | const char *name | |
| 407 | ||
| 408 | const char * | |
| 409 | gaim_conv_chat_cb_get_name(cb) | |
| 410 | Gaim::Conversation::ChatBuddy cb | |
| 411 | ||
| 11581 | 412 | void |
| 11123 | 413 | gaim_conv_chat_cb_destroy(cb); |
| 414 | Gaim::Conversation::ChatBuddy cb |