aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-account-list.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-01-17 03:38:44 +0800
committerDan Winship <danw@src.gnome.org>2003-01-17 03:38:44 +0800
commit2596671b8712915820d2590c86a429257ee2d8f7 (patch)
tree0fdcbb0484eca5ad23f4d52c00dcf1a445e362e1 /e-util/e-account-list.h
parent96b653ff426ddf7c683db4f15a7cee062a2f33c7 (diff)
downloadgsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.tar
gsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.tar.gz
gsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.tar.bz2
gsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.tar.lz
gsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.tar.xz
gsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.tar.zst
gsoc2013-evolution-2596671b8712915820d2590c86a429257ee2d8f7.zip
New class, based on MailConfigAccount, for describing an evolution (mail)
* e-account.c: New class, based on MailConfigAccount, for describing an evolution (mail) account. * e-account-list.c: New class for tracking the list of configured accounts. (Also uses some code from mail-config.) * e-list.c (e_list_construct, e_list_remove): New svn path=/trunk/; revision=19495
Diffstat (limited to 'e-util/e-account-list.h')
-rw-r--r--e-util/e-account-list.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/e-util/e-account-list.h b/e-util/e-account-list.h
new file mode 100644
index 0000000000..6a8a1c7505
--- /dev/null
+++ b/e-util/e-account-list.h
@@ -0,0 +1,59 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Copyright (C) 2003 Ximian, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __E_ACCOUNT_LIST__
+#define __E_ACCOUNT_LIST__
+
+#include "e-list.h"
+#include "e-account.h"
+#include <gconf/gconf-client.h>
+
+#define E_TYPE_ACCOUNT_LIST (e_account_list_get_type ())
+#define E_ACCOUNT_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_ACCOUNT_LIST, EAccountList))
+#define E_ACCOUNT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_ACCOUNT_LIST, EAccountListClass))
+#define E_IS_ACCOUNT_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_ACCOUNT_LIST))
+#define E_IS_ACCOUNT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_ACCOUNT_LIST))
+
+typedef struct EAccountListPrivate EAccountListPrivate;
+
+typedef struct {
+ EList parent_object;
+
+ EAccountListPrivate *priv;
+} EAccountList;
+
+typedef struct {
+ EListClass parent_class;
+
+ /* signals */
+ void (*account_added) (EAccountList *, EAccount *);
+ void (*account_changed) (EAccountList *, EAccount *);
+ void (*account_removed) (EAccountList *, EAccount *);
+} EAccountListClass;
+
+
+GType e_account_list_get_type (void);
+
+EAccountList *e_account_list_new (GConfClient *gconf);
+void e_account_list_construct (EAccountList *account_list,
+ GConfClient *gconf);
+
+void e_account_list_save (EAccountList *account_list);
+
+#endif /* __E_ACCOUNT_LIST__ */