Interface
PurpleProtocolServer
since: 3.0
Description [src]
interface Purple.ProtocolServer : Purple.Protocol
PurpleProtocolServer
describes the API for protocols that have a central server.
Available since: 3.0
Prerequisite
In order to implement ProtocolServer, your type must inherit fromPurpleProtocol
.
Instance methods
purple_protocol_server_change_passwd
Changes the user’s password from old_pass
to new_pass
.
since: 3.0
purple_protocol_server_get_info
Gets the user info or profile for who
and displays it in a protocol
specific way.
since: 3.0
purple_protocol_server_send_raw
Sends raw data over the protocol. This should only be called when you know the exact underlying protocol.
since: 3.0
purple_protocol_server_set_idle
Tells protocol_server
to set the user’s idle time to idletime
.
since: 3.0
purple_protocol_server_set_info
Sets the user info, sometimes referred to as a user profile to info
.
since: 3.0
Interface structure
struct PurpleProtocolServerInterface {
void (* set_info) (
PurpleProtocolServer* protocol_server,
PurpleConnection* connection,
const gchar* info
);
void (* get_info) (
PurpleProtocolServer* protocol_server,
PurpleConnection* connection,
const gchar* who
);
void (* set_idle) (
PurpleProtocolServer* protocol_server,
PurpleConnection* connection,
gint idletime
);
void (* change_passwd) (
PurpleProtocolServer* protocol_server,
PurpleConnection* connection,
const gchar* old_pass,
const gchar* new_pass
);
gint (* send_raw) (
PurpleProtocolServer* protocol_server,
PurpleConnection* connection,
const gchar* buf,
gint len
);
}
Interface members
set_info |
|
No description available. | |
get_info |
|
No description available. | |
set_idle |
|
No description available. | |
change_passwd |
|
No description available. | |
send_raw |
|
No description available. |
Virtual methods
Purple.ProtocolServer.change_passwd
Changes the user’s password from old_pass
to new_pass
.
since: 3.0
Purple.ProtocolServer.get_info
Gets the user info or profile for who
and displays it in a protocol
specific way.
since: 3.0
Purple.ProtocolServer.send_raw
Sends raw data over the protocol. This should only be called when you know the exact underlying protocol.
since: 3.0
Purple.ProtocolServer.set_idle
Tells protocol_server
to set the user’s idle time to idletime
.
since: 3.0
Purple.ProtocolServer.set_info
Sets the user info, sometimes referred to as a user profile to info
.
since: 3.0