00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _PURPLE_SERVER_H_
00027 #define _PURPLE_SERVER_H_
00028
00029 #include "account.h"
00030 #include "conversation.h"
00031 #include "prpl.h"
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00053 unsigned int serv_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state);
00054
00055 void serv_move_buddy(PurpleBuddy *, PurpleGroup *, PurpleGroup *);
00056 int serv_send_im(PurpleConnection *, const char *, const char *, PurpleMessageFlags flags);
00057
00062 PurpleAttentionType *purple_get_attention_type_from_code(PurpleAccount *account, guint type_code);
00063
00077 void serv_send_attention(PurpleConnection *gc, const char *who, guint type_code);
00078
00088 void serv_got_attention(PurpleConnection *gc, const char *who, guint type_code);
00089
00090 void serv_get_info(PurpleConnection *, const char *);
00091 void serv_set_info(PurpleConnection *, const char *);
00092
00093 void serv_add_permit(PurpleConnection *, const char *);
00094 void serv_add_deny(PurpleConnection *, const char *);
00095 void serv_rem_permit(PurpleConnection *, const char *);
00096 void serv_rem_deny(PurpleConnection *, const char *);
00097 void serv_set_permit_deny(PurpleConnection *);
00098 void serv_chat_invite(PurpleConnection *, int, const char *, const char *);
00099 void serv_chat_leave(PurpleConnection *, int);
00100 void serv_chat_whisper(PurpleConnection *, int, const char *, const char *);
00101 int serv_chat_send(PurpleConnection *, int, const char *, PurpleMessageFlags flags);
00102 void serv_alias_buddy(PurpleBuddy *);
00103 void serv_got_alias(PurpleConnection *gc, const char *who, const char *alias);
00104
00114 void purple_serv_got_private_alias(PurpleConnection *gc, const char *who, const char *alias);
00115
00116
00133 void serv_got_typing(PurpleConnection *gc, const char *name, int timeout,
00134 PurpleTypingState state);
00135
00139 void serv_got_typing_stopped(PurpleConnection *gc, const char *name);
00140
00141 void serv_got_im(PurpleConnection *gc, const char *who, const char *msg,
00142 PurpleMessageFlags flags, time_t mtime);
00143
00148 void serv_join_chat(PurpleConnection *, GHashTable *data);
00149
00154 void serv_reject_chat(PurpleConnection *, GHashTable *data);
00155
00167 void serv_got_chat_invite(PurpleConnection *gc, const char *name,
00168 const char *who, const char *message,
00169 GHashTable *data);
00170
00171 PurpleConversation *serv_got_joined_chat(PurpleConnection *gc,
00172 int id, const char *name);
00182 void purple_serv_got_join_chat_failed(PurpleConnection *gc, GHashTable *data);
00183
00184 void serv_got_chat_left(PurpleConnection *g, int id);
00185 void serv_got_chat_in(PurpleConnection *g, int id, const char *who,
00186 PurpleMessageFlags flags, const char *message, time_t mtime);
00187 void serv_send_file(PurpleConnection *gc, const char *who, const char *file);
00188
00189 #ifdef __cplusplus
00190 }
00191 #endif
00192
00193 #endif