aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/idl
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-04-03 23:03:56 +0800
committerChris Lahey <clahey@src.gnome.org>2000-04-03 23:03:56 +0800
commita15df79e225ed290978c0650bc2a193086444707 (patch)
treeeec11ece68e526c9b76a05198104a671b04a85da /addressbook/backend/idl
parent9e7dabfa8274777916da364b50284cfa51ac9a6f (diff)
downloadgsoc2013-evolution-a15df79e225ed290978c0650bc2a193086444707.tar
gsoc2013-evolution-a15df79e225ed290978c0650bc2a193086444707.tar.gz
gsoc2013-evolution-a15df79e225ed290978c0650bc2a193086444707.tar.bz2
gsoc2013-evolution-a15df79e225ed290978c0650bc2a193086444707.tar.lz
gsoc2013-evolution-a15df79e225ed290978c0650bc2a193086444707.tar.xz
gsoc2013-evolution-a15df79e225ed290978c0650bc2a193086444707.tar.zst
gsoc2013-evolution-a15df79e225ed290978c0650bc2a193086444707.zip
A bit of clean up.
2000-04-03 Christopher James Lahey <clahey@helixcode.com> * addressbook/backend/ebook/e-card-cursor.h, addressbook/backend/ebook/e-card.c: A bit of clean up. * addressbook/backend/ebook/e-book-types.h, addressbook/backend/ebook/e-book-view-listener.c, addressbook/backend/ebook/e-book-view-listener.h, addressbook/backend/ebook/e-book-view.c, addressbook/backend/ebook/e-book-view.h, addressbook/backend/pas/pas-book-view.c, addressbook/backend/pas/pas-book-view.h: New files for live views. * addressbook/backend/ebook/Makefile.am, addressbook/backend/ebook/e-book-listener.c, addressbook/backend/ebook/e-book-listener.h, addressbook/backend/ebook/e-book.c, addressbook/backend/ebook/e-book.h, addressbook/backend/ebook/test-client-list.c, addressbook/backend/ebook/test-client.c, addressbook/backend/pas/pas-backend-file.c, addressbook/backend/pas/pas-book.c, addressbook/backend/pas/pas-book.h, addressbook/backend/idl/addressbook.idl: Added live views and searching to the interface (neither is working yet.) svn path=/trunk/; revision=2280
Diffstat (limited to 'addressbook/backend/idl')
-rw-r--r--addressbook/backend/idl/addressbook.idl50
1 files changed, 40 insertions, 10 deletions
diff --git a/addressbook/backend/idl/addressbook.idl b/addressbook/backend/idl/addressbook.idl
index 5fd0dbbf2e..44987a76fb 100644
--- a/addressbook/backend/idl/addressbook.idl
+++ b/addressbook/backend/idl/addressbook.idl
@@ -12,30 +12,62 @@
module Evolution {
typedef string CardId;
+ typedef string VCard;
+ typedef sequence<VCard> VCardList;
interface CardCursor : Bonobo::Unknown {
long get_length ();
string get_nth (in long n);
};
+ /*
+ * A book view is a live view of a book. It's either a view
+ * of all the cards in the book or a view of a query. When
+ * created, it will get a series of signal_card_added calls
+ * for all objects in the initial set. After that, it will
+ * get added, removed, or changed signals whenever the book
+ * changes (if it affects the set of viewed cards.)
+ */
+ interface BookViewListener : Bonobo::Unknown {
+ void signal_card_added (in VCardList cards);
+ void signal_card_removed (in CardId id);
+ void signal_card_changed (in VCardList cards);
+ };
+
+ interface BookView : Bonobo::Unknown {
+ };
+
interface Book : Bonobo::Unknown {
/*
* Fetching cards in the addresbook.
*/
- string get_vcard (in CardId id);
+ VCard get_vcard (in CardId id);
/*
* Adding and deleting cards in the book.
*/
- void create_card (in string vcard);
+ void create_card (in VCard vcard);
void remove_card (in CardId Id);
-
+
/*
* Modifying cards in the addressbook.
*/
- void modify_card (in string vcard);
-
- void get_all_cards ();
+ void modify_card (in VCard vcard);
+
+ /*
+ * These two functions return a cursor to the book
+ * listener. This is for people who want a snapshot
+ * of the addressbook. The syntax for the query
+ * string is not yet defined.
+ */
+ void get_cursor (in string query);
+
+ /*
+ * These two functions return a book view to the book
+ * listener. This is for people who want a live view
+ * of the addressbook.
+ */
+ void get_book_view(in BookViewListener listener, in string query);
void check_connection ();
@@ -63,6 +95,8 @@ module Evolution {
void respond_get_cursor (in CallStatus status, in CardCursor cursor);
+ void respond_get_view (in CallStatus status, in BookView view);
+
/**
* report_connection_status:
*
@@ -73,10 +107,6 @@ module Evolution {
* being asked.
*/
void report_connection_status (in boolean connected);
-
- void signal_card_added (in CardId id);
- void signal_card_removed (in CardId id);
- void signal_card_changed (in CardId id);
};
interface BookFactory : Bonobo::Unknown {