aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-vee-store.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-22 04:30:29 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-22 04:30:29 +0800
commitc81bce50bbe890f804ae0a2f5b5f07813a3c3190 (patch)
tree82be53592da81154cb7aa0df1bf58f6198790871 /camel/camel-vee-store.c
parent6d69d56d0c28f0a786c12222c4f30e341378c271 (diff)
downloadgsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.tar
gsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.tar.gz
gsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.tar.bz2
gsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.tar.lz
gsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.tar.xz
gsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.tar.zst
gsoc2013-evolution-c81bce50bbe890f804ae0a2f5b5f07813a3c3190.zip
Removed all files.
2001-02-22 Not Zed <NotZed@Ximian.com> * providers/vee/*: Removed all files. * camel-private.h: Move camel-vee-private.h stuff into here. * camel-session.c: Move the vee_provider here, and initialise it always as part of a session. The vfolder provider is always available. * providers/Makefile.am: Remove "vee" from the build list, now built as part of the main library. * Makefile.am (libcamelinclude_HEADERS): (libcamel_la_SOURCES): Added camel-vee-store.[ch], camel-vee-folder.[ch]. svn path=/trunk/; revision=8340
Diffstat (limited to 'camel/camel-vee-store.c')
-rw-r--r--camel/camel-vee-store.c93
1 files changed, 93 insertions, 0 deletions
diff --git a/camel/camel-vee-store.c b/camel/camel-vee-store.c
new file mode 100644
index 0000000000..4920e04a83
--- /dev/null
+++ b/camel/camel-vee-store.c
@@ -0,0 +1,93 @@
+/*
+ * Copyright (C) 2000 Helix Code Inc.
+ *
+ * Authors: Michael Zucchi <notzed@helixcode.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * 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 program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
+#include "camel-vee-store.h"
+#include "camel-vee-folder.h"
+
+static CamelFolder *vee_get_folder (CamelStore *store, const char *folder_name, guint32 flags, CamelException *ex);
+
+struct _CamelVeeStorePrivate {
+};
+
+#define _PRIVATE(o) (((CamelVeeStore *)(o))->priv)
+
+static void camel_vee_store_class_init (CamelVeeStoreClass *klass);
+static void camel_vee_store_init (CamelVeeStore *obj);
+
+static CamelStoreClass *camel_vee_store_parent;
+
+CamelType
+camel_vee_store_get_type (void)
+{
+ static CamelType type = CAMEL_INVALID_TYPE;
+
+ if (type == CAMEL_INVALID_TYPE) {
+ type = camel_type_register (camel_store_get_type (), "CamelVeeStore",
+ sizeof (CamelVeeStore),
+ sizeof (CamelVeeStoreClass),
+ (CamelObjectClassInitFunc) camel_vee_store_class_init,
+ NULL,
+ (CamelObjectInitFunc) camel_vee_store_init,
+ NULL);
+ }
+
+ return type;
+}
+
+static void
+
+camel_vee_store_class_init (CamelVeeStoreClass *klass)
+{
+ CamelStoreClass *store_class = (CamelStoreClass *) klass;
+
+ camel_vee_store_parent = CAMEL_STORE_CLASS(camel_type_get_global_classfuncs (camel_store_get_type ()));
+
+ /* virtual method overload */
+ store_class->get_folder = vee_get_folder;
+}
+
+static void
+camel_vee_store_init (CamelVeeStore *obj)
+{
+ struct _CamelVeeStorePrivate *p;
+
+ p = _PRIVATE(obj) = g_malloc0(sizeof(*p));
+}
+
+/**
+ * camel_vee_store_new:
+ *
+ * Create a new CamelVeeStore object.
+ *
+ * Return value: A new CamelVeeStore widget.
+ **/
+CamelVeeStore *
+camel_vee_store_new (void)
+{
+ CamelVeeStore *new = CAMEL_VEE_STORE ( camel_object_new (camel_vee_store_get_type ()));
+ return new;
+}
+
+static CamelFolder *
+vee_get_folder (CamelStore *store, const char *folder_name, guint32 flags, CamelException *ex)
+{
+ return camel_vee_folder_new(store, folder_name, flags, ex);
+}