server.h

Go to the documentation of this file.
00001 
00006 /* purple
00007  *
00008  * Purple is the legal property of its developers, whose names are too numerous
00009  * to list here.  Please refer to the COPYRIGHT file distributed with this
00010  * source distribution.
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
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 /* _PURPLE_SERVER_H_ */