pidgin 2.14.14dev
Loading...
Searching...
No Matches
server.h
Go to the documentation of this file.
1
6/* purple
7 *
8 * Purple is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 */
26#ifndef _PURPLE_SERVER_H_
27#define _PURPLE_SERVER_H_
28
29#include "account.h"
30#include "conversation.h"
31#include "prpl.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
53unsigned int serv_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state);
54
55void serv_move_buddy(PurpleBuddy *, PurpleGroup *, PurpleGroup *);
56int serv_send_im(PurpleConnection *, const char *, const char *, PurpleMessageFlags flags);
57
63
77void serv_send_attention(PurpleConnection *gc, const char *who, guint type_code);
78
88void serv_got_attention(PurpleConnection *gc, const char *who, guint type_code);
89
90void serv_get_info(PurpleConnection *, const char *);
91void serv_set_info(PurpleConnection *, const char *);
92
93void serv_add_permit(PurpleConnection *, const char *);
94void serv_add_deny(PurpleConnection *, const char *);
95void serv_rem_permit(PurpleConnection *, const char *);
96void serv_rem_deny(PurpleConnection *, const char *);
97void serv_set_permit_deny(PurpleConnection *);
98void serv_chat_invite(PurpleConnection *, int, const char *, const char *);
99void serv_chat_leave(PurpleConnection *, int);
100void serv_chat_whisper(PurpleConnection *, int, const char *, const char *);
101int serv_chat_send(PurpleConnection *, int, const char *, PurpleMessageFlags flags);
102void serv_alias_buddy(PurpleBuddy *);
103void serv_got_alias(PurpleConnection *gc, const char *who, const char *alias);
104
114void purple_serv_got_private_alias(PurpleConnection *gc, const char *who, const char *alias);
115
116
133void serv_got_typing(PurpleConnection *gc, const char *name, int timeout,
134 PurpleTypingState state);
135
139void serv_got_typing_stopped(PurpleConnection *gc, const char *name);
140
141void serv_got_im(PurpleConnection *gc, const char *who, const char *msg,
142 PurpleMessageFlags flags, time_t mtime);
143
148void serv_join_chat(PurpleConnection *, GHashTable *data);
149
154void serv_reject_chat(PurpleConnection *, GHashTable *data);
155
167void serv_got_chat_invite(PurpleConnection *gc, const char *name,
168 const char *who, const char *message,
169 GHashTable *data);
170
180 int id, const char *name);
191
199
210void serv_got_chat_in(PurpleConnection *g, int id, const char *who,
211 PurpleMessageFlags flags, const char *message, time_t mtime);
212void serv_send_file(PurpleConnection *gc, const char *who, const char *file);
213void serv_chat_send_file(PurpleConnection *gc, int id, const char *file);
214
215#ifdef __cplusplus
216}
217#endif
218
219#endif /* _PURPLE_SERVER_H_ */
Account API.
Conversation API.
PurpleTypingState
The typing state of a user.
PurpleMessageFlags
Flags applicable to a message.
Protocol Plugin functions.
void serv_send_attention(PurpleConnection *gc, const char *who, guint type_code)
Send an attention request message.
void serv_reject_chat(PurpleConnection *, GHashTable *data)
PurpleAttentionType * purple_get_attention_type_from_code(PurpleAccount *account, guint type_code)
Get information about an account's attention commands, from the prpl.
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.
void serv_got_typing(PurpleConnection *gc, const char *name, int timeout, PurpleTypingState state)
Receive a typing message from a remote user.
void serv_got_chat_left(PurpleConnection *g, int id)
Called by a prpl when an account has left a chat.
PurpleConversation * serv_got_joined_chat(PurpleConnection *gc, int id, const char *name)
Called by a prpl when an account has joined a chat.
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.
unsigned int serv_send_typing(PurpleConnection *gc, const char *name, PurpleTypingState state)
Send a typing message to a given user over a given connection.
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.
void serv_join_chat(PurpleConnection *, GHashTable *data)
void serv_got_typing_stopped(PurpleConnection *gc, const char *name)
TODO: Could probably move this into the conversation API.
void serv_got_attention(PurpleConnection *gc, const char *who, guint type_code)
Process an incoming attention message.
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.
Structure representing an account.
Definition account.h:170
Represents "nudges" and "buzzes" that you may send to a buddy to attract their attention (or vice-ver...
Definition prpl.h:118
A buddy.
Definition blist.h:140
A core representation of a conversation between two or more people.
A group.
Definition blist.h:169