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_menu

Gets a GMenuModel for info.

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
guint (* get_minimum_search_length) (
    PurpleProtocolContacts* protocol_contacts
  )
 

No description available.

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.

unstable since: 3.0

Purple.ProtocolContacts.get_menu

Gets a GMenuModel for info.

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