BookClientCursor
Object Hierarchy:
Description:
[ CCode ( type_id = "e_book_client_cursor_get_type ()" ) ]
[ Version ( since = "3.12" ) ]
public class BookClientCursor : Object, Initable
Contains only private data.
Content:
Properties:
- public string[] alphabet { owned get; }
The currently active alphabet.
- public BookClient client { owned get; construct; }
- public DBusConnection connection { construct; }
The DBusConnection to the addressbook
server.
- public MainContext context { construct; }
The MainContext in which the
BookClient created this cursor.
- public string object_path { construct; }
The D-Bus object path to find the server side cursor object.
- public int position { get; }
The current cursor position in the cursor's result list.
- public string[] sort_fields { construct; }
The ContactField names to sort this cursor
with
- public int total { get; }
The total number of contacts which satisfy the cursor's query.
Creation methods:
Methods:
- public unowned string[] get_alphabet (out int n_labels, out int underflow, out int inflow, out int overflow)
Fetches the array of displayable labels for the active alphabet
.
- public int get_contact_alphabetic_index (Contact contact)
Checks which alphabetic index contact
would be sorted
into according to this.
- public int get_position ()
Fetches the number of contacts leading up to the current cursor
position, inclusive of the current cursor position.
- public int get_total ()
Fetches the total number of contacts in the addressbook which match
this's query
- public BookClient ref_client ()
Returns the
client associated with this.
- public async bool set_alphabetic_index (int index, Cancellable? cancellable) throws Error
Sets the current cursor position to point to an Alphabetic Index
.
- public bool set_alphabetic_index_sync (int index, Cancellable? cancellable = null) throws Error
Sets the cursor to point to an Alphabetic Index.
- public async bool set_sexp (string sexp, Cancellable? cancellable) throws Error
Sets the Search Expression for the cursor.
- public bool set_sexp_sync (string sexp, Cancellable? cancellable = null) throws Error
Sets the Search Expression for the cursor.
- public async int step (BookCursorStepFlags flags, BookCursorOrigin origin, int count, Cancellable? cancellable, out SList<Contact> out_contacts) throws Error
Steps the cursor through the results by a maximum of
count
and fetch the results traversed.
- public int step_sync (BookCursorStepFlags flags, BookCursorOrigin origin, int count, out SList<Contact> out_contacts, Cancellable? cancellable = null) throws Error
Steps the cursor through the results by a maximum of
count
and fetch the results traversed.
Signals:
Inherited Members:
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.Initable