| 39 * @gc: The connection over which to send the typing notification. |
39 * @gc: The connection over which to send the typing notification. |
| 40 * @name: The user to send the typing notification to. |
40 * @name: The user to send the typing notification to. |
| 41 * @state: One of PURPLE_IM_TYPING, PURPLE_IM_TYPED, or PURPLE_IM_NOT_TYPING. |
41 * @state: One of PURPLE_IM_TYPING, PURPLE_IM_TYPED, or PURPLE_IM_NOT_TYPING. |
| 42 * |
42 * |
| 43 * Send a typing message to a given user over a given connection. |
43 * Send a typing message to a given user over a given connection. |
| 44 * |
|
| 45 * @todo Could probably move this into the conversation API. |
|
| 46 * |
44 * |
| 47 * Returns: A quiet-period, specified in seconds, where Purple will not |
45 * Returns: A quiet-period, specified in seconds, where Purple will not |
| 48 * send any additional typing notification messages. Most |
46 * send any additional typing notification messages. Most |
| 49 * protocols should return 0, which means that no additional |
47 * protocols should return 0, which means that no additional |
| 50 * PURPLE_IM_TYPING messages need to be sent. If this is 5, for |
48 * PURPLE_IM_TYPING messages need to be sent. If this is 5, for |
| 51 * example, then Purple will wait five seconds, and if the Purple |
49 * example, then Purple will wait five seconds, and if the Purple |
| 52 * user is still typing then Purple will send another PURPLE_IM_TYPING |
50 * user is still typing then Purple will send another PURPLE_IM_TYPING |
| 53 * message. |
51 * message. |
| 54 */ |
52 */ |
| |
53 /* TODO Could probably move this into the conversation API. */ |
| 55 unsigned int serv_send_typing(PurpleConnection *gc, const char *name, PurpleIMTypingState state); |
54 unsigned int serv_send_typing(PurpleConnection *gc, const char *name, PurpleIMTypingState state); |
| 56 |
55 |
| 57 void serv_move_buddy(PurpleBuddy *, PurpleGroup *, PurpleGroup *); |
56 void serv_move_buddy(PurpleBuddy *, PurpleGroup *, PurpleGroup *); |
| 58 int serv_send_im(PurpleConnection *, const char *, const char *, PurpleMessageFlags flags); |
57 int serv_send_im(PurpleConnection *, const char *, const char *, PurpleMessageFlags flags); |
| 59 |
58 |