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:
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 <link
linkend="cursor-alphabet">active alphabet</link>.
- 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 <link
linkend="cursor-alphabet">Alphabetic Index</link>.
- public bool set_alphabetic_index_sync (int index, Cancellable? cancellable = null) throws Error
Sets the cursor to point to an <link linkend="cursor-alphabet">
Alphabetic Index</link>.
- public async bool set_sexp (string sexp, Cancellable? cancellable) throws Error
Sets the <link linkend="cursor-search">Search Expression<
/link> for the cursor.
- public bool set_sexp_sync (string sexp, Cancellable? cancellable = null) throws Error
Sets the <link linkend="cursor-search">Search Expression<
/link> for the cursor.
- public async int step (BookCursorStepFlags flags, BookCursorOrigin origin, int count, Cancellable? cancellable, out SList<Contact> out_contacts) throws Error
<link linkend="cursor-iteration">Steps the cursor through the
results</link> 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
<link linkend="cursor-iteration">Steps the cursor through the
results</link> by a maximum of count and fetch the results traversed.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface GLib.Initable