Mercurial > pidgin
comparison libpurple/server.h @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
| author | Elliott Sales de Andrade <qulogic@pidgin.im> |
|---|---|
| date | Sat, 02 Jun 2012 02:30:49 +0000 |
| parents | 98520ee78f12 |
| children |
comparison
equal
deleted
inserted
replaced
| 32818:01ff09d4a463 | 32819:2c6510167895 |
|---|---|
| 28 | 28 |
| 29 #include "account.h" | 29 #include "account.h" |
| 30 #include "conversation.h" | 30 #include "conversation.h" |
| 31 #include "prpl.h" | 31 #include "prpl.h" |
| 32 | 32 |
| 33 #ifdef __cplusplus | 33 G_BEGIN_DECLS |
| 34 extern "C" { | |
| 35 #endif | |
| 36 | 34 |
| 37 /** | 35 /** |
| 38 * Send a typing message to a given user over a given connection. | 36 * Send a typing message to a given user over a given connection. |
| 39 * | 37 * |
| 40 * TODO: Could probably move this into the conversation API. | 38 * TODO: Could probably move this into the conversation API. |
| 58 /** Get information about an account's attention commands, from the prpl. | 56 /** Get information about an account's attention commands, from the prpl. |
| 59 * | 57 * |
| 60 * @return The attention command numbered 'code' from the prpl's attention_types, or NULL. | 58 * @return The attention command numbered 'code' from the prpl's attention_types, or NULL. |
| 61 */ | 59 */ |
| 62 PurpleAttentionType *purple_get_attention_type_from_code(PurpleAccount *account, guint type_code); | 60 PurpleAttentionType *purple_get_attention_type_from_code(PurpleAccount *account, guint type_code); |
| 63 | |
| 64 /** Send an attention request message. | |
| 65 * | |
| 66 * @deprecated Use purple_prpl_send_attention() instead. | |
| 67 * | |
| 68 * @param gc The connection to send the message on. | |
| 69 * @param who Whose attention to request. | |
| 70 * @param type_code An index into the prpl's attention_types list determining the type | |
| 71 * of the attention request command to send. 0 if prpl only defines one | |
| 72 * (for example, Yahoo and MSN), but some protocols define more (MySpaceIM). | |
| 73 * | |
| 74 * Note that you can't send arbitrary PurpleAttentionType's, because there is | |
| 75 * only a fixed set of attention commands. | |
| 76 */ | |
| 77 void serv_send_attention(PurpleConnection *gc, const char *who, guint type_code); | |
| 78 | |
| 79 /** Process an incoming attention message. | |
| 80 * | |
| 81 * @deprecated Use purple_prpl_got_attention() instead. | |
| 82 * | |
| 83 * @param gc The connection that received the attention message. | |
| 84 * @param who Who requested your attention. | |
| 85 * @param type_code An index into the prpl's attention_types list determining the type | |
| 86 * of the attention request command to send. | |
| 87 */ | |
| 88 void serv_got_attention(PurpleConnection *gc, const char *who, guint type_code); | |
| 89 | 61 |
| 90 void serv_get_info(PurpleConnection *, const char *); | 62 void serv_get_info(PurpleConnection *, const char *); |
| 91 void serv_set_info(PurpleConnection *, const char *); | 63 void serv_set_info(PurpleConnection *, const char *); |
| 92 | 64 |
| 93 void serv_add_permit(PurpleConnection *, const char *); | 65 void serv_add_permit(PurpleConnection *, const char *); |
| 209 */ | 181 */ |
| 210 void serv_got_chat_in(PurpleConnection *g, int id, const char *who, | 182 void serv_got_chat_in(PurpleConnection *g, int id, const char *who, |
| 211 PurpleMessageFlags flags, const char *message, time_t mtime); | 183 PurpleMessageFlags flags, const char *message, time_t mtime); |
| 212 void serv_send_file(PurpleConnection *gc, const char *who, const char *file); | 184 void serv_send_file(PurpleConnection *gc, const char *who, const char *file); |
| 213 | 185 |
| 214 #ifdef __cplusplus | 186 G_END_DECLS |
| 215 } | |
| 216 #endif | |
| 217 | 187 |
| 218 #endif /* _PURPLE_SERVER_H_ */ | 188 #endif /* _PURPLE_SERVER_H_ */ |
| 189 |
