Interface
PurpleProtocolContacts
unstable since: 3.0
Description [src]
interface Purple.ProtocolContacts : Purple.Protocol
PurpleProtocolContacts
provides methods for interacting with remote contacts.
Available since: 3.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
.
unstable since: 3.0
purple_protocol_contacts_get_minimum_search_length
Gets the minimum length of the search term before
purple_protocol_contacts_search_async()
should be called.
unstable since: 3.0
purple_protocol_contacts_get_profile_async
Starts the process requesting the user profile for info
.
unstable since: 3.0
purple_protocol_contacts_get_profile_finish
Finishes a previous call to purple_protocol_contacts_get_profile_async()
and
gets the result.
unstable since: 3.0
purple_protocol_contacts_implements_search
Checks if protocol_contacts
implements
Purple.ProtocolContactsInterface.search_async
and
Purple.ProtocolContactsInterface.search_finish
.
unstable since: 3.0
purple_protocol_contacts_search_async
Starts the process of searching for contacts using account
that match
text
.
unstable since: 3.0
purple_protocol_contacts_search_finish
Finishes a previous call to purple_protocol_contacts_search_async()
and
gets the result.
unstable since: 3.0
Interface structure
struct PurpleProtocolContactsInterface {
guint (* get_minimum_search_length) (
PurpleProtocolContacts* protocol_contacts
);
void (* search_async) (
PurpleProtocolContacts* protocol_contacts,
PurpleAccount* account,
const char* text,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
);
GListModel* (* search_finish) (
PurpleProtocolContacts* protocol_contacts,
GAsyncResult* result,
GError** error
);
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
);
}
No description available.
Interface members
get_minimum_search_length |
|
No description available. |
|
search_async |
|
No description available. |
|
search_finish |
|
No description available. |
|
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
.
unstable since: 3.0
Purple.ProtocolContacts.get_minimum_search_length
Gets the minimum length of the search term before
purple_protocol_contacts_search_async()
should be called.
unstable since: 3.0
Purple.ProtocolContacts.get_profile_async
Starts the process requesting the user profile for info
.
unstable since: 3.0
Purple.ProtocolContacts.get_profile_finish
Finishes a previous call to purple_protocol_contacts_get_profile_async()
and
gets the result.
unstable since: 3.0
Purple.ProtocolContacts.search_async
Starts the process of searching for contacts using account
that match
text
.
unstable since: 3.0
Purple.ProtocolContacts.search_finish
Finishes a previous call to purple_protocol_contacts_search_async()
and
gets the result.
unstable since: 3.0