[evolution-data-server/dbus: 24/33] Add e_book_cancel_async_op
- From: Ross Burton <rburton src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server/dbus: 24/33] Add e_book_cancel_async_op
- Date: Mon, 1 Jun 2009 11:14:41 -0400 (EDT)
commit b81c9264e8d237eee6fb85aed768d5764c608d7f
Author: Ross Burton <ross linux intel com>
Date: Mon Jun 1 15:49:42 2009 +0100
Add e_book_cancel_async_op
---
addressbook/libebook/e-book.c | 16 ++++++++++++++++
addressbook/libebook/e-book.h | 3 +++
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/addressbook/libebook/e-book.c b/addressbook/libebook/e-book.c
index 79ebe1b..72cfda7 100644
--- a/addressbook/libebook/e-book.c
+++ b/addressbook/libebook/e-book.c
@@ -1844,6 +1844,22 @@ e_book_cancel (EBook *book, GError **error)
}
/**
+ * e_book_cancel_async_op:
+ * Similar to above e_book_cancel function, only cancels last, still running,
+ * asynchronous operation.
+ **/
+gboolean
+e_book_cancel_async_op (EBook *book, GError **error)
+{
+ e_return_error_if_fail (E_IS_BOOK (book), E_BOOK_ERROR_INVALID_ARG);
+ e_return_error_if_fail (book->priv->proxy, E_BOOK_ERROR_REPOSITORY_OFFLINE);
+
+ g_debug ("TODO: implement e_book_cancel_async_op");
+
+ return org_gnome_evolution_dataserver_addressbook_Book_cancel_operation (book->priv->proxy, error);
+}
+
+/**
* e_book_get_uri:
* @book: an #EBook
*
diff --git a/addressbook/libebook/e-book.h b/addressbook/libebook/e-book.h
index de9fe16..c070424 100644
--- a/addressbook/libebook/e-book.h
+++ b/addressbook/libebook/e-book.h
@@ -253,6 +253,9 @@ gboolean e_book_is_online (EBook *book);
gboolean e_book_cancel (EBook *book,
GError **error);
+gboolean e_book_cancel_async_op (EBook *book,
+ GError **error);
+
/* Identity */
gboolean e_book_get_self (EContact **contact, EBook **book, GError **error);
gboolean e_book_set_self (EBook *book, EContact *contact, GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]