aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r--addressbook/backend/ebook/e-book.c41
-rw-r--r--addressbook/backend/ebook/e-book.h5
2 files changed, 46 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/e-book.c b/addressbook/backend/ebook/e-book.c
index ca9faff929..3fa0852dc4 100644
--- a/addressbook/backend/ebook/e-book.c
+++ b/addressbook/backend/ebook/e-book.c
@@ -1306,6 +1306,47 @@ e_book_get_book_view (EBook *book,
}
guint
+e_book_get_completion_view (EBook *book,
+ const gchar *query,
+ EBookBookViewCallback cb,
+ gpointer closure)
+{
+ CORBA_Environment ev;
+ EBookViewListener *listener;
+ guint tag;
+
+ g_return_val_if_fail (book != NULL, 0);
+ g_return_val_if_fail (E_IS_BOOK (book), 0);
+
+ if (book->priv->load_state != URILoaded) {
+ g_warning ("e_book_get_completion_view: No URI loaded!\n");
+ return 0;
+ }
+
+ listener = e_book_view_listener_new();
+
+ CORBA_exception_init (&ev);
+
+ tag = e_book_queue_op (book, cb, closure, listener);
+
+ GNOME_Evolution_Addressbook_Book_getCompletionView (book->priv->corba_book,
+ bonobo_object_corba_objref(BONOBO_OBJECT(listener)),
+ query, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("e_book_get_completion_view: Exception "
+ "getting completion_view!\n");
+ CORBA_exception_free (&ev);
+ e_book_unqueue_op (book);
+ return 0;
+ }
+
+ CORBA_exception_free (&ev);
+
+ return tag;
+}
+
+guint
e_book_get_changes (EBook *book,
gchar *changeid,
EBookBookViewCallback cb,
diff --git a/addressbook/backend/ebook/e-book.h b/addressbook/backend/ebook/e-book.h
index 1403a23f60..b1549f4f8e 100644
--- a/addressbook/backend/ebook/e-book.h
+++ b/addressbook/backend/ebook/e-book.h
@@ -126,6 +126,11 @@ guint e_book_get_book_view (EBook *book,
EBookBookViewCallback cb,
gpointer closure);
+guint e_book_get_completion_view (EBook *book,
+ const gchar *query,
+ EBookBookViewCallback cb,
+ gpointer closure);
+
guint e_book_get_changes (EBook *book,
char *changeid,
EBookBookViewCallback cb,