Mercurial > pidgin.yaz
comparison plugins/SIGNALS @ 136:4e91b92f91a7
[gaim-migrate @ 146]
Added event_back and event_buddy_back events.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 19 Apr 2000 07:57:20 +0000 |
parents | e277d5f0c1dd |
children | be408b41c172 |
comparison
equal
deleted
inserted
replaced
135:e9852a08f9c6 | 136:4e91b92f91a7 |
---|---|
1 enum gaim_event { | 1 enum gaim_event { |
2 event_signon = 0, | 2 event_signon = 0, |
3 event_signoff, | 3 event_signoff, |
4 event_away, | 4 event_away, |
5 event_back, | |
5 event_im_recv, | 6 event_im_recv, |
6 event_im_send, | 7 event_im_send, |
7 event_buddy_signon, | 8 event_buddy_signon, |
8 event_buddy_signoff, | 9 event_buddy_signoff, |
9 event_buddy_away, | 10 event_buddy_away, |
11 event_buddy_back, | |
10 event_blist_update | 12 event_blist_update |
11 }; | 13 }; |
12 | 14 |
13 To add a signal handler, call the fuction gaim_signal_connect with the | 15 To add a signal handler, call the fuction gaim_signal_connect with the |
14 following arguments: | 16 following arguments: |
39 | 41 |
40 event_signon: | 42 event_signon: |
41 (none) | 43 (none) |
42 | 44 |
43 Note that you can get the username (which would probably be the only | 45 Note that you can get the username (which would probably be the only |
44 useful information here) from other places. (Read gaim.h for details). | 46 useful information here) from other places. (Read gaim.h for details.) |
45 | 47 |
46 event_signoff: | 48 event_signoff: |
47 (none) | 49 (none) |
48 | 50 |
49 event_away: | 51 event_away: |
52 (none) | |
53 | |
54 Note that the away message that's being used can be retrieved from a | |
55 global variable. (Read gaim.h for details.) | |
56 | |
57 event_back: | |
50 (none) | 58 (none) |
51 | 59 |
52 event_im_recv: | 60 event_im_recv: |
53 char **who, char **text | 61 char **who, char **text |
54 | 62 |
83 event_buddy_away: | 91 event_buddy_away: |
84 char *who | 92 char *who |
85 | 93 |
86 'who' is who went away. | 94 'who' is who went away. |
87 | 95 |
96 event_buddy_back: | |
97 char *who | |
98 | |
99 'who' is who is no longer away. | |
100 | |
88 event_blist_update: | 101 event_blist_update: |
89 (none) | 102 (none) |
90 | 103 |
91 This event is called when the buddylist is updated (automatically every | 104 This event is called when the buddylist is updated (automatically every |
92 20 seconds) | 105 20 seconds) |