Class
ValentContactStore
since: 1.0
Description [src]
abstract class Valent.ContactStore : Valent.Object {
parent_instance: ValentObject
}
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
Instance methods
valent_contact_store_add_contact
A convenience wrapper around valent_contact_store_add_contacts()
for
adding a single contact.
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()
.
since: 1.0
valent_contact_store_contact_added
Emits ValentContactStore::contact-added
signal on store
.
since: 1.0
valent_contact_store_get_contact_finish
Finish an operation started by valent_contact_store_get_contact().
since: 1.0
valent_contact_store_get_contacts
A convenience wrapper around valent_contact_store_query()
for searching
contacts by UID.
since: 1.0
valent_contact_store_query_finish
Finish an operation started by valent_contact_store_query()
.
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()
.
since: 1.0
Methods inherited from ValentObject (8)
valent_object_chain_cancellable
Chain a cancellable to the object’s cancellable.
since: 1.0
valent_object_destroy
Destroy the object.
since: 1.0
valent_object_in_destruction
Get whether the object is destroyed or in destruction.
since: 1.0
valent_object_lock
Acquire a lock on object
.
since: 1.0
valent_object_notify
Emit GObject::notify
on object
, on the main thread.
since: 1.0
valent_object_notify_by_pspec
Emit GObject::notify
on object
, on the main thread.
since: 1.0
valent_object_ref_cancellable
Get a GCancellable
for the object.
since: 1.0
valent_object_unlock
Release a lock on object
.
since: 1.0
Signals
Signals inherited from ValentObject (1)
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.contact_added
Emits ValentContactStore::contact-added
signal on store
.
since: 1.0
Valent.ContactStoreClass.contact_removed
Emits ValentContactStore::contact-removed
on store
.
since: 1.0