From 36c7b8c8ff6c8c711058788ff91a586527280e39 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Sun, 18 Mar 2001 03:04:54 +0000 Subject: Tag all queued ops. (e_book_cancel_op): Added. Search for a pending op 2001-03-17 Jon Trowbridge * 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 --- addressbook/backend/ebook/e-book-types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'addressbook/backend/ebook/e-book-types.h') diff --git a/addressbook/backend/ebook/e-book-types.h b/addressbook/backend/ebook/e-book-types.h index 2ce1956080..d7eee35ede 100644 --- a/addressbook/backend/ebook/e-book-types.h +++ b/addressbook/backend/ebook/e-book-types.h @@ -23,6 +23,7 @@ typedef enum { E_BOOK_STATUS_PERMISSION_DENIED, E_BOOK_STATUS_CARD_NOT_FOUND, E_BOOK_STATUS_PROTOCOL_NOT_SUPPORTED, + E_BOOK_STATUS_CANCELLED, E_BOOK_STATUS_OTHER_ERROR } EBookStatus; -- cgit v1.2.3