BookClient
Object Hierarchy:
Description:
[ CCode ( type_id = "e_book_client_get_type ()" ) ]
[ Version ( since = "3.2" ) ]
public class BookClient : Client, AsyncInitable, Initable
Contains only private data that should be read and manipulated using the functions below.
Content:
Properties:
Static methods:
- public static async BookClient connect (Source source, uint32 wait_for_connected_seconds, Cancellable? cancellable) throws Error
Asynchronously creates a new BookClient for
source
.
- public static async BookClient connect_direct (Source source, uint32 wait_for_connected_seconds, Cancellable? cancellable) throws Error
Like connect
, except creates the book client for direct read access to the underlying addressbook.
- public static BookClient connect_direct_sync (SourceRegistry registry, Source source, uint32 wait_for_connected_seconds, Cancellable? cancellable = null) throws Error
Like
connect_sync, except creates the book client for direct read access to the underlying addressbook.
- public static BookClient connect_sync (Source source, uint32 wait_for_connected_seconds, Cancellable? cancellable = null) throws Error
Creates a new BookClient for source
.
- public static bool get_self (SourceRegistry registry, out Contact out_contact, out BookClient out_client) throws Error
Get the Contact referring to the user of
the address book and set it in out_contact
and out_client
.
- public static bool is_self (Contact contact)
Check if contact
is the user of the address book.
Creation methods:
Methods:
- public async bool add_contact (Contact contact, BookOperationFlags opflags, Cancellable? cancellable, out string out_added_uid) throws Error
Adds contact
to this.
- public bool add_contact_sync (Contact contact, BookOperationFlags opflags, out string out_added_uid, Cancellable? cancellable = null) throws Error
Adds contact
to this
and sets out_added_uid
to a UID of a newly added contact.
- public async bool add_contacts (SList<Contact> contacts, BookOperationFlags opflags, Cancellable? cancellable, out SList<string> out_added_uids) throws Error
Adds contacts
to this.
- public bool add_contacts_sync (SList<Contact> contacts, BookOperationFlags opflags, out SList<string> out_added_uids, Cancellable? cancellable = null) throws Error
Adds contacts
to this
and sets out_added_uids
to the UIDs of newly added contacts if successful.
- public async bool contains_email (string email_address, Cancellable? cancellable) throws Error
Asynchronously checks whether contains an email_address
.
- public bool contains_email_sync (string email_address, Cancellable? cancellable = null) throws Error
- public async bool get_contact (string uid, Cancellable? cancellable, out Contact out_contact) throws Error
Receive Contact from the
this for the gived uid
.
- public bool get_contact_sync (string uid, out Contact out_contact, Cancellable? cancellable = null) throws Error
Receive Contact from the
this for the gived uid
.
- public async bool get_contacts (string sexp, Cancellable? cancellable, out SList<Contact> out_contacts) throws Error
Query this with sexp
,
receiving a list of contacts which matched.
- public bool get_contacts_sync (string sexp, out SList<Contact> out_contacts, Cancellable? cancellable = null) throws Error
Query this with sexp
,
receiving a list of contacts which matched.
- public async bool get_contacts_uids (string sexp, Cancellable? cancellable, out SList<string> out_contact_uids) throws Error
Query this with sexp
,
receiving a list of contacts UIDs which matched.
- public bool get_contacts_uids_sync (string sexp, out SList<string> out_contact_uids, Cancellable? cancellable = null) throws Error
Query this with sexp
,
receiving a list of contacts UIDs which matched.
- public async bool get_cursor (string sexp, ContactField sort_fields, BookCursorSortType sort_types, uint n_fields, Cancellable? cancellable, out BookClientCursor out_cursor) throws Error
- public bool get_cursor_sync (string sexp, ContactField sort_fields, BookCursorSortType sort_types, uint n_fields, out BookClientCursor out_cursor, Cancellable? cancellable = null) throws Error
- public unowned string get_locale ()
Reports the locale in use for this.
- public async bool get_view (string sexp, Cancellable? cancellable, out BookClientView out_view) throws Error
- public bool get_view_sync (string sexp, out BookClientView out_view, Cancellable? cancellable = null) throws Error
- public async bool modify_contact (Contact contact, BookOperationFlags opflags, Cancellable? cancellable) throws Error
Applies the changes made to contact
to the stored version
in this.
- public bool modify_contact_sync (Contact contact, BookOperationFlags opflags, Cancellable? cancellable = null) throws Error
Applies the changes made to contact
to the stored version
in this.
- public async bool modify_contacts (SList<Contact> contacts, BookOperationFlags opflags, Cancellable? cancellable) throws Error
Applies the changes made to contacts
to the stored
versions in this.
- public bool modify_contacts_sync (SList<Contact> contacts, BookOperationFlags opflags, Cancellable? cancellable = null) throws Error
Applies the changes made to contacts
to the stored
versions in this.
- public async bool remove_contact (Contact contact, BookOperationFlags opflags, Cancellable? cancellable) throws Error
Removes contact
from the this
.
- public async bool remove_contact_by_uid (string uid, BookOperationFlags opflags, Cancellable? cancellable) throws Error
Removes contact with uid
from the
this.
- public bool remove_contact_by_uid_sync (string uid, BookOperationFlags opflags, Cancellable? cancellable = null) throws Error
Removes contact with uid
from the
this.
- public bool remove_contact_sync (Contact contact, BookOperationFlags opflags, Cancellable? cancellable = null) throws Error
Removes contact
from the this
.
- public async bool remove_contacts (SList<string> uids, BookOperationFlags opflags, Cancellable? cancellable) throws Error
Removes the contacts with uids from the list uids
from
this.
- public bool remove_contacts_sync (SList<string> uids, BookOperationFlags opflags, Cancellable? cancellable = null) throws Error
Removes the contacts with uids from the list uids
from
this.
- public bool set_self (Contact contact) throws Error
Specify that contact
residing in
this is the Contact that refers to the user of the address book.
Inherited Members:
All known members inherited from class E.Client
- backend_died
- backend_error
- backend_property_changed
- cancel_all
- capabilities
- check_capability
- check_refresh_supported
- dup_bus_name
- error_create
- error_quark
- error_to_string
- get_backend_property
- get_backend_property_sync
- get_capabilities
- get_source
- is_online
- is_opened
- is_readonly
- main_context
- online
- open
- open_sync
- opened
- readonly
- ref_main_context
- refresh
- refresh_sync
- remove
- remove_sync
- retrieve_capabilities
- retrieve_capabilities_sync
- retrieve_properties
- retrieve_properties_sync
- set_backend_property
- set_backend_property_sync
- set_bus_name
- source
- unwrap_dbus_error
- util_copy_object_slist
- util_copy_string_slist
- util_free_object_slist
- util_free_string_slist
- util_parse_comma_strings
- util_slist_to_strv
- util_strv_to_slist
- util_unwrap_dbus_error
- wait_for_connected
- wait_for_connected_sync
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.AsyncInitable
All known members inherited from interface GLib.Initable