Mercurial > pidgin
comparison plugins/SIGNALS @ 3517:6b0cb60162f4
[gaim-migrate @ 3590]
Rob McQueen added a mute feature to his nice little docklet. I added a
queuing feature. Configure the docklet in the plugins dialog to queue
unread messages, and when you receive a message the docklet will eat it up
and show a little message pending icon. Click on it, and read your message.
ICQ people will like it.
I also made plugin_event use a va_list.
I bet this breaks perl.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Mon, 16 Sep 2002 08:35:24 +0000 |
| parents | c11960537fee |
| children | cf00549c53d7 |
comparison
equal
deleted
inserted
replaced
| 3516:db00eb77997d | 3517:6b0cb60162f4 |
|---|---|
| 27 event_im_displayed_sent, | 27 event_im_displayed_sent, |
| 28 event_im_displayed_rcvd, | 28 event_im_displayed_rcvd, |
| 29 event_chat_send_invite, | 29 event_chat_send_invite, |
| 30 event_got_typing, | 30 event_got_typing, |
| 31 event_del_conversation, | 31 event_del_conversation, |
| 32 event_connecting, | |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 To add a signal handler, call the fuction gaim_signal_connect with the | 35 To add a signal handler, call the fuction gaim_signal_connect with the |
| 35 following arguments: | 36 following arguments: |
| 36 | 37 |
| 293 you set *what to NULL the message won't be sent, but the preferred | 294 you set *what to NULL the message won't be sent, but the preferred |
| 294 way of doing this is to attach to event_im_send so that it really | 295 way of doing this is to attach to event_im_send so that it really |
| 295 won't be displayed at all. | 296 won't be displayed at all. |
| 296 | 297 |
| 297 event_im_displayed_rcvd: | 298 event_im_displayed_rcvd: |
| 298 struct gaim_connection *gc, char *who, char *what, guint32 flags | 299 struct gaim_connection *gc, char *who, char *what, guint32 flags, time_t time |
| 299 | 300 |
| 300 This is called after what you receive is displayed. This is useful | 301 This is called after what you receive is displayed. This is useful |
| 301 for displaying an autoresponse after the message that triggered it. | 302 for displaying an autoresponse after the message that triggered it. |
| 302 There are a bunch of things that are odd about this, especially | 303 There are a bunch of things that are odd about this, especially |
| 303 when dealing with being away, so be careful. | 304 when dealing with being away, so be careful. |
| 304 | 305 |
| 305 'gc' is the connection the message was received on. | 306 'gc' is the connection the message was received on. |
| 306 'who' is who sent the message. | 307 'who' is who sent the message. |
| 307 'what' is what was sent. | 308 'what' is what was sent. |
| 308 'flags' is flags on the message. | 309 'flags' is flags on the message. |
| 310 'time' is the time the message was received--it may be very different from the | |
| 311 time this signal gets called | |
| 309 | 312 |
| 310 event_chat_send_invite: | 313 event_chat_send_invite: |
| 311 struct gaim_connection *gc, int id, char *who, char **msg | 314 struct gaim_connection *gc, int id, char *who, char **msg |
| 312 | 315 |
| 313 This is called just before you're about to invite someone. It's | 316 This is called just before you're about to invite someone. It's |
| 330 notifications in direct IMs, and Yahoo can receive them any | 333 notifications in direct IMs, and Yahoo can receive them any |
| 331 time. | 334 time. |
| 332 | 335 |
| 333 'gc' is the connection the typing is sent to. | 336 'gc' is the connection the typing is sent to. |
| 334 'who' is the person typing to you. | 337 'who' is the person typing to you. |
| 338 | |
| 335 event_del_conversation: | 339 event_del_conversation: |
| 336 struct conversation *c | 340 struct conversation *c |
| 337 | 341 |
| 338 This is called when a conversation window is closed. It is | 342 This is called when a conversation window is closed. It is |
| 339 called before any memory is deallocated so you are able to | 343 called before any memory is deallocated so you are able to |
| 340 access any data related to the conversation without breaking | 344 access any data related to the conversation without breaking |
| 341 anything. | 345 anything. |
| 342 | 346 |
| 343 'c' is he conversation being closed. | 347 'c' is he conversation being closed. |
| 348 | |
| 349 event_connecting | |
| 350 struct aim_user *u | |
| 351 | |
| 352 This is called when Gaim attempts to bring a user on-line. The | |
| 353 boolean u->connecting is set to true, and a global counter | |
| 354 incremented. The attempt can end with event_signon or event_signoff | |
| 355 being called, depending upon whether the attempt was a sucess or | |
| 356 a failure. In both cases, u->connecting is set to false and the | |
| 357 counter decremented. | |
| 358 | |
| 359 'u' is the account being connected |
