aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-book.h
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-03-11 15:13:43 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-03-11 15:13:43 +0800
commit6e1b023154b916012e1fb5d629b7118081bd457a (patch)
tree3034b2e7cec1eb0654d4073e6580409beb2be231 /addressbook/backend/ebook/e-book.h
parent6da96db8dd1fc783a025fb1db9ecf46430f744d6 (diff)
downloadgsoc2013-evolution-6e1b023154b916012e1fb5d629b7118081bd457a.tar
gsoc2013-evolution-6e1b023154b916012e1fb5d629b7118081bd457a.tar.gz
gsoc2013-evolution-6e1b023154b916012e1fb5d629b7118081bd457a.tar.bz2
gsoc2013-evolution-6e1b023154b916012e1fb5d629b7118081bd457a.tar.lz
gsoc2013-evolution-6e1b023154b916012e1fb5d629b7118081bd457a.tar.xz
gsoc2013-evolution-6e1b023154b916012e1fb5d629b7118081bd457a.tar.zst
gsoc2013-evolution-6e1b023154b916012e1fb5d629b7118081bd457a.zip
Added. A simplified, cancellable query mechanism that lets you avoid
2001-03-11 Jon Trowbridge <trow@ximian.com> * backend/ebook/e-book.c (e_book_simple_query): Added. A simplified, cancellable query mechanism that lets you avoid dealing with EBookView. (e_book_simple_query_cancel): Added. Cancels a running query. * backend/ebook/e-book-types.h: Add enum EBookSimpleQueryStatus. svn path=/trunk/; revision=8627
Diffstat (limited to 'addressbook/backend/ebook/e-book.h')
-rw-r--r--addressbook/backend/ebook/e-book.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/e-book.h b/addressbook/backend/ebook/e-book.h
index d992f63471..2521edb24f 100644
--- a/addressbook/backend/ebook/e-book.h
+++ b/addressbook/backend/ebook/e-book.h
@@ -50,6 +50,8 @@ typedef void (*EBookCursorCallback) (EBook *book, EBookStatus status, ECardCurso
typedef void (*EBookBookViewCallback) (EBook *book, EBookStatus status, EBookView *book_view, gpointer closure);
typedef void (*EBookFieldsCallback) (EBook *book, EBookStatus status, EList *fields, gpointer closure);
+typedef void (*EBookSimpleQueryCallback) (EBook *book, EBookSimpleQueryStatus status, const GList *cards, gpointer closure);
+
/* Creating a new addressbook. */
EBook *e_book_new (void);
@@ -131,6 +133,15 @@ gboolean e_book_get_changes (EBook *book,
EBookBookViewCallback cb,
gpointer closure);
+/* Simple Query Interface. */
+
+guint e_book_simple_query (EBook *book,
+ char *query,
+ EBookSimpleQueryCallback cb,
+ gpointer closure);
+void e_book_simple_query_cancel (EBook *book,
+ guint tag);
+
/* Getting the name of the repository. */
char *e_book_get_name (EBook *book);