#include "blist.h"
#include "conversation.h"
#include "ft.h"
#include "imgstore.h"
#include "notify.h"
#include "proxy.h"
#include "plugin.h"
#include "roomlist.h"
#include "status.h"
#include "whiteboard.h"
Include dependency graph for prpl.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | _PurpleBuddyIconSpec |
struct | proto_chat_entry |
struct | _PurpleAttentionType |
struct | _PurplePluginProtocolInfo |
A protocol plugin information structure. More... | |
Basic Protocol Information | |
#define | NO_BUDDY_ICONS {NULL, 0, 0, 0, 0, 0, 0} |
This #define exists just to make it easier to fill out the buddy icon field in the prpl info struct for protocols that couldn't care less. | |
#define | PURPLE_IS_PROTOCOL_PLUGIN(plugin) ((plugin)->info->type == PURPLE_PLUGIN_PROTOCOL) |
#define | PURPLE_PLUGIN_PROTOCOL_INFO(plugin) ((PurplePluginProtocolInfo *)(plugin)->info->extra_info) |
typedef _PurpleBuddyIconSpec | PurpleBuddyIconSpec |
A description of a Buddy Icon specification. | |
enum | PurpleIconScaleRules { PURPLE_ICON_SCALE_DISPLAY = 0x01, PURPLE_ICON_SCALE_SEND = 0x02 } |
enum | PurpleProtocolOptions { OPT_PROTO_UNIQUE_CHATNAME = 0x00000004, OPT_PROTO_CHAT_TOPIC = 0x00000008, OPT_PROTO_NO_PASSWORD = 0x00000010, OPT_PROTO_MAIL_CHECK = 0x00000020, OPT_PROTO_IM_IMAGE = 0x00000040, OPT_PROTO_PASSWORD_OPTIONAL = 0x00000080, OPT_PROTO_USE_POINTSIZE = 0x00000100, OPT_PROTO_REGISTER_NOSCREENNAME = 0x00000200, OPT_PROTO_SLASH_COMMANDS_NATIVE = 0x00000400 } |
Protocol options. More... | |
Attention Type API | |
PurpleAttentionType * | purple_attention_type_new (const char *ulname, const char *name, const char *inc_desc, const char *out_desc) |
Creates a new PurpleAttentionType object and sets its mandatory parameters. | |
void | purple_attention_type_set_name (PurpleAttentionType *type, const char *name) |
Sets the displayed name of the attention-demanding event. | |
void | purple_attention_type_set_incoming_desc (PurpleAttentionType *type, const char *desc) |
Sets the description of the attention-demanding event shown in conversations when the event is received. | |
void | purple_attention_type_set_outgoing_desc (PurpleAttentionType *type, const char *desc) |
Sets the description of the attention-demanding event shown in conversations when the event is sent. | |
void | purple_attention_type_set_icon_name (PurpleAttentionType *type, const char *name) |
Sets the name of the icon to display for the attention event; this is optional. | |
void | purple_attention_type_set_unlocalized_name (PurpleAttentionType *type, const char *ulname) |
Sets the unlocalized name of the attention event; some UIs may need this, thus it is required. | |
const char * | purple_attention_type_get_name (const PurpleAttentionType *type) |
Get the attention type's name as displayed by the UI. | |
const char * | purple_attention_type_get_incoming_desc (const PurpleAttentionType *type) |
Get the attention type's description shown when the event is received. | |
const char * | purple_attention_type_get_outgoing_desc (const PurpleAttentionType *type) |
Get the attention type's description shown when the event is sent. | |
const char * | purple_attention_type_get_icon_name (const PurpleAttentionType *type) |
Get the attention type's icon name. | |
const char * | purple_attention_type_get_unlocalized_name (const PurpleAttentionType *type) |
Get the attention type's unlocalized name; this is useful for some UIs. | |
Protocol Plugin API | |
void | purple_prpl_got_account_idle (PurpleAccount *account, gboolean idle, time_t idle_time) |
Notifies Purple that an account's idle state and time have changed. | |
void | purple_prpl_got_account_login_time (PurpleAccount *account, time_t login_time) |
Notifies Purple of an account's log-in time. | |
void | purple_prpl_got_account_status (PurpleAccount *account, const char *status_id,...) G_GNUC_NULL_TERMINATED |
Notifies Purple that an account's status has changed. | |
void | purple_prpl_got_user_idle (PurpleAccount *account, const char *name, gboolean idle, time_t idle_time) |
Notifies Purple that a user's idle state and time have changed. | |
void | purple_prpl_got_user_login_time (PurpleAccount *account, const char *name, time_t login_time) |
Notifies Purple of a user's log-in time. | |
void | purple_prpl_got_user_status (PurpleAccount *account, const char *name, const char *status_id,...) G_GNUC_NULL_TERMINATED |
Notifies Purple that a user's status has been activated. | |
void | purple_prpl_got_user_status_deactive (PurpleAccount *account, const char *name, const char *status_id) |
Notifies libpurple that a user's status has been deactivated. | |
void | purple_prpl_change_account_status (PurpleAccount *account, PurpleStatus *old_status, PurpleStatus *new_status) |
Informs the server that an account's status changed. | |
GList * | purple_prpl_get_statuses (PurpleAccount *account, PurplePresence *presence) |
Retrieves the list of stock status types from a prpl. | |
Protocol Plugin Subsystem API | |
PurplePlugin * | purple_find_prpl (const char *id) |
Finds a protocol plugin structure of the specified type. | |
Typedefs | |
typedef _PurplePluginProtocolInfo | PurplePluginProtocolInfo |
typedef _PurpleAttentionType | PurpleAttentionType |
Definition in file prpl.h.
|
A description of a Buddy Icon specification. This tells Purple what kind of image file it should give this prpl, and what kind of image file it should expect back. Dimensions less than 1 should be ignored and the image not scaled. |
|
|
|
|
Get the attention type's icon name.
|
|
Get the attention type's description shown when the event is received.
|
|
Get the attention type's name as displayed by the UI.
|
|
Get the attention type's description shown when the event is sent.
|
|
Get the attention type's unlocalized name; this is useful for some UIs.
|
|
Creates a new PurpleAttentionType object and sets its mandatory parameters.
|
|
Sets the name of the icon to display for the attention event; this is optional.
|
|
Sets the description of the attention-demanding event shown in conversations when the event is received.
|
|
Sets the displayed name of the attention-demanding event.
|
|
Sets the description of the attention-demanding event shown in conversations when the event is sent.
|
|
Sets the unlocalized name of the attention event; some UIs may need this, thus it is required.
|
|
Finds a protocol plugin structure of the specified type.
|
|
Informs the server that an account's status changed.
|
|
Retrieves the list of stock status types from a prpl.
|
|
Notifies Purple that an account's idle state and time have changed. This is meant to be called from protocol plugins.
|
|
Notifies Purple of an account's log-in time. This is meant to be called from protocol plugins.
|
|
Notifies Purple that an account's status has changed. This is meant to be called from protocol plugins.
|
|
Notifies Purple that a user's idle state and time have changed. This is meant to be called from protocol plugins.
|
|
Notifies Purple of a user's log-in time. This is meant to be called from protocol plugins.
|
|
Notifies Purple that a user's status has been activated. This is meant to be called from protocol plugins.
|
|
Notifies libpurple that a user's status has been deactivated. This is meant to be called from protocol plugins.
|