Mercurial > pidgin.yaz
annotate doc/conversation-signals.dox @ 13058:256abf4dd912
[gaim-migrate @ 15420]
Plug a leak.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sat, 28 Jan 2006 05:15:48 +0000 |
parents | 49b2347863b2 |
children | f09c6e8df82c |
rev | line source |
---|---|
6605 | 1 /** @page conversation-signals Conversation Signals |
2 | |
3 @signals | |
8736 | 4 @signal writing-im-msg |
5 @signal wrote-im-msg | |
6605 | 6 @signal sending-im-msg |
7 @signal sent-im-msg | |
8999 | 8 @signal receiving-im-msg |
6605 | 9 @signal received-im-msg |
8736 | 10 @signal writing-chat-msg |
11 @signal wrote-chat-msg | |
6605 | 12 @signal sending-chat-msg |
13 @signal sent-chat-msg | |
8999 | 14 @signal receiving-chat-msg |
6605 | 15 @signal received-chat-msg |
16 @signal conversation-created | |
12053 | 17 @signal conversation-updated |
6605 | 18 @signal deleting-conversation |
19 @signal buddy-typing | |
6838
551a8111977a
[gaim-migrate @ 7383]
Christian Hammond <chipx86@chipx86.com>
parents:
6781
diff
changeset
|
20 @signal buddy-typing-stopped |
6605 | 21 @signal chat-buddy-joining |
22 @signal chat-buddy-joined | |
12053 | 23 @signal chat-buddy-flags |
6605 | 24 @signal chat-buddy-leaving |
25 @signal chat-buddy-left | |
26 @signal chat-inviting-user | |
27 @signal chat-invited-user | |
28 @signal chat-invited | |
29 @signal chat-joined | |
30 @signal chat-left | |
9517 | 31 @signal chat-topic-changed |
6605 | 32 @endsignals |
33 | |
8078 | 34 @signaldef writing-im-msg |
35 @signalproto | |
36 gboolean (*writing_im_msg)(GaimAccount *account, GaimConversation *conv, char **message); | |
37 @endsignalproto | |
38 @signaldesc | |
39 Emitted before a message is displayed in an IM conversation or sent to a remote user. | |
40 @a message is a pointer to a string, so the plugin can replace the | |
8276
3c49a619969f
[gaim-migrate @ 9000]
Christian Hammond <chipx86@chipx86.com>
parents:
8078
diff
changeset
|
41 message that will be displayed along with the message that will be sent. |
8078 | 42 This can also be used to cancel an outgoing message by returning @c TRUE. |
43 @note | |
44 Make sure to free @a *message before you replace it! | |
45 @param account The account the message is being displayed and sent on. | |
46 @param conv The conversation the message is being displayed and sent on. | |
47 @param message A pointer to the message that will be displayed and sent. | |
48 @return @c TRUE if the message should be canceled, or @c FALSE otherwise. | |
49 @endsignaldef | |
50 | |
51 @signaldef wrote-im-msg | |
52 @signalproto | |
53 void (*wrote_im_msg)(GaimAccount *account, GaimConversation *conv, const char *message); | |
54 @endsignalproto | |
55 @signaldesc | |
8276
3c49a619969f
[gaim-migrate @ 9000]
Christian Hammond <chipx86@chipx86.com>
parents:
8078
diff
changeset
|
56 Emitted after a message is entered by the user, but before it is sent and displyed. |
8078 | 57 When sending an IM, the order that the im-msg callbacks will be called is: |
12639
366326fa9cb4
[gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents:
12053
diff
changeset
|
58 writing-im-msg, wrote-im-msg, sending-im-msg, and finally sent-im-msg. |
6605 | 59 @param account The account the message was displayed on. |
6781
0489da496f33
[gaim-migrate @ 7320]
Christian Hammond <chipx86@chipx86.com>
parents:
6610
diff
changeset
|
60 @param conv The conversation the message was displayed on. |
6605 | 61 @param message The message that was displayed. |
62 @endsignaldef | |
63 | |
64 @signaldef sending-im-msg | |
65 @signalproto | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
66 void (*sending_im_msg)(GaimAccount *account, const char *receiver, |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
67 char **message); |
6605 | 68 @endsignalproto |
69 @signaldesc | |
70 Emitted before sending an IM to a user. @a message is a pointer to the | |
71 message string, so the plugin can replace the message before being sent. | |
72 @note | |
73 Make sure to free @a *message before you replace it! | |
8276
3c49a619969f
[gaim-migrate @ 9000]
Christian Hammond <chipx86@chipx86.com>
parents:
8078
diff
changeset
|
74 @param account The account the message is being sent on. |
6606
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
75 @param receiver The username of the receiver. |
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
76 @param message A pointer to the outgoing message. This can be modified. |
6605 | 77 @endsignaldef |
78 | |
79 @signaldef sent-im-msg | |
80 @signalproto | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
81 void (*sent_im_msg)(GaimAccount *account, const char *receiver, |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
82 const char *message); |
6605 | 83 @endsignalproto |
6606
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
84 @signaldesc |
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
85 Emitted after sending an IM to a user. |
6605 | 86 @param account The account the message was sent on. |
87 @param receiver The username of the receiver. | |
88 @param message The message that was sent. | |
89 @endsignaldef | |
90 | |
8999 | 91 @signaldef receiving-im-msg |
6605 | 92 @signalproto |
8999 | 93 gboolean (*receiving_im_msg)(GaimAccount *account, char **sender, |
10104 | 94 char **message, GaimConversation *conv, int *flags); |
6605 | 95 @endsignalproto |
96 @signaldesc | |
97 Emitted when an IM is received. The callback can replace the name of the | |
98 sender, the message, or the flags by modifying the pointer to the | |
99 strings and integer. This can also be used to cancel a message by | |
100 returning @c TRUE. | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
101 @note |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
102 Make sure to free @a *sender and @a *message before you replace them! |
6605 | 103 @return @c TRUE if the message should be canceled, or @c FALSE otherwise. |
6606
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
104 @param account The account the message was received on. |
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
105 @param sender A pointer to the username of the sender. |
34eaa941ecd6
[gaim-migrate @ 7130]
Christian Hammond <chipx86@chipx86.com>
parents:
6605
diff
changeset
|
106 @param message A pointer to the message that was sent. |
10104 | 107 @param conv The IM conversation. |
108 @param flags A pointer to the IM message flags. | |
6605 | 109 @endsignaldef |
110 | |
8999 | 111 @signaldef received-im-msg |
112 @signalproto | |
10104 | 113 void (*received_im_msg)(GaimAccount *account, char *sender, char *message, |
114 GaimConversation *conv, int flags); | |
8999 | 115 @endsignalproto |
116 @signaldesc | |
117 Emitted after an IM is received. | |
118 @param account The account the message was received on. | |
119 @param sender The username of the sender. | |
120 @param message The message that was sent. | |
10104 | 121 @param conv The IM conversation. |
122 @param flags The IM message flags. | |
8999 | 123 @endsignaldef |
124 | |
8078 | 125 @signaldef writing-chat-msg |
126 @signalproto | |
127 gboolean (*writing_chat_msg)(GaimAccount *account, GaimConversation *conv, char **message); | |
128 @endsignalproto | |
129 @signaldesc | |
8276
3c49a619969f
[gaim-migrate @ 9000]
Christian Hammond <chipx86@chipx86.com>
parents:
8078
diff
changeset
|
130 Emitted before a message is displayed in a chat conversation or sent to |
3c49a619969f
[gaim-migrate @ 9000]
Christian Hammond <chipx86@chipx86.com>
parents:
8078
diff
changeset
|
131 a remote chat. @a message is a pointer to a string, so the plugin can |
3c49a619969f
[gaim-migrate @ 9000]
Christian Hammond <chipx86@chipx86.com>
parents:
8078
diff
changeset
|
132 replace the message that will be displayed along with the message that |
3c49a619969f
[gaim-migrate @ 9000]
Christian Hammond <chipx86@chipx86.com>
parents:
8078
diff
changeset
|
133 will be sent. This can also be used to cancel an outgoing message by |
8078 | 134 returning @c TRUE. |
135 @note | |
136 Make sure to free @a *message before you replace it! | |
137 @param account The account the message is being displayed and sent on. | |
138 @param conv The conversation the message is being displayed and sent on. | |
139 @param message A pointer to the message that will be displayed and sent. | |
140 @return @c TRUE if the message should be canceled, or @c FALSE otherwise. | |
141 @endsignaldef | |
142 | |
8736 | 143 @signaldef wrote-chat-msg |
8078 | 144 @signalproto |
8736 | 145 void (*wrote_chat_msg)(GaimAccount *account, GaimConversation *conv, const char *message); |
8078 | 146 @endsignalproto |
147 @signaldesc | |
8276
3c49a619969f
[gaim-migrate @ 9000]
Christian Hammond <chipx86@chipx86.com>
parents:
8078
diff
changeset
|
148 Emitted after a message is entered by the user, but before it is sent and displyed. |
8078 | 149 When sending an IM, the order that the im-msg callbacks will be called is: |
12639
366326fa9cb4
[gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents:
12053
diff
changeset
|
150 writing-chat-msg, wrote-chat-msg, sending-chat-msg, and finally |
366326fa9cb4
[gaim-migrate @ 14975]
Richard Laager <rlaager@wiktel.com>
parents:
12053
diff
changeset
|
151 sent-chat-msg. |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
152 @param account The account the message was displayed on. |
6781
0489da496f33
[gaim-migrate @ 7320]
Christian Hammond <chipx86@chipx86.com>
parents:
6610
diff
changeset
|
153 @param conv The conversation the message was displayed on. |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
154 @param message The message that was displayed. |
6605 | 155 @endsignaldef |
156 | |
157 @signaldef sending-chat-msg | |
158 @signalproto | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
159 void (*sending_chat_msg)(GaimAccount *account, char **message, int id); |
6605 | 160 @endsignalproto |
161 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
162 Emitted before sending a message to a chat. @a message is a pointer to the |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
163 message string, so the plugin can replace the message before being sent. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
164 @note |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
165 Make sure to free @a *message before you replace it! |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
166 @param account The account the message is being sent on. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
167 @param message A pointer to the message that will be sent. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
168 @param id The ID of the chat. |
6605 | 169 @endsignaldef |
170 | |
171 @signaldef sent-chat-msg | |
172 @signalproto | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
173 void (*sent_chat_msg)(GaimAccount *account, const char *message, int id); |
6605 | 174 @endsignalproto |
175 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
176 Emitted after sending a message to a chat. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
177 @param account The account the message was sent on. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
178 @param message The message that was sent. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
179 @param id The ID of the chat. |
6605 | 180 @endsignaldef |
181 | |
8999 | 182 @signaldef receiving-chat-msg |
6605 | 183 @signalproto |
8999 | 184 gboolean (*receiving_chat_msg)(GaimAccount *account, char **sender, |
10104 | 185 char **message, GaimConversation *conv, int *flags); |
6605 | 186 @endsignalproto |
187 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
188 Emitted when a chat message is received. The callback can replace the |
10104 | 189 name of the sender, the message, or the flags by modifying the pointer to the |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
190 strings. This can also be used to cancel displaying a message by |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
191 returning @c TRUE. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
192 @note |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
193 Make sure to free @a *sender and @a *message before you replace them! |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
194 @return @c TRUE if the message should be canceled, or @c FALSE otherwise. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
195 @param account The account the message was received on. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
196 @param sender A pointer to the username of the sender. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
197 @param message A pointer to the message that was sent. |
7512
72a795d4b143
[gaim-migrate @ 8125]
Christian Hammond <chipx86@chipx86.com>
parents:
6838
diff
changeset
|
198 @param conv The chat conversation. |
10104 | 199 @param flags A pointer to the chat message flags |
6605 | 200 @endsignaldef |
201 | |
8999 | 202 @signaldef received-chat-msg |
203 @signalproto | |
10104 | 204 void (*received_chat_msg)(GaimAccount *account, char *sender, char *message, |
205 GaimConversation *conv, int flags); | |
8999 | 206 @endsignalproto |
207 @signaldesc | |
208 Emitted after a chat message is received. | |
209 @param account The account the message was received on. | |
210 @param sender The username of the sender. | |
211 @param message The message that was sent. | |
212 @param conv The chat conversation. | |
10104 | 213 @param flags The chat message flags. |
8999 | 214 @endsignaldef |
215 | |
6605 | 216 @signaldef conversation-created |
217 @signalproto | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
218 void (*conversation_created)(GaimConversation *conv); |
6605 | 219 @endsignalproto |
220 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
221 Emitted when a new conversation is created. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
222 @param conv The new conversation. |
6605 | 223 @endsignaldef |
224 | |
12053 | 225 @signaldef conversation-updated |
226 @signalproto | |
227 void (*conversation_updated)(GaimConversation *conv, | |
228 GaimConvUpdateType type); | |
229 @endsignalproto | |
230 @signaldesc | |
231 Emitted when a conversation is updated. | |
232 @param conv The conversation that was updated. | |
233 @param type The type of update that was made. | |
234 @endsignaldef | |
235 | |
6605 | 236 @signaldef deleting-conversation |
237 @signalproto | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
238 void (*deleting_conversation)(GaimConversation *conv); |
6605 | 239 @endsignalproto |
240 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
241 Emitted just before a conversation is to be destroyed. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
242 @param conv The conversation that's about to be destroyed. |
6605 | 243 @endsignaldef |
244 | |
245 @signaldef buddy-typing | |
246 @signalproto | |
11707
b7af9100af6c
[gaim-migrate @ 13998]
Richard Laager <rlaager@wiktel.com>
parents:
11474
diff
changeset
|
247 void (*buddy_typing)(GaimAccount *account, const char *name); |
6605 | 248 @endsignalproto |
249 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
250 Emitted when a buddy starts typing in a conversation window. |
11707
b7af9100af6c
[gaim-migrate @ 13998]
Richard Laager <rlaager@wiktel.com>
parents:
11474
diff
changeset
|
251 @param account The account of the user which is typing. |
b7af9100af6c
[gaim-migrate @ 13998]
Richard Laager <rlaager@wiktel.com>
parents:
11474
diff
changeset
|
252 @param name The name of the user which is typing. |
6605 | 253 @endsignaldef |
254 | |
6838
551a8111977a
[gaim-migrate @ 7383]
Christian Hammond <chipx86@chipx86.com>
parents:
6781
diff
changeset
|
255 @signaldef buddy-typing-stopped |
551a8111977a
[gaim-migrate @ 7383]
Christian Hammond <chipx86@chipx86.com>
parents:
6781
diff
changeset
|
256 @signalproto |
11707
b7af9100af6c
[gaim-migrate @ 13998]
Richard Laager <rlaager@wiktel.com>
parents:
11474
diff
changeset
|
257 void (*buddy_typing_stopped)(GaimAccount *account, const char *name); |
6838
551a8111977a
[gaim-migrate @ 7383]
Christian Hammond <chipx86@chipx86.com>
parents:
6781
diff
changeset
|
258 @endsignalproto |
551a8111977a
[gaim-migrate @ 7383]
Christian Hammond <chipx86@chipx86.com>
parents:
6781
diff
changeset
|
259 @signaldesc |
551a8111977a
[gaim-migrate @ 7383]
Christian Hammond <chipx86@chipx86.com>
parents:
6781
diff
changeset
|
260 Emitted when a buddy stops typing in a conversation window. |
11707
b7af9100af6c
[gaim-migrate @ 13998]
Richard Laager <rlaager@wiktel.com>
parents:
11474
diff
changeset
|
261 @param account The account of the user which stopped typing. |
b7af9100af6c
[gaim-migrate @ 13998]
Richard Laager <rlaager@wiktel.com>
parents:
11474
diff
changeset
|
262 @param name The name of the user which stopped typing. |
6838
551a8111977a
[gaim-migrate @ 7383]
Christian Hammond <chipx86@chipx86.com>
parents:
6781
diff
changeset
|
263 @endsignaldef |
551a8111977a
[gaim-migrate @ 7383]
Christian Hammond <chipx86@chipx86.com>
parents:
6781
diff
changeset
|
264 |
6605 | 265 @signaldef chat-buddy-joining |
266 @signalproto | |
9587 | 267 gboolean (*chat_buddy_joining)(GaimConversation *conv, const char *name, |
9554 | 268 GaimConvChatBuddyFlags flags); |
6605 | 269 @endsignalproto |
270 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
271 Emitted when a buddy is joining a chat, before the list of |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
272 users in the chat updates to include the new user. |
9587 | 273 @return @c TRUE if the join should be hidden, or @c FALSE otherwise. |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
274 @param conv The chat conversation. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
275 @param name The name of the user that is joining the conversation. |
9554 | 276 @param flags The flags of the user that is joining the conversation. |
6605 | 277 @endsignaldef |
278 | |
279 @signaldef chat-buddy-joined | |
280 @signalproto | |
9554 | 281 void (*chat_buddy_joined)(GaimConversation *conv, const char *name, |
12850
49b2347863b2
[gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents:
12639
diff
changeset
|
282 GaimConvChatBuddyFlags flags, |
49b2347863b2
[gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents:
12639
diff
changeset
|
283 gboolean new_arrival); |
6605 | 284 @endsignalproto |
285 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
286 Emitted when a buddy joined a chat, after the users list is updated. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
287 @param conv The chat conversation. |
9554 | 288 @param name The name of the user that has joined the conversation. |
289 @param flags The flags of the user that has joined the conversation. | |
12850
49b2347863b2
[gaim-migrate @ 15200]
Richard Laager <rlaager@wiktel.com>
parents:
12639
diff
changeset
|
290 @param new_arrival If the buddy is a new arrival. |
9554 | 291 @endsignaldef |
292 | |
293 @signaldef chat-buddy-flags | |
294 @signalproto | |
295 void (*chat_buddy_flags)(GaimConversation *conv, const char *name, | |
296 GaimConvChatBuddyFlags oldflags, | |
297 GaimConvChatBuddyFlags newflags); | |
298 @endsignalproto | |
299 @signaldesc | |
300 Emitted when a user in a chat changes flags. | |
301 @param conv The chat conversation. | |
302 @param name The name of the user. | |
303 @param oldflags The old flags. | |
304 @param newflags The new flags. | |
6605 | 305 @endsignaldef |
306 | |
307 @signaldef chat-buddy-leaving | |
308 @signalproto | |
9587 | 309 gboolean (*chat_buddy_leaving)(GaimConversation *conv, const char *name, |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
310 const char *reason); |
6605 | 311 @endsignalproto |
312 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
313 Emitted when a user is leaving a chat, before the user list is updated. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
314 This may include an optional reason why the user is leaving. |
9587 | 315 @return @c TRUE if the leave should be hidden, or @c FALSE otherwise. |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
316 @param conv The chat conversation. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
317 @param name The name of the user that is leaving the chat. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
318 @param reason The optional reason why the user is leaving. |
6605 | 319 @endsignaldef |
320 | |
321 @signaldef chat-buddy-left | |
322 @signalproto | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
323 void (*chat_buddy_left)(GaimConversation *conv, const char *name, |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
324 const char *reason); |
6605 | 325 @endsignalproto |
326 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
327 Emitted when a user leaves a chat, after the user list is updated. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
328 This may include an optional reason why the user is leaving. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
329 @param conv The chat conversation. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
330 @param name The name of the user that left the chat. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
331 @param reason The optional reason why the user left the chat. |
6605 | 332 @endsignaldef |
333 | |
334 @signaldef chat-inviting-user | |
335 @signalproto | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
336 void (*chat_inviting_user)(GaimConversation *conv, const char *name, |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
337 char **invite_message); |
6605 | 338 @endsignalproto |
339 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
340 Emitted when a user is being invited to the chat. The callback can |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
341 replace the invite message to the invitee by modifying the pointer to |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
342 the invite message. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
343 @note |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
344 Make sure to free @a *invite_message before you replace it! |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
345 @param conv The chat conversation. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
346 @param name The name of the user being invited. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
347 @param invite_message A pointer to the reason why a user is being |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
348 invited. |
6605 | 349 @endsignaldef |
350 | |
351 @signaldef chat-invited-user | |
352 @signalproto | |
6610
3beb00af2e1a
[gaim-migrate @ 7134]
Christian Hammond <chipx86@chipx86.com>
parents:
6609
diff
changeset
|
353 void (*chat_invited_user)(GaimConversation *conv, const char *name, |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
354 const char *invite_message); |
6605 | 355 @endsignalproto |
356 @signaldesc | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
357 Emitted when a user invited another user to a chat. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
358 @param conv The chat conversation. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
359 @param conv The name of the user that was invited. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
360 @param invite_message The message to be sent to the user when invited. |
6605 | 361 @endsignaldef |
362 | |
363 @signaldef chat-invited | |
364 @signalproto | |
11064
e4459e8ccfb5
[gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents:
10104
diff
changeset
|
365 gint (*chat_invited)(GaimAccount *account, const char *inviter, |
9514 | 366 const char *chat, const char *invite_message |
11474
7e9635b73ed6
[gaim-migrate @ 13715]
Gary Kramlich <grim@reaperworld.com>
parents:
11064
diff
changeset
|
367 const GHashTable *components); |
6605 | 368 @endsignalproto |
369 @signaldesc | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
370 Emitted when an account was invited to a chat. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
371 @param account The account being invited. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
372 @param inviter The username of the person inviting the account. |
9484 | 373 @param chat The name of the chat you're being invited to. |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
374 @param invite_message The optional invite message. |
9514 | 375 @param components The components necessary if you want to call |
376 serv_join_chat | |
11064
e4459e8ccfb5
[gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents:
10104
diff
changeset
|
377 @return Less than zero if the invitation should be rejected, greater than |
e4459e8ccfb5
[gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents:
10104
diff
changeset
|
378 zero if the invitation should be accepted. If zero is returned, the |
e4459e8ccfb5
[gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents:
10104
diff
changeset
|
379 default behavior will be maintained: the user will be prompted. |
6605 | 380 @endsignaldef |
381 | |
382 @signaldef chat-joined | |
383 @signalproto | |
6610
3beb00af2e1a
[gaim-migrate @ 7134]
Christian Hammond <chipx86@chipx86.com>
parents:
6609
diff
changeset
|
384 void (*chat_joined)(GaimConversation *conv); |
6605 | 385 @endsignalproto |
386 @signaldesc | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
387 Emitted when an account joins a chat room. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
388 @param conv The conversation that joined the chat room. |
6605 | 389 @endsignaldef |
390 | |
391 @signaldef chat-left | |
392 @signalproto | |
6610
3beb00af2e1a
[gaim-migrate @ 7134]
Christian Hammond <chipx86@chipx86.com>
parents:
6609
diff
changeset
|
393 void (*chat_left)(GaimConversation *conv); |
6605 | 394 @endsignalproto |
395 @signaldesc | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
396 Emitted when an account leaves a chat room. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
397 @param conv The conversation that left the chat room. |
6605 | 398 @endsignaldef |
399 | |
9517 | 400 @signaldef chat-topic-changed |
401 @signalproto | |
402 void (*chat_topic_changed)(GaimConversation *conv, const char *who, const char *topic); | |
403 @endsignalproto | |
404 @signaldesc | |
405 Emitted when the topic is changed in a chat. | |
406 @param conv The conversation whose topic changed. | |
407 @param who The name of the person that changed the topic. | |
408 @param topic The new topic. | |
409 @endsignaldef | |
410 | |
6605 | 411 */ |
412 // vim: syntax=c tw=75 et |