Interface
PurpleProtocolContacts
since: 3.0.0
Description [src]
interface Purple.ProtocolContacts : Purple.Protocol
PurpleProtocolContacts
provides methods for interacting with remote contacts.
Available since: 3.0.0
Prerequisite
In order to implement ProtocolContacts, your type must inherit fromPurpleProtocol
.
Instance methods
purple_protocol_contacts_get_actions
Gets a GActionGroup
for info
. When this action group is used,
it should use the prefix of contact
.
since: 3.0.0
purple_protocol_contacts_get_profile_async
Starts the process requesting the user profile for info
.
since: 3.0.0
purple_protocol_contacts_get_profile_finish
Finishes a previous call to purple_protocol_contacts_get_profile_async()
and
gets the result.
since: 3.0.0
Interface structure
struct PurpleProtocolContactsInterface {
void (* get_profile_async) (
PurpleProtocolContacts* protocol_contacts,
PurpleContactInfo* info,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
);
char* (* get_profile_finish) (
PurpleProtocolContacts* protocol_contacts,
GAsyncResult* result,
GError** error
);
GActionGroup* (* get_actions) (
PurpleProtocolContacts* protocol_contacts,
PurpleContactInfo* info
);
GMenuModel* (* get_menu) (
PurpleProtocolContacts* protocol_contacts,
PurpleContactInfo* info
);
}
This interface defines the behavior for interacting with contacts at the protocol layer. These methods will primarily be called by the user interface.
Interface members
get_profile_async |
|
No description available. | |
get_profile_finish |
|
No description available. | |
get_actions |
|
No description available. | |
get_menu |
|
No description available. |
Virtual methods
Purple.ProtocolContacts.get_actions
Gets a GActionGroup
for info
. When this action group is used,
it should use the prefix of contact
.
since: 3.0.0
Purple.ProtocolContacts.get_profile_async
Starts the process requesting the user profile for info
.
since: 3.0.0
Purple.ProtocolContacts.get_profile_finish
Finishes a previous call to purple_protocol_contacts_get_profile_async()
and
gets the result.
since: 3.0.0