Interface

PurpleProtocolContactSearch

since: 3.0.0

Description [src]

interface Purple.ProtocolContactSearch : Purple.Protocol

The PurpleProtocolContactSearch interface defines the behavior to search for new contacts to add to your contact list. A user interface will use these methods to help users find new contacts.

Available since: 3.0.0

Prerequisite

In order to implement ProtocolContactSearch, your type must inherit fromPurpleProtocol.

Instance methods

purple_protocol_contact_search_search_async

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

since: 3.0.0

purple_protocol_contact_search_search_finish

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

since: 3.0.0

Interface structure

struct PurpleProtocolContactSearchInterface {
  void (* search_async) (
    PurpleProtocolContactSearch* search,
    PurpleAccount* account,
    const char* text,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer data
  );
  GListModel* (* search_finish) (
    PurpleProtocolContactSearch* search,
    GAsyncResult* result,
    GError** error
  );
  
}

This interface defines the behavior to implement searching for new contacts.

Interface members
search_async
void (* search_async) (
    PurpleProtocolContactSearch* search,
    PurpleAccount* account,
    const char* text,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer data
  )
 No description available.
search_finish
GListModel* (* search_finish) (
    PurpleProtocolContactSearch* search,
    GAsyncResult* result,
    GError** error
  )
 No description available.

Virtual methods

Purple.ProtocolContactSearch.search_async

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

since: 3.0.0

Purple.ProtocolContactSearch.search_finish

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

since: 3.0.0