Thu, 28 Aug 2003 01:32:15 +0000
[gaim-migrate @ 7167]
Removing Gaim::Conversations::find() in the perl module, as
find_with_account() should be used.
| 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 | 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_with_account(name, account) | |
| 99 | const char *name | |
| 100 | Gaim::Account account | |
| 101 | CODE: | |
| 102 | RETVAL = gaim_find_conversation_with_account(name, account); | |
| 103 | OUTPUT: | |
| 104 | RETVAL | |
| 105 | ||
| 106 | void * | |
| 107 | handle() | |
| 108 | CODE: | |
| 109 | RETVAL = gaim_conversations_get_handle(); | |
| 110 | OUTPUT: | |
| 111 | RETVAL | |
| 112 | ||
| 113 | ||
| 114 | MODULE = Gaim::Conversation PACKAGE = Gaim PREFIX = gaim_ | |
| 115 | PROTOTYPES: ENABLE | |
| 116 | ||
| 117 | void | |
| 118 | conversations() | |
| 119 | PREINIT: | |
| 120 | GList *l; | |
| 121 | PPCODE: | |
| 122 | for (l = gaim_get_conversations(); l != NULL; l = l->next) | |
| 123 | { | |
| 124 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, | |
| 125 | "Gaim::Conversation"))); | |
| 126 | } |