Class

ValentContactStore

unstable since: 1.0

Description [src]

abstract class Valent.ContactStore : Valent.Object
{
  /* No available fields */
}

An abstract base class for address books.

ValentContactStore is a base class to provide an interface to an address book. This usually means adding, removing and querying contacts.

Available since: 1.0

Hierarchy

hierarchy this ValentContactStore ancestor_0 ValentObject ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Ancestors

Instance methods

valent_contact_store_add_contact

A convenience wrapper around valent_contact_store_add_contacts() for adding a single contact.

unstable since: 1.0

valent_contact_store_add_contacts

Add contacts to store.

unstable since: 1.0

valent_contact_store_add_contacts_finish

Finish an operation started by valent_contact_store_add_contact() or valent_contact_store_add_contacts().

unstable since: 1.0

valent_contact_store_contact_added

Emits ValentContactStore::contact-added signal on store.

unstable since: 1.0

valent_contact_store_contact_removed

Emits ValentContactStore::contact-removed on store.

unstable since: 1.0

valent_contact_store_get_contact

Get a contact by UID.

unstable since: 1.0

valent_contact_store_get_contact_finish

Finish an operation started by valent_contact_store_get_contact().

unstable since: 1.0

valent_contact_store_get_contacts

A convenience wrapper around valent_contact_store_query() for searching contacts by UID.

unstable since: 1.0

valent_contact_store_get_name

Get the display name of store.

unstable since: 1.0

valent_contact_store_get_source

Get the ESource backing store.

unstable since: 1.0

valent_contact_store_get_uid

Get the UID of store.

unstable since: 1.0

valent_contact_store_query

Query store for contacts matching query.

unstable since: 1.0

valent_contact_store_query_finish

Finish an operation started by valent_contact_store_query().

unstable since: 1.0

valent_contact_store_remove_contact

Remove contact uid from store.

unstable since: 1.0

valent_contact_store_remove_contacts

Remove contact uid from store.

unstable since: 1.0

valent_contact_store_remove_contacts_finish

Finish an operation started by valent_contact_store_remove_contact() or valent_contact_store_remove_contacts().

unstable since: 1.0

valent_contact_store_set_name

Set the display name of store to name.

unstable since: 1.0

Methods inherited from ValentObject (8)
valent_object_chain_cancellable

Chain a cancellable to the object’s cancellable.

unstable since: 1.0

valent_object_destroy

Destroy the object.

unstable since: 1.0

valent_object_in_destruction

Get whether the object is destroyed or in destruction.

unstable since: 1.0

valent_object_lock

Acquire a lock on object.

unstable since: 1.0

valent_object_notify

Emit GObject::notify on object, on the main thread.

unstable since: 1.0

valent_object_notify_by_pspec

Emit GObject::notify on object, on the main thread.

unstable since: 1.0

valent_object_ref_cancellable

Get a GCancellable for the object.

unstable since: 1.0

valent_object_unlock

Release a lock on object.

unstable since: 1.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Valent.ContactStore:name

The display name.

unstable since: 1.0

Valent.ContactStore:source

The store ESource.

unstable since: 1.0

Valent.ContactStore:uid

The unique identifier.

unstable since: 1.0

Properties inherited from ValentObject (1)
Valent.Object:cancellable

The object GCancellable.

unstable since: 1.0

Signals

Valent.ContactStore::contact-added

Emitted when an EContact is added to store.

unstable since: 1.0

Valent.ContactStore::contact-removed

Emitted when an EContact is removed from store.

unstable since: 1.0

Signals inherited from ValentObject (1)
ValentObject::destroy

Emitted when the object is being destroyed.

unstable since: 1.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct ValentContactStoreClass {
  ValentObjectClass parent_class;
  void (* add_contacts) (
    ValentContactStore* store,
    GSList* contacts,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  );
  void (* remove_contacts) (
    ValentContactStore* store,
    GSList* uids,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  );
  void (* query) (
    ValentContactStore* store,
    const char* query,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  );
  void (* get_contact) (
    ValentContactStore* store,
    const char* uid,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  );
  void (* contact_added) (
    ValentContactStore* store,
    EContact* contact
  );
  void (* contact_removed) (
    ValentContactStore* store,
    const char* uid
  );
  
}

The virtual function table for ValentContactStore.

Class members
parent_class: ValentObjectClass
No description available.
add_contacts: void (* add_contacts) ( ValentContactStore* store, GSList* contacts, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data )
No description available.
remove_contacts: void (* remove_contacts) ( ValentContactStore* store, GSList* uids, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data )
No description available.
query: void (* query) ( ValentContactStore* store, const char* query, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data )
No description available.
get_contact: void (* get_contact) ( ValentContactStore* store, const char* uid, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data )
No description available.
contact_added: void (* contact_added) ( ValentContactStore* store, EContact* contact )
No description available.
contact_removed: void (* contact_removed) ( ValentContactStore* store, const char* uid )
No description available.

Virtual methods

Valent.ContactStoreClass.add_contacts

Add contacts to store.

unstable since: 1.0

Valent.ContactStoreClass.contact_added

Emits ValentContactStore::contact-added signal on store.

unstable since: 1.0

Valent.ContactStoreClass.contact_removed

Emits ValentContactStore::contact-removed on store.

unstable since: 1.0

Valent.ContactStoreClass.get_contact

Get a contact by UID.

unstable since: 1.0

Valent.ContactStoreClass.query

Query store for contacts matching query.

unstable since: 1.0

Valent.ContactStoreClass.remove_contacts

Remove contact uid from store.

unstable since: 1.0