EDataBook.DataBookViewWatcherMemory¶
- 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.DataBookViewWatcherMemory(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A structure used as a default implementation to handle “manual query” views by the
EDataBook.BookBackend
.New in version 3.50.
- classmethod new(backend, view)¶
- Parameters:
backend (
EDataBook.BookBackend
) – anEDataBook.BookBackend
view (
EDataBook.DataBookView
) – anEDataBook.DataBookView
- Returns:
- Return type:
Creates a new
EDataBook.DataBookViewWatcherMemory
, which will watch the view and will provide the information about indices and total contacts to the backend. The locale is taken from the backend during the creation process too.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.
- set_locale(locale)¶
-
Sets a locale to use for sorting. When
None
, or when cannot use the provided locale, tries to use the system locale.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.