libpurple/purpleprotocolserver.h

changeset 42656
df9aafbae930
parent 42615
2f3308794a8f
child 42684
bec3fdb35826
equal deleted inserted replaced
42655:db971edd4b59 42656:df9aafbae930
53 * server. 53 * server.
54 * 54 *
55 * Since: 3.0 55 * Since: 3.0
56 */ 56 */
57 57
58 /**
59 * PurpleProtocolServerInterface:
60 * @set_info: Sets the user's profile.
61 * @get_info: Should arrange for purple_notify_userinfo() to be called with the
62 * requested user's profile.
63 * @set_status: Sets the active status for the given account.
64 * @set_idle: Set the idle time for the given account.
65 * @change_passwd: Changes the users password.
66 * @add_buddy: Add a buddy to a group on the server.
67 * @add_buddies: Add multiple buddies on the server at once.
68 * @remove_buddy: Removes the given buddy from the user's buddy list.
69 * @remove_buddies: Removes multiple buddies from the user's buddy list.
70 * @keepalive: If implemented, this will be called regularly for this
71 * protocol's active connections. You'd want to do this if you need
72 * to repeatedly send some kind of keepalive packet to the server
73 * to avoid being disconnected. ("Regularly" is defined to be 30
74 * unless @get_keepalive_interval is implemented to override it).
75 * @get_keepalive_interval: If implemented, this will override the default
76 * keepalive interval.
77 * @alias_buddy: Save/store buddy's alias on server list/roster
78 * @group_buddy: Change a buddy's group on a server list/roster
79 * @rename_group: Rename a group on a server list/roster
80 * @set_buddy_icon: Set the buddy icon for the given connection to @img. The
81 * protocol does <emphasis>NOT</emphasis> own a reference to
82 * @img; if it needs one, it must #g_object_ref(@img) itself.
83 * @remove_group: Removes the given group from the users buddy list.
84 * @send_raw: For use in plugins that may understand the underlying protocol.
85 *
86 * The protocol server interface.
87 *
88 * This interface provides a gateway between purple and the protocol's server.
89 *
90 * Since: 3.0
91 */
92 struct _PurpleProtocolServerInterface { 58 struct _PurpleProtocolServerInterface {
93 /*< private >*/ 59 /*< private >*/
94 GTypeInterface parent; 60 GTypeInterface parent;
95 61
96 /*< public >*/ 62 /*< public >*/

mercurial