BookCache


Description:

[ CCode ( has_construct_function = false ) ]
public BookCache (string filename, Source? source, Cancellable? cancellable = null) throws Error

Creates a new BookCache with the default summary configuration.

Aside from the mandatory fields e_contact_uid, e_contact_rev, the default configuration stores the following fields for quick performance of searches: e_contact_file_as, e_contact_nickname, e_contact_full_name, e_contact_given_name, e_contact_family_name, e_contact_email, e_contact_tel, e_contact_is_list, e_contact_list_show_addresses, and e_contact_wants_html.

The fields e_contact_full_name and e_contact_email are configured to respond extra quickly with the e_book_index_prefix index flag.

The fields e_contact_file_as, e_contact_family_name and e_contact_given_name are configured to perform well with the BookCacheCursor, using the e_book_index_sort_key index flag.

Parameters:

filename

file name to load or create the new cache

source

an optional Source, associated with the BookCache, or null

cancellable

optional Cancellable object, or null

Returns:

A new BookCache or null on error