EDataBook.DataBookViewWatcherSqlite¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataBook.DataBookViewWatcherSqlite(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A structure used to handle “manual query” views for
EDataBook.BookBackend
descendants which useEDataBook.BookSqlite
to store the contacts.New in version 3.50.
- classmethod new(backend, ebsql, view)¶
- Parameters:
backend (
EDataBook.BookBackend
) – anEDataBook.BookBackend
ebsql (
EDataBook.BookSqlite
) – anEDataBook.BookSqlite
view (
EDataBook.DataBookView
) – anEDataBook.DataBookView
- Returns:
- Return type:
Creates a new
EDataBook.DataBookViewWatcherSqlite
, which will watch the view and will provide the information about indices and total contacts to the backend, taking the data from the ebsql.New in version 3.50.
- dup_contacts(range_start, range_length)¶
- Parameters:
- Returns:
an array of
EBookContacts.Contact
-s, orNone
, when range_start is out of bounds.- Return type:
Retrieves contacts in the given range. Returns
None
when the range_start is out of bounds. The function can return less than range_length contacts.The returned array should be freed with g_ptr_array_unref(), when no longer needed.
New in version 3.50.
- take_sort_fields(sort_fields)¶
- Parameters:
sort_fields (
EBookContacts.BookClientViewSortFields
orNone
) – anEBookContacts.BookClientViewSortFields
, orNone
Sets sort_fields as fields to sort the contacts by. If
None
, sorts by file-as field. The function assumes ownership of the sort_fields.New in version 3.50.