server.h
Go to the documentation of this file.
/* purple
*
* Purple is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#ifndef _PURPLE_SERVER_H_
#define _PURPLE_SERVER_H_
#include "account.h"
#include "conversation.h"
#include "prpl.h"
#ifdef __cplusplus
extern "C" {
#endif
unsigned int serv_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state);
void serv_move_buddy(PurpleBuddy *, PurpleGroup *, PurpleGroup *);
int serv_send_im(PurpleConnection *, const char *, const char *, PurpleMessageFlags flags);
PurpleAttentionType *purple_get_attention_type_from_code(PurpleAccount *account, guint type_code);
void serv_send_attention(PurpleConnection *gc, const char *who, guint type_code);
void serv_got_attention(PurpleConnection *gc, const char *who, guint type_code);
void serv_get_info(PurpleConnection *, const char *);
void serv_set_info(PurpleConnection *, const char *);
void serv_add_permit(PurpleConnection *, const char *);
void serv_add_deny(PurpleConnection *, const char *);
void serv_rem_permit(PurpleConnection *, const char *);
void serv_rem_deny(PurpleConnection *, const char *);
void serv_set_permit_deny(PurpleConnection *);
void serv_chat_invite(PurpleConnection *, int, const char *, const char *);
void serv_chat_leave(PurpleConnection *, int);
void serv_chat_whisper(PurpleConnection *, int, const char *, const char *);
int serv_chat_send(PurpleConnection *, int, const char *, PurpleMessageFlags flags);
void serv_alias_buddy(PurpleBuddy *);
void serv_got_alias(PurpleConnection *gc, const char *who, const char *alias);
void purple_serv_got_private_alias(PurpleConnection *gc, const char *who, const char *alias);
void serv_got_typing(PurpleConnection *gc, const char *name, int timeout,
PurpleTypingState state);
void serv_got_typing_stopped(PurpleConnection *gc, const char *name);
void serv_got_im(PurpleConnection *gc, const char *who, const char *msg,
PurpleMessageFlags flags, time_t mtime);
void serv_join_chat(PurpleConnection *, GHashTable *data);
void serv_reject_chat(PurpleConnection *, GHashTable *data);
void serv_got_chat_invite(PurpleConnection *gc, const char *name,
const char *who, const char *message,
GHashTable *data);
PurpleConversation *serv_got_joined_chat(PurpleConnection *gc,
int id, const char *name);
void purple_serv_got_join_chat_failed(PurpleConnection *gc, GHashTable *data);
void serv_got_chat_left(PurpleConnection *g, int id);
void serv_got_chat_in(PurpleConnection *g, int id, const char *who,
PurpleMessageFlags flags, const char *message, time_t mtime);
void serv_send_file(PurpleConnection *gc, const char *who, const char *file);
#ifdef __cplusplus
}
#endif
#endif /* _PURPLE_SERVER_H_ */
prpl.h
serv_join_chat
void serv_join_chat(PurpleConnection *, GHashTable *data)
account.h
serv_got_chat_in
void serv_got_chat_in(PurpleConnection *g, int id, const char *who, PurpleMessageFlags flags, const char *message, time_t mtime)
Called by a prpl when a message has been received in a chat.
_PurpleAttentionType
Represents "nudges" and "buzzes" that you may send to a buddy to attract their attention (or vice-ver...
Definition: prpl.h:117
purple_serv_got_private_alias
void purple_serv_got_private_alias(PurpleConnection *gc, const char *who, const char *alias)
A protocol plugin should call this when it retrieves a private alias from the server.
serv_got_chat_left
void serv_got_chat_left(PurpleConnection *g, int id)
Called by a prpl when an account has left a chat.
purple_get_attention_type_from_code
PurpleAttentionType * purple_get_attention_type_from_code(PurpleAccount *account, guint type_code)
Get information about an account's attention commands, from the prpl.
serv_reject_chat
void serv_reject_chat(PurpleConnection *, GHashTable *data)
PurpleMessageFlags
PurpleMessageFlags
Flags applicable to a message.
Definition: conversation.h:105
serv_got_typing_stopped
void serv_got_typing_stopped(PurpleConnection *gc, const char *name)
TODO: Could probably move this into the conversation API.
serv_send_attention
void serv_send_attention(PurpleConnection *gc, const char *who, guint type_code)
Send an attention request message.
PurpleTypingState
PurpleTypingState
The typing state of a user.
Definition: conversation.h:94
_PurpleAccount
Structure representing an account.
Definition: account.h:169
purple_serv_got_join_chat_failed
void purple_serv_got_join_chat_failed(PurpleConnection *gc, GHashTable *data)
Called by a prpl when an attempt to join a chat via serv_join_chat() fails.
conversation.h
_PurpleGroup
A group.
Definition: blist.h:167
serv_got_attention
void serv_got_attention(PurpleConnection *gc, const char *who, guint type_code)
Process an incoming attention message.
serv_send_typing
unsigned int serv_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state)
Send a typing message to a given user over a given connection.
_PurpleConversation
A core representation of a conversation between two or more people.
Definition: conversation.h:338
serv_got_typing
void serv_got_typing(PurpleConnection *gc, const char *name, int timeout, PurpleTypingState state)
Receive a typing message from a remote user.
serv_got_joined_chat
PurpleConversation * serv_got_joined_chat(PurpleConnection *gc, int id, const char *name)
Called by a prpl when an account has joined a chat.
_PurpleConnection
Definition: connection.h:245
serv_got_chat_invite
void serv_got_chat_invite(PurpleConnection *gc, const char *name, const char *who, const char *message, GHashTable *data)
Called by a prpl when an account is invited into a chat.
_PurpleBuddy
A buddy.
Definition: blist.h:138