aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-book.h
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-03-18 11:04:54 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-03-18 11:04:54 +0800
commit36c7b8c8ff6c8c711058788ff91a586527280e39 (patch)
treef88231b873cb274cd9f3f88ddbf49167d869aa29 /addressbook/backend/ebook/e-book.h
parentbe6335128da92389defd81dc58132387f1f400d8 (diff)
downloadgsoc2013-evolution-36c7b8c8ff6c8c711058788ff91a586527280e39.tar
gsoc2013-evolution-36c7b8c8ff6c8c711058788ff91a586527280e39.tar.gz
gsoc2013-evolution-36c7b8c8ff6c8c711058788ff91a586527280e39.tar.bz2
gsoc2013-evolution-36c7b8c8ff6c8c711058788ff91a586527280e39.tar.lz
gsoc2013-evolution-36c7b8c8ff6c8c711058788ff91a586527280e39.tar.xz
gsoc2013-evolution-36c7b8c8ff6c8c711058788ff91a586527280e39.tar.zst
gsoc2013-evolution-36c7b8c8ff6c8c711058788ff91a586527280e39.zip
Tag all queued ops. (e_book_cancel_op): Added. Search for a pending op
2001-03-17 Jon Trowbridge <trow@ximian.com> * backend/ebook/e-book.c (e_book_queue_op): Tag all queued ops. (e_book_cancel_op): Added. Search for a pending op with a given tag, and mark it as inactive. (e_book_do_response_get_cursor): Don't execute callback if this operations has been cancelled. (e_book_do_response_get_view): Ditto. (e_book_do_response_get_changes): Ditto. (e_book_do_response_get_supported_fields): Ditto. (e_book_get_supported_fields): Return an operation tag (that can be used to cancel the operation) rather than just TRUE/FALSE. Zero is always an invalid tag and is returned in the case of an error, so this shouldn't break any code that looked at the return value (unless it did so in a particularly stupid way, of course). (e_book_get_cursor): Ditto. (e_book_get_book_view): Ditto. (e_book_get_changes): Ditto. (e_book_cancel): Added. Cancel a pending operation. (Basically a call to e_book_cancel_op with error checking, etc.) * backend/ebook/e-book-types.h: Added E_BOOK_STATUS_CANCELLED. svn path=/trunk/; revision=8790
Diffstat (limited to 'addressbook/backend/ebook/e-book.h')
-rw-r--r--addressbook/backend/ebook/e-book.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/addressbook/backend/ebook/e-book.h b/addressbook/backend/ebook/e-book.h
index 9e25c9d9a5..72efb7250c 100644
--- a/addressbook/backend/ebook/e-book.h
+++ b/addressbook/backend/ebook/e-book.h
@@ -62,7 +62,7 @@ void e_book_unload_uri (EBook *book);
char *e_book_get_static_capabilities (EBook *book);
-gboolean e_book_get_supported_fields (EBook *book,
+guint e_book_get_supported_fields (EBook *book,
EBookFieldsCallback cb,
gpointer closure);
@@ -112,21 +112,26 @@ gboolean e_book_commit_vcard (EBook *book,
/* Checking to see if we're connected to the card repository. */
gboolean e_book_check_connection (EBook *book);
-gboolean e_book_get_cursor (EBook *book,
+guint e_book_get_cursor (EBook *book,
char *query,
EBookCursorCallback cb,
gpointer closure);
-gboolean e_book_get_book_view (EBook *book,
+guint e_book_get_book_view (EBook *book,
char *query,
EBookBookViewCallback cb,
gpointer closure);
-gboolean e_book_get_changes (EBook *book,
+guint e_book_get_changes (EBook *book,
char *changeid,
EBookBookViewCallback cb,
gpointer closure);
+/* Cancel a pending operation. */
+void e_book_cancel (EBook *book,
+ guint tag);
+
+
/* Getting the name of the repository. */
char *e_book_get_name (EBook *book);