aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-list-editor/e-contact-list-model.h
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/contact-list-editor/e-contact-list-model.h')
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-model.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-model.h b/addressbook/gui/contact-list-editor/e-contact-list-model.h
new file mode 100644
index 0000000000..da9be77b49
--- /dev/null
+++ b/addressbook/gui/contact-list-editor/e-contact-list-model.h
@@ -0,0 +1,42 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+#ifndef _E_CONTACT_LIST_MODEL_H_
+#define _E_CONTACT_LIST_MODEL_H_
+
+#include <gal/e-table/e-table-model.h>
+#include "addressbook/backend/ebook/e-book.h"
+#include "addressbook/backend/ebook/e-book-view.h"
+#include "addressbook/backend/ebook/e-card-simple.h"
+
+#define E_CONTACT_LIST_MODEL_TYPE (e_contact_list_model_get_type ())
+#define E_CONTACT_LIST_MODEL(o) (GTK_CHECK_CAST ((o), E_CONTACT_LIST_MODEL_TYPE, EContactListModel))
+#define E_CONTACT_LIST_MODEL_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_CONTACT_LIST_MODEL_TYPE, EContactListModelClass))
+#define E_IS_CONTACT_LIST_MODEL(o) (GTK_CHECK_TYPE ((o), E_CONTACT_LIST_MODEL_TYPE))
+#define E_IS_CONTACT_LIST_MODEL_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CONTACT_LIST_MODEL_TYPE))
+
+typedef struct _EContactListModel EContactListModel;
+typedef struct _EContactListModelClass EContactListModelClass;
+
+struct _EContactListModel {
+ ETableModel parent;
+
+ ECardSimple **simples;
+ int simple_count;
+ char **emails;
+ int email_count;
+};
+
+
+struct _EContactListModelClass {
+ ETableModelClass parent_class;
+};
+
+
+GtkType e_contact_list_model_get_type (void);
+void e_contact_list_model_construct (EContactListModel *model);
+ETableModel *e_contact_list_model_new (void);
+
+void e_contact_list_model_add_email (EContactListModel *model, const char *email);
+void e_contact_list_model_add_card (EContactListModel *model, ECardSimple *simple);
+void e_contact_list_model_remove_row (EContactListModel *model, int row);
+
+#endif /* _E_CONTACT_LIST_MODEL_H_ */