aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.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-session.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-session.c')
-rw-r--r--camel/camel-session.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/camel/camel-session.c b/camel/camel-session.c
index 5ef31158b7..f8e27c382b 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -40,6 +40,7 @@
#include "camel-url.h"
#include "hash-table-utils.h"
#include <gal/util/e-util.h>
+#include "camel-vee-store.h"
#include "camel-private.h"
@@ -47,6 +48,24 @@
static CamelObjectClass *parent_class;
+/* The vfolder provider is always avilable */
+static CamelProvider vee_provider = {
+ "vfolder",
+ N_("Virtual folder email provider"),
+
+ N_("For reading mail as a query of another set of folders"),
+
+ "vfolder",
+
+ 0,
+
+ 0,
+
+ { 0, 0 },
+
+ NULL
+};
+
static void
camel_session_init (CamelSession *session)
{
@@ -135,6 +154,11 @@ camel_session_new (const char *storage_path,
session->authenticator = authenticator;
session->registrar = registrar;
session->remover = remover;
+
+ vee_provider.object_types[CAMEL_PROVIDER_STORE] = camel_vee_store_get_type();
+ vee_provider.service_cache = g_hash_table_new(camel_url_hash, camel_url_equal);
+ camel_session_register_provider(session, &vee_provider);
+
return session;
}