EDataBook.DataBookCursorCache¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
The |
||
w/co |
The |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataBook.DataBookCursorCache(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque handle for the
EDataBook.BookCache
cursor instance.New in version 3.26.
- classmethod new(book_backend, book_cache, sort_fields, sort_types)¶
- Parameters:
book_backend (
EDataBook.BookBackend
) – theEDataBook.BookBackend
creating this cursorbook_cache (
EDataBook.BookCache
) – theEDataBook.BookCache
object to base this cursor onsort_fields ([
EBookContacts.ContactField
]) – an array ofEBookContacts.ContactFields
as sort keys in order of prioritysort_types ([
EBookContacts.BookCursorSortType
]) – an array ofEBookContacts.BookCursorSortTypes
, one for each field in sort_fields
- Raises:
- Returns:
A newly created
EDataBook.DataBookCursor
, orNone
if cursor creation failed.- Return type:
Creates an
EDataBook.DataBookCursor
and implements all of the cursor methods using the delegate book_cache object.This is suitable cursor type for any backend which stores its contacts using the
EDataBook.BookCache
object. TheEDataBook.BookMetaBackend
does that transparently.New in version 3.26.
Property Details¶
- EDataBook.DataBookCursorCache.props.book_cache¶
- Name:
book-cache
- Type:
- Default Value:
- Flags:
The
EDataBook.BookCache
to use for queries
- EDataBook.DataBookCursorCache.props.cursor¶
- Name:
cursor
- Type:
- Default Value:
- Flags:
The
EDataBook.BookCacheCursor
pointer