Sat, 11 Jun 2005 23:29:56 +0000
[gaim-migrate @ 12858]
Kevin Stange made this patch to remove the win32 flashing from the gaim core and put it the winprefs plugin. He also cleaned up the winprefs plugin quite a bit. Blame him if it doesn't work ;)
committer: Daniel Atallah <datallah@pidgin.im>
| 6591 | 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 | const char * | |
| 29 | gaim_conversation_get_name(conv) | |
| 30 | Gaim::Conversation conv | |
| 31 | ||
| 32 | void | |
| 33 | gaim_conversation_set_logging(conv, log) | |
| 34 | Gaim::Conversation conv | |
| 35 | gboolean log | |
| 36 | ||
| 37 | gboolean | |
| 38 | gaim_conversation_is_logging(conv) | |
| 39 | Gaim::Conversation conv | |
| 40 | ||
| 41 | Gaim::ConvWindow | |
| 42 | gaim_conversation_get_window(conv) | |
| 43 | Gaim::Conversation conv | |
| 44 | ||
| 45 | gboolean | |
| 46 | is_chat(conv) | |
| 47 | Gaim::Conversation conv | |
| 48 | CODE: | |
| 49 | RETVAL = (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT); | |
| 50 | OUTPUT: | |
| 51 | RETVAL | |
| 52 | ||
| 53 | gboolean | |
| 54 | is_im(conv) | |
| 55 | Gaim::Conversation conv | |
| 56 | CODE: | |
| 57 | RETVAL = (gaim_conversation_get_type(conv) == GAIM_CONV_IM); | |
| 58 | OUTPUT: | |
| 59 | RETVAL | |
| 60 | ||
| 61 | void | |
| 62 | gaim_conversation_set_data(conv, key, data) | |
| 63 | Gaim::Conversation conv | |
| 64 | const char *key | |
| 65 | void *data | |
| 66 | ||
| 67 | void * | |
| 68 | gaim_conversation_get_data(conv, key) | |
| 69 | Gaim::Conversation conv | |
| 70 | const char *key | |
| 71 | ||
| 72 | void | |
| 73 | gaim_conversation_write(conv, who, message, flags) | |
| 74 | Gaim::Conversation conv | |
| 75 | const char *who | |
| 76 | const char *message | |
| 77 | int flags | |
| 78 | CODE: | |
|
6982
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6642
diff
changeset
|
79 | gaim_conversation_write(conv, who, message, flags, time(NULL)); |
| 6591 | 80 | |
| 81 | Gaim::Conversation::IM | |
| 82 | gaim_conversation_get_im_data(conv) | |
| 83 | Gaim::Conversation conv | |
| 84 | ||
| 85 | Gaim::Conversation::Chat | |
| 86 | gaim_conversation_get_chat_data(conv) | |
| 87 | Gaim::Conversation conv | |
| 88 | ||
| 89 | ||
| 90 | MODULE = Gaim::Conversation PACKAGE = Gaim::Conversations PREFIX = gaim_conversations_ | |
| 91 | PROTOTYPES: ENABLE | |
| 92 | ||
| 93 | Gaim::Conversation | |
| 94 | find_with_account(name, account) | |
| 95 | const char *name | |
| 96 | Gaim::Account account | |
| 97 | CODE: | |
|
10246
aa5bff72f94c
[gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents:
6982
diff
changeset
|
98 | RETVAL = gaim_find_conversation_with_account(GAIM_CONV_ANY, name, account); |
| 6591 | 99 | OUTPUT: |
| 100 | RETVAL | |
| 101 | ||
| 102 | void * | |
| 103 | handle() | |
| 104 | CODE: | |
| 105 | RETVAL = gaim_conversations_get_handle(); | |
| 106 | OUTPUT: | |
| 107 | RETVAL | |
| 108 | ||
| 109 | ||
| 110 | MODULE = Gaim::Conversation PACKAGE = Gaim PREFIX = gaim_ | |
| 111 | PROTOTYPES: ENABLE | |
| 112 | ||
| 113 | void | |
| 114 | conversations() | |
| 115 | PREINIT: | |
| 116 | GList *l; | |
| 117 | PPCODE: | |
| 118 | for (l = gaim_get_conversations(); l != NULL; l = l->next) | |
| 119 | { | |
| 120 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, | |
| 121 | "Gaim::Conversation"))); | |
| 122 | } |