aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-model.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-07 09:07:10 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-07 09:07:10 +0800
commitcd0704da5cf1f2dfebdb235b32105f15d57ca012 (patch)
tree547c0ce515390ab3e8eceb2b5b0147913ded850e /addressbook/gui/widgets/e-addressbook-model.h
parent51aa4cb7c216c9518516e0bada53ae97849a2bd0 (diff)
downloadgsoc2013-evolution-cd0704da5cf1f2dfebdb235b32105f15d57ca012.tar
gsoc2013-evolution-cd0704da5cf1f2dfebdb235b32105f15d57ca012.tar.gz
gsoc2013-evolution-cd0704da5cf1f2dfebdb235b32105f15d57ca012.tar.bz2
gsoc2013-evolution-cd0704da5cf1f2dfebdb235b32105f15d57ca012.tar.lz
gsoc2013-evolution-cd0704da5cf1f2dfebdb235b32105f15d57ca012.tar.xz
gsoc2013-evolution-cd0704da5cf1f2dfebdb235b32105f15d57ca012.tar.zst
gsoc2013-evolution-cd0704da5cf1f2dfebdb235b32105f15d57ca012.zip
Made a NULL callback just mean to not call back.
2000-05-07 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/e-book.c: Made a NULL callback just mean to not call back. * backend/ebook/e-card-simple.c, backend/ebook/e-card-simple.h: Reordered fields. Added a get_const function to get a constant string that persists until the simple is destroyed. * gui/component/Makefile.am: Added e-addressbook-model.c and e-addressbook-model.h and all of the libraries and includes that they are dependent on. * gui/component/addressbook-factory.c: Initialize e cursors. * gui/component/addressbook.c: Added inactive code to display an ETable view of the addressbook. * gui/component/e-addressbook-model.c, gui/component/e-addressbook-model.h: New files to implement an ETable model with a EBook back end. svn path=/trunk/; revision=2845
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-model.h')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.h b/addressbook/gui/widgets/e-addressbook-model.h
new file mode 100644
index 0000000000..a428b076a9
--- /dev/null
+++ b/addressbook/gui/widgets/e-addressbook-model.h
@@ -0,0 +1,48 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+#ifndef _E_ADDRESSBOOK_MODEL_H_
+#define _E_ADDRESSBOOK_MODEL_H_
+
+#include "e-table-model.h"
+#include <ebook/e-book.h>
+#include <ebook/e-book-view.h>
+#include <ebook/e-card-simple.h>
+
+#define E_ADDRESSBOOK_MODEL_TYPE (e_addressbook_model_get_type ())
+#define E_ADDRESSBOOK_MODEL(o) (GTK_CHECK_CAST ((o), E_ADDRESSBOOK_MODEL_TYPE, EAddressbookModel))
+#define E_ADDRESSBOOK_MODEL_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_ADDRESSBOOK_MODEL_TYPE, EAddressbookModelClass))
+#define E_IS_ADDRESSBOOK_MODEL(o) (GTK_CHECK_TYPE ((o), E_ADDRESSBOOK_MODEL_TYPE))
+#define E_IS_ADDRESSBOOK_MODEL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_ADDRESSBOOK_MODEL_TYPE))
+
+/* Virtual Column list:
+ 0 Email
+ 1 Full Name
+ 2 Street
+ 3 Phone
+*/
+
+typedef struct {
+ ETableModel parent;
+
+ /* item specific fields */
+ EBook *book;
+ char *query;
+ EBookView *book_view;
+
+ int get_view_idle;
+
+ ECardSimple **data;
+ int data_count;
+
+ int create_card_id, remove_card_id, modify_card_id;
+} EAddressbookModel;
+
+
+typedef struct {
+ ETableModelClass parent_class;
+} EAddressbookModelClass;
+
+
+GtkType e_addressbook_model_get_type (void);
+ETableModel *e_addressbook_model_new (void);
+
+#endif /* _E_ADDRESSBOOK_MODEL_H_ */