DataBookCursorCache


Description:

[ CCode ( has_construct_function = false , type = "EDataBookCursor*" ) ]
public DataBookCursorCache (BookBackend book_backend, BookCache book_cache, ContactField[] sort_fields, BookCursorSortType[] sort_types) throws Error

Creates an 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 BookCache object. The BookMetaBackend does that transparently.

Parameters:

book_backend

the BookBackend creating this cursor

book_cache

the BookCache object to base this cursor on

sort_fields

an array of ContactFields as sort keys in order of priority

sort_types

an array of BookCursorSortTypes, one for each field in sort_fields

n_fields

the number of fields to sort results by.

Returns:

A newly created DataBookCursor, or null if cursor creation failed.