summaryrefslogtreecommitdiff
path: root/addressbook/libedata-book/e-book-backend.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2011-06-26 12:05:54 -0400
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-08-02 21:34:04 -0400
commit61b0957c7e5fdf774242cab8cbecf7786aea4895 (patch)
tree5d865013e5a6457b52d19756d28f9f08e5ff69b0 /addressbook/libedata-book/e-book-backend.h
parentd33b300beb70ad425df68de9677a3403e598ad64 (diff)
downloadevolution-data-server-61b0957c7e5fdf774242cab8cbecf7786aea4895.tar.gz
Handle fields-of-interest for local addressbook backend.
This patch refactors the local addressbook backend to use the new sqlitedb api instead of the old summary apis. The result is that vcards are virtually built from the sqlitedb cache when fields-of-interest is set. Additionally, the patch adds the EBookBackend->notify_update() vfunc which can be implemented for e_book_backend_notify_update(). The file backend uses this to notify with virtually created vcards from the sqlite cache in response to contact additions and modifications. This patch should address both bugs: https://bugzilla.gnome.org/show_bug.cgi?id=652179 https://bugzilla.gnome.org/show_bug.cgi?id=652172
Diffstat (limited to 'addressbook/libedata-book/e-book-backend.h')
-rw-r--r--addressbook/libedata-book/e-book-backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/addressbook/libedata-book/e-book-backend.h b/addressbook/libedata-book/e-book-backend.h
index f0347309f..dbb35e617 100644
--- a/addressbook/libedata-book/e-book-backend.h
+++ b/addressbook/libedata-book/e-book-backend.h
@@ -79,6 +79,8 @@ struct _EBookBackendClass {
void (* start_book_view) (EBookBackend *backend, EDataBookView *book_view);
void (* stop_book_view) (EBookBackend *backend, EDataBookView *book_view);
+ void (* notify_update) (EBookBackend *backend, const EContact *contact);
+
/* Notification signals */
void (* last_client_gone) (EBookBackend *backend);
void (* sync) (EBookBackend *backend);