aboutsummaryrefslogtreecommitdiffstats
path: root/ebook/e-book.h
diff options
context:
space:
mode:
authorNat Friedman <nat@helixcode.com>1999-12-14 03:00:54 +0800
committerNat Friedman <nat@src.gnome.org>1999-12-14 03:00:54 +0800
commit8c10a60ff2cfb3b2a7db082c7bd6780efaa2b6b4 (patch)
tree8b3adeb4a8303178d807d2b628bf3a42b7765b12 /ebook/e-book.h
parent9bd34cd86289069720397e884d7664772458c33a (diff)
downloadgsoc2013-evolution-8c10a60ff2cfb3b2a7db082c7bd6780efaa2b6b4.tar
gsoc2013-evolution-8c10a60ff2cfb3b2a7db082c7bd6780efaa2b6b4.tar.gz
gsoc2013-evolution-8c10a60ff2cfb3b2a7db082c7bd6780efaa2b6b4.tar.bz2
gsoc2013-evolution-8c10a60ff2cfb3b2a7db082c7bd6780efaa2b6b4.tar.lz
gsoc2013-evolution-8c10a60ff2cfb3b2a7db082c7bd6780efaa2b6b4.tar.xz
gsoc2013-evolution-8c10a60ff2cfb3b2a7db082c7bd6780efaa2b6b4.tar.zst
gsoc2013-evolution-8c10a60ff2cfb3b2a7db082c7bd6780efaa2b6b4.zip
New file. New file. New file. New file. New file. :-)
1999-12-13 Nat Friedman <nat@helixcode.com> * ebook/e-book.h: New file. * ebook/e-book.c: New file. * ebook/e-card.h: New file. * ebook/e-card-fields.h: New file. * ebook/e-commerce.h: New file. :-) svn path=/trunk/; revision=1486
Diffstat (limited to 'ebook/e-book.h')
-rw-r--r--ebook/e-book.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/ebook/e-book.h b/ebook/e-book.h
new file mode 100644
index 0000000000..0aab676e65
--- /dev/null
+++ b/ebook/e-book.h
@@ -0,0 +1,60 @@
+/*
+ * The Evolution addressbook client object.
+ *
+ * Author:
+ * Nat Friedman (nat@helixcode.com)
+ *
+ * Copyright 1999, Helix Code, Inc.
+ */
+
+#ifndef __E_BOOK_H__
+#define __E_BOOK_H__
+
+typedef struct {
+ GtkObject parent;
+ EBookPrivate *priv;
+} EBook;
+
+typedef struct {
+ GtkObjectClass parent;
+
+ /*
+ * Signals.
+ */
+ void (card_changed *) (const char *id);
+ void (card_removed *) (const char *id);
+ void (card_added *) (const char *id);
+} EBookClass;
+
+/* Creating a new addressbook. */
+EBook *e_book_new (const char *uri);
+GtkType e_book_get_type (void);
+
+/* Fetching cards and card IDs out of the addressbook. */
+ECard *e_book_get_card (EBook *book,
+ const char *id);
+GList *e_book_get_cards (EBook *book);
+GList *e_book_get_ids (EBook *book);
+
+/* Getting/putting card changes. */
+void e_book_sync_card (EBook *book,
+ ECard *card);
+void e_book_update_card (EBook *book,
+ ECard *card);
+
+/* Adding and deleting cards. */
+const char *e_book_add_card (EBook *book,
+ ECard *card);
+void e_book_remove_card (EBook *book,
+ const char *id);
+
+/* Typing completion... */
+GList *e_book_complete (EBook *book,
+ const char *str);
+
+/* Information about this addresbook. */
+char *e_book_get_name (EBook *book);
+void e_book_set_name (EBook *book,
+ const char *name);
+
+#endif /* ! __E_BOOK_H__ */