| Evolution-Data-Server Manual: Address Book Backend (libedata-book) | ||||
|---|---|---|---|---|
EContact * e_book_backend_db_cache_get_contact (DB *db, constgchar *uid);void string_to_dbt (constgchar *str,DBT *dbt);gchar * e_book_backend_db_cache_get_filename (DB *db);void e_book_backend_db_cache_set_filename (DB *db, constgchar *filename);gboolean e_book_backend_db_cache_add_contact (DB *db,EContact *contact);gboolean e_book_backend_db_cache_remove_contact (DB *db, constgchar *uid);gboolean e_book_backend_db_cache_check_contact (DB *db, constgchar *uid);GList * e_book_backend_db_cache_get_contacts (DB *db, constgchar *query);gboolean e_book_backend_db_cache_exists (constgchar *uri);void e_book_backend_db_cache_set_populated (DB *db);gboolean e_book_backend_db_cache_is_populated (DB *db);GPtrArray * e_book_backend_db_cache_search (DB *db, constgchar *query);void e_book_backend_db_cache_set_time (DB *db, constgchar *t);gchar * e_book_backend_db_cache_get_time (DB *db);
EContact * e_book_backend_db_cache_get_contact (DB *db, constgchar *uid);
Get a cached contact. Note that the returned
|
DB Handle |
|
a unique contact ID |
Returns : |
A cached NULLuid is not cached.
|
gchar * e_book_backend_db_cache_get_filename (DB *db);
Get the filename for db cacahe file.
|
DB Handle |
Returns : |
void e_book_backend_db_cache_set_filename (DB *db, constgchar *filename);
Set the filename for db cacahe file.
|
DB Handle |
|
filename to be set |
gboolean e_book_backend_db_cache_add_contact (DB *db,EContact *contact);
Adds contact to cache.
|
DB Handle |
|
an |
Returns : |
TRUEFALSE |
gboolean e_book_backend_db_cache_remove_contact (DB *db, constgchar *uid);
Removes the contact identified by uid from cache.
|
DB Handle |
|
a unique contact ID |
Returns : |
TRUEFALSE |
gboolean e_book_backend_db_cache_check_contact (DB *db, constgchar *uid);
Checks if the contact identified by uid exists in cache.
|
DB Handle |
|
a unique contact ID |
Returns : |
TRUEFALSE |
GList * e_book_backend_db_cache_get_contacts (DB *db, constgchar *query);
Returns a list of cache matching query.
When done with the list, the caller must unref the contacts and
free the list.
|
DB Handle |
|
an s-expression |
Returns : |
A |
gboolean e_book_backend_db_cache_exists (constgchar *uri);
Checks if an EBookBackendCache exists at uri.
|
URI for the cache |
Returns : |
TRUEFALSE |
void e_book_backend_db_cache_set_populated (DB *db);
Flags cache as being populated - that is, it is up-to-date on the
contents of the book it's caching.
|
gboolean e_book_backend_db_cache_is_populated (DB *db);
|
|
Returns : |
GPtrArray * e_book_backend_db_cache_search (DB *db, constgchar *query);
Returns an array of pointers to unique contact ID strings for contacts
in cache matching query. When done with the array, the caller must
free the ID strings and the array.
|
|
|
an s-expression |
Returns : |
A |
void e_book_backend_db_cache_set_time (DB *db, constgchar *t);
|
|
|