Interface

PurpleProtocolContacts

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.

since: 3.0

purple_protocol_contacts_get_menu

Gets a GMenuModel for info.

since: 3.0

purple_protocol_contacts_get_profile_async

Starts the process requesting the user profile for info.

since: 3.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

purple_protocol_contacts_search_async

Starts the process of searching for contacts using account that match text.

since: 3.0

purple_protocol_contacts_search_finish

Finishes a previous call to purple_protocol_contacts_search_async() and gets the result.

since: 3.0

Interface structure

struct PurpleProtocolContactsInterface {
  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
search_async
void (* search_async) (
    PurpleProtocolContacts* protocol_contacts,
    PurpleAccount* account,
    const char* text,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer data
  )
 No description available.
search_finish
GListModel* (* search_finish) (
    PurpleProtocolContacts* protocol_contacts,
    GAsyncResult* result,
    GError** error
  )
 No description available.
get_profile_async
void (* get_profile_async) (
    PurpleProtocolContacts* protocol_contacts,
    PurpleContactInfo* info,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer data
  )
 No description available.
get_profile_finish
char* (* get_profile_finish) (
    PurpleProtocolContacts* protocol_contacts,
    GAsyncResult* result,
    GError** error
  )
 No description available.
get_actions
GActionGroup* (* get_actions) (
    PurpleProtocolContacts* protocol_contacts,
    PurpleContactInfo* info
  )
 No description available.
get_menu
GMenuModel* (* get_menu) (
    PurpleProtocolContacts* protocol_contacts,
    PurpleContactInfo* info
  )
 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

Purple.ProtocolContacts.get_menu

Gets a GMenuModel for info.

since: 3.0

Purple.ProtocolContacts.get_profile_async

Starts the process requesting the user profile for info.

since: 3.0

Purple.ProtocolContacts.get_profile_finish

Finishes a previous call to purple_protocol_contacts_get_profile_async() and gets the result.

since: 3.0

Purple.ProtocolContacts.search_async

Starts the process of searching for contacts using account that match text.

since: 3.0

Purple.ProtocolContacts.search_finish

Finishes a previous call to purple_protocol_contacts_search_async() and gets the result.

since: 3.0