Top | ![]() |
![]() |
![]() |
![]() |
EDataBookViewWatcherMemoryEDataBookViewWatcherMemory — Watch EDataBookView changes with contacts in memory |
This is the default implementation of "manual query" views for an EBookBackend. It listens for the changes in the provided EDataBookView and keeps in memory information about the indices of the book view and the contacts.
See E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY
for what it means "manual query" view.
GObject * e_data_book_view_watcher_memory_new (EBookBackend *backend
,EDataBookView *view
);
Creates a new EDataBookViewWatcherMemory, 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.
Since: 3.50
void e_data_book_view_watcher_memory_set_locale (EDataBookViewWatcherMemory *self
,const gchar *locale
);
Sets a locale to use for sorting. When NULL
, or when cannot
use the provided locale, tries to use the system locale.
Since: 3.50
void e_data_book_view_watcher_memory_take_sort_fields (EDataBookViewWatcherMemory *self
,EBookClientViewSortFields *sort_fields
);
Sets sort_fields
as fields to sort the contacts by. If NULL
,
sorts by file-as field. The function assumes ownership of the sort_fields
.
Since: 3.50
struct EDataBookViewWatcherMemory;
A structure used as a default implementation to handle "manual query" views by the EBookBackend.
Since: 3.50