server.h

Go to the documentation of this file.
00001 
00025 #ifndef _PURPLE_SERVER_H_
00026 #define _PURPLE_SERVER_H_
00027 
00028 #include "account.h"
00029 #include "conversation.h"
00030 #include "prpl.h"
00031 
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035 
00052 unsigned int serv_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state);
00053 
00054 void serv_move_buddy(PurpleBuddy *, PurpleGroup *, PurpleGroup *);
00055 int  serv_send_im(PurpleConnection *, const char *, const char *, PurpleMessageFlags flags);
00056 void serv_get_info(PurpleConnection *, const char *);
00057 void serv_set_info(PurpleConnection *, const char *);
00058 
00059 void serv_add_permit(PurpleConnection *, const char *);
00060 void serv_add_deny(PurpleConnection *, const char *);
00061 void serv_rem_permit(PurpleConnection *, const char *);
00062 void serv_rem_deny(PurpleConnection *, const char *);
00063 void serv_set_permit_deny(PurpleConnection *);
00064 void serv_chat_invite(PurpleConnection *, int, const char *, const char *);
00065 void serv_chat_leave(PurpleConnection *, int);
00066 void serv_chat_whisper(PurpleConnection *, int, const char *, const char *);
00067 int  serv_chat_send(PurpleConnection *, int, const char *, PurpleMessageFlags flags);
00068 void serv_alias_buddy(PurpleBuddy *);
00069 void serv_got_alias(PurpleConnection *gc, const char *who, const char *alias);
00070 
00087 void serv_got_typing(PurpleConnection *gc, const char *name, int timeout,
00088                      PurpleTypingState state);
00089 
00093 void serv_got_typing_stopped(PurpleConnection *gc, const char *name);
00094 
00095 void serv_got_im(PurpleConnection *gc, const char *who, const char *msg,
00096                  PurpleMessageFlags flags, time_t mtime);
00097 
00102 void serv_join_chat(PurpleConnection *, GHashTable *data);
00103 
00108 void serv_reject_chat(PurpleConnection *, GHashTable *data);
00109 
00121 void serv_got_chat_invite(PurpleConnection *gc, const char *name,
00122                           const char *who, const char *message,
00123                           GHashTable *data);
00124 
00125 PurpleConversation *serv_got_joined_chat(PurpleConnection *gc,
00126                                        int id, const char *name);
00127 void serv_got_chat_left(PurpleConnection *g, int id);
00128 void serv_got_chat_in(PurpleConnection *g, int id, const char *who,
00129                       PurpleMessageFlags flags, const char *message, time_t mtime);
00130 void serv_send_file(PurpleConnection *gc, const char *who, const char *file);
00131 
00132 #ifdef __cplusplus
00133 }
00134 #endif
00135 
00136 #endif /* _PURPLE_SERVER_H_ */