annotate plugins/perl/common/Conversation.xs @ 12869:45c7f6510baa

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