EDataBook.DataBookViewWatcherCache¶
- 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.DataBookViewWatcherCache(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A structure used to handle “manual query” views for
EDataBook.BookBackenddescendants which useEDataBook.BookCacheto store the contacts.New in version 3.50.
- classmethod new(backend, cache, view)¶
 - Parameters:
 backend (
EDataBook.BookBackend) – anEDataBook.BookBackendcache (
EDataBook.BookCache) – anEDataBook.BookCacheview (
EDataBook.DataBookView) – anEDataBook.DataBookView
- Returns:
 - Return type:
 
Creates a new
EDataBook.DataBookViewWatcherCache, which will watch the view and will provide the information about indices and total contacts to the backend, taking the data from the cache.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
Nonewhen 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.BookClientViewSortFieldsorNone) – 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.