Mercurial > pidgin.yaz
annotate doc/conversation-signals.dox @ 12767:53218d758ba9
[gaim-migrate @ 15114]
Make the dns lookup for udp connecting asynchronous. Thomas pointed out that it should be instantaneous anyway because the SRV lookup that has just been done, but this'll avoid blocking if the SRV lookup failed or something.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 08 Jan 2006 22:09:28 +0000 |
parents | 366326fa9cb4 |
children | 49b2347863b2 |
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, |
282 GaimConvChatBuddyFlags flags); | |
6605 | 283 @endsignalproto |
284 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
285 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
|
286 @param conv The chat conversation. |
9554 | 287 @param name The name of the user that has joined the conversation. |
288 @param flags The flags of the user that has joined the conversation. | |
289 @endsignaldef | |
290 | |
291 @signaldef chat-buddy-flags | |
292 @signalproto | |
293 void (*chat_buddy_flags)(GaimConversation *conv, const char *name, | |
294 GaimConvChatBuddyFlags oldflags, | |
295 GaimConvChatBuddyFlags newflags); | |
296 @endsignalproto | |
297 @signaldesc | |
298 Emitted when a user in a chat changes flags. | |
299 @param conv The chat conversation. | |
300 @param name The name of the user. | |
301 @param oldflags The old flags. | |
302 @param newflags The new flags. | |
6605 | 303 @endsignaldef |
304 | |
305 @signaldef chat-buddy-leaving | |
306 @signalproto | |
9587 | 307 gboolean (*chat_buddy_leaving)(GaimConversation *conv, const char *name, |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
308 const char *reason); |
6605 | 309 @endsignalproto |
310 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
311 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
|
312 This may include an optional reason why the user is leaving. |
9587 | 313 @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
|
314 @param conv The chat conversation. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
315 @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
|
316 @param reason The optional reason why the user is leaving. |
6605 | 317 @endsignaldef |
318 | |
319 @signaldef chat-buddy-left | |
320 @signalproto | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
321 void (*chat_buddy_left)(GaimConversation *conv, const char *name, |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
322 const char *reason); |
6605 | 323 @endsignalproto |
324 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
325 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
|
326 This may include an optional reason why the user is leaving. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
327 @param conv The chat conversation. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
328 @param name The name of the user that left the chat. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
329 @param reason The optional reason why the user left the chat. |
6605 | 330 @endsignaldef |
331 | |
332 @signaldef chat-inviting-user | |
333 @signalproto | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
334 void (*chat_inviting_user)(GaimConversation *conv, const char *name, |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
335 char **invite_message); |
6605 | 336 @endsignalproto |
337 @signaldesc | |
6608
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
338 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
|
339 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
|
340 the invite message. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
341 @note |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
342 Make sure to free @a *invite_message before you replace it! |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
343 @param conv The chat conversation. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
344 @param name The name of the user being invited. |
bc219e9efb9a
[gaim-migrate @ 7132]
Christian Hammond <chipx86@chipx86.com>
parents:
6606
diff
changeset
|
345 @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
|
346 invited. |
6605 | 347 @endsignaldef |
348 | |
349 @signaldef chat-invited-user | |
350 @signalproto | |
6610
3beb00af2e1a
[gaim-migrate @ 7134]
Christian Hammond <chipx86@chipx86.com>
parents:
6609
diff
changeset
|
351 void (*chat_invited_user)(GaimConversation *conv, const char *name, |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
352 const char *invite_message); |
6605 | 353 @endsignalproto |
354 @signaldesc | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
355 Emitted when a user invited another user to a chat. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
356 @param conv The chat conversation. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
357 @param conv The name of the user that was invited. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
358 @param invite_message The message to be sent to the user when invited. |
6605 | 359 @endsignaldef |
360 | |
361 @signaldef chat-invited | |
362 @signalproto | |
11064
e4459e8ccfb5
[gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents:
10104
diff
changeset
|
363 gint (*chat_invited)(GaimAccount *account, const char *inviter, |
9514 | 364 const char *chat, const char *invite_message |
11474
7e9635b73ed6
[gaim-migrate @ 13715]
Gary Kramlich <grim@reaperworld.com>
parents:
11064
diff
changeset
|
365 const GHashTable *components); |
6605 | 366 @endsignalproto |
367 @signaldesc | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
368 Emitted when an account was invited to a chat. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
369 @param account The account being invited. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
370 @param inviter The username of the person inviting the account. |
9484 | 371 @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
|
372 @param invite_message The optional invite message. |
9514 | 373 @param components The components necessary if you want to call |
374 serv_join_chat | |
11064
e4459e8ccfb5
[gaim-migrate @ 13035]
Richard Laager <rlaager@wiktel.com>
parents:
10104
diff
changeset
|
375 @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
|
376 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
|
377 default behavior will be maintained: the user will be prompted. |
6605 | 378 @endsignaldef |
379 | |
380 @signaldef chat-joined | |
381 @signalproto | |
6610
3beb00af2e1a
[gaim-migrate @ 7134]
Christian Hammond <chipx86@chipx86.com>
parents:
6609
diff
changeset
|
382 void (*chat_joined)(GaimConversation *conv); |
6605 | 383 @endsignalproto |
384 @signaldesc | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
385 Emitted when an account joins a chat room. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
386 @param conv The conversation that joined the chat room. |
6605 | 387 @endsignaldef |
388 | |
389 @signaldef chat-left | |
390 @signalproto | |
6610
3beb00af2e1a
[gaim-migrate @ 7134]
Christian Hammond <chipx86@chipx86.com>
parents:
6609
diff
changeset
|
391 void (*chat_left)(GaimConversation *conv); |
6605 | 392 @endsignalproto |
393 @signaldesc | |
6609
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
394 Emitted when an account leaves a chat room. |
d470295a4945
[gaim-migrate @ 7133]
Christian Hammond <chipx86@chipx86.com>
parents:
6608
diff
changeset
|
395 @param conv The conversation that left the chat room. |
6605 | 396 @endsignaldef |
397 | |
9517 | 398 @signaldef chat-topic-changed |
399 @signalproto | |
400 void (*chat_topic_changed)(GaimConversation *conv, const char *who, const char *topic); | |
401 @endsignalproto | |
402 @signaldesc | |
403 Emitted when the topic is changed in a chat. | |
404 @param conv The conversation whose topic changed. | |
405 @param who The name of the person that changed the topic. | |
406 @param topic The new topic. | |
407 @endsignaldef | |
408 | |
6605 | 409 */ |
410 // vim: syntax=c tw=75 et |