server.h

Go to the documentation of this file.
00001 
00025 #ifndef _GAIM_SERVER_H_
00026 #define _GAIM_SERVER_H_
00027 
00028 /*
00029  * Really user states are controlled by the PRPLs now. We just
00030  * use this for event_away
00031  */
00032 #define UC_UNAVAILABLE  1
00033 
00034 #include "account.h"
00035 #include "conversation.h"
00036 #include "prpl.h"
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 void serv_login(GaimAccount *);
00043 void serv_close(GaimConnection *);
00044 void serv_touch_idle(GaimConnection *);
00045 int  serv_send_im(GaimConnection *, const char *, const char *, GaimConvImFlags);
00046 void serv_get_info(GaimConnection *, const char *);
00047 void serv_get_dir(GaimConnection *, const char *);
00048 void serv_set_idle(GaimConnection *, int);
00049 void serv_set_info(GaimConnection *, const char *);
00050 void serv_set_away(GaimConnection *, const char *, const char *);
00051 void serv_set_away_all(const char *);
00052 int  serv_send_typing(GaimConnection *, const char *, int);
00053 void serv_change_passwd(GaimConnection *, const char *, const char *);
00054 void serv_add_buddy(GaimConnection *, GaimBuddy *);
00055 void serv_add_buddies(GaimConnection *, GList *);
00056 void serv_remove_buddy(GaimConnection *, GaimBuddy *, GaimGroup *);
00057 void serv_remove_buddies(GaimConnection *, GList *, GList *);
00058 void serv_remove_group(GaimConnection *, GaimGroup *);
00059 void serv_move_buddy(GaimBuddy *, GaimGroup *, GaimGroup *);
00060 void serv_rename_group(GaimConnection *, const char *, GaimGroup *, GList *);
00061 void serv_add_permit(GaimConnection *, const char *);
00062 void serv_add_deny(GaimConnection *, const char *);
00063 void serv_rem_permit(GaimConnection *, const char *);
00064 void serv_rem_deny(GaimConnection *, const char *);
00065 void serv_set_permit_deny(GaimConnection *);
00066 void serv_warn(GaimConnection *, const char *, gboolean);
00067 void serv_set_dir(GaimConnection *, const char *, const char *,
00068                   const char *, const char *, const char *,
00069                   const char *, const char *, int);
00070 void serv_dir_search(GaimConnection *, const char *, const char *,
00071                      const char *, const char *, const char *, const char *,
00072                      const char *, const char *);
00073 void serv_join_chat(GaimConnection *, GHashTable *);
00074 void serv_reject_chat(GaimConnection *, GHashTable *);
00075 void serv_chat_invite(GaimConnection *, int, const char *, const char *);
00076 void serv_chat_leave(GaimConnection *, int);
00077 void serv_chat_whisper(GaimConnection *, int, const char *, const char *);
00078 int  serv_chat_send(GaimConnection *, int, const char *);
00079 void serv_alias_buddy(GaimBuddy *);
00080 void serv_got_alias(GaimConnection *gc, const char *who, const char *alias);
00081 void serv_got_eviled(GaimConnection *gc, const char *name, int lev);
00082 void serv_got_typing(GaimConnection *gc, const char *name, int timeout,
00083                      GaimTypingState state);
00084 void serv_set_buddyicon(GaimConnection *gc, const char *filename);
00085 void serv_got_typing_stopped(GaimConnection *gc, const char *name);
00086 void serv_got_im(GaimConnection *gc, const char *who, const char *msg,
00087                  GaimConvImFlags imflags, time_t mtime);
00088 void serv_got_update(GaimConnection *gc, const char *name, gboolean loggedin,
00089                      int evil, time_t signon, time_t idle, int type);
00090 void serv_finish_login(GaimConnection *gc);
00091 void serv_got_chat_invite(GaimConnection *gc, const char *name,
00092                           const char *who, const char *message,
00093                           GHashTable *data);
00094 GaimConversation *serv_got_joined_chat(GaimConnection *gc,
00095                                        int id, const char *name);
00096 void serv_got_chat_left(GaimConnection *g, int id);
00097 void serv_got_chat_in(GaimConnection *g, int id, const char *who,
00098                       GaimConvChatFlags chatflags, const char *message, time_t mtime);
00099 void serv_send_file(GaimConnection *gc, const char *who, const char *file);
00100 
00101 #ifdef __cplusplus
00102 }
00103 #endif
00104 
00105 #endif /* _GAIM_SERVER_H_ */

Generated on Sun Feb 18 08:39:33 2007 for gaim by  doxygen 1.5.1