From: Not Zed Date: Wed, 21 Feb 2001 20:30:29 +0000 (+0000) Subject: Removed all files. X-Git-Tag: upstream/3.7.4~11120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=678a1d129bd230c9f9fbe8316a6054d0fb78205d;p=platform%2Fupstream%2Fevolution-data-server.git Removed all files. 2001-02-22 Not Zed * 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]. --- diff --git a/camel/ChangeLog b/camel/ChangeLog index a8e84df..164cd55 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,20 @@ 2001-02-22 Not Zed + * 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]. + * providers/vee/camel-vee-folder.c (vee_folder_build): Removed, not used. (camel_vee_folder_new): Removed call to build_folder. diff --git a/camel/Makefile.am b/camel/Makefile.am index 55d28f4..f2f46c9 100644 --- a/camel/Makefile.am +++ b/camel/Makefile.am @@ -64,6 +64,8 @@ libcamel_la_SOURCES = \ camel-transport.c \ camel-uid-cache.c \ camel-url.c \ + camel-vee-folder.c \ + camel-vee-store.c \ camel-charset-map.c \ camel.c \ gstring-util.c \ @@ -121,6 +123,8 @@ libcamelinclude_HEADERS = \ camel-types.h \ camel-uid-cache.h \ camel-url.h \ + camel-vee-folder.h \ + camel-vee-store.h \ camel.h \ gstring-util.h \ hash-table-utils.h \ diff --git a/camel/camel-private.h b/camel/camel-private.h index cdfe878..9be3a24 100644 --- a/camel/camel-private.h +++ b/camel/camel-private.h @@ -144,6 +144,33 @@ struct _CamelFolderSummaryPrivate { #define CAMEL_SUMMARY_UNLOCK(f, l) #endif +struct _CamelVeeStorePrivate { +}; + +#ifdef ENABLE_THREADS +#define CAMEL_VEE_STORE_LOCK(f, l) (e_mutex_lock(((CamelVeeStore *)f)->priv->l)) +#define CAMEL_VEE_STORE_UNLOCK(f, l) (e_mutex_unlock(((CamelVeeStore *)f)->priv->l)) +#else +#define CAMEL_VEE_STORE_LOCK(f, l) +#define CAMEL_VEE_STORE_UNLOCK(f, l) +#endif + +struct _CamelVeeFolderPrivate { + GList *folders; /* lock using subfolder_lock before changing/accessing */ + +#ifdef ENABLE_THREADS + GMutex *summary_lock; /* for locking vfolder summary */ + GMutex *subfolder_lock; /* for locking the subfolder list */ +#endif +}; + +#ifdef ENABLE_THREADS +#define CAMEL_VEE_FOLDER_LOCK(f, l) (g_mutex_lock(((CamelVeeFolder *)f)->priv->l)) +#define CAMEL_VEE_FOLDER_UNLOCK(f, l) (g_mutex_unlock(((CamelVeeFolder *)f)->priv->l)) +#else +#define CAMEL_VEE_FOLDER_LOCK(f, l) +#define CAMEL_VEE_FOLDER_UNLOCK(f, l) +#endif #ifdef __cplusplus } diff --git a/camel/camel-session.c b/camel/camel-session.c index 5ef3115..f8e27c3 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 +#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; } diff --git a/camel/providers/vee/camel-vee-folder.c b/camel/camel-vee-folder.c similarity index 99% rename from camel/providers/vee/camel-vee-folder.c rename to camel/camel-vee-folder.c index 18c1fe2..9db4294 100644 --- a/camel/providers/vee/camel-vee-folder.c +++ b/camel/camel-vee-folder.c @@ -28,7 +28,7 @@ #include "camel-folder-search.h" #include "camel-vee-store.h" /* for open flags */ -#include "camel-vee-private.h" +#include "camel-private.h" #ifdef DOESTRV #include "e-util/e-memory.h" diff --git a/camel/providers/vee/camel-vee-folder.h b/camel/camel-vee-folder.h similarity index 100% rename from camel/providers/vee/camel-vee-folder.h rename to camel/camel-vee-folder.h diff --git a/camel/providers/vee/camel-vee-store.c b/camel/camel-vee-store.c similarity index 100% rename from camel/providers/vee/camel-vee-store.c rename to camel/camel-vee-store.c diff --git a/camel/providers/vee/camel-vee-store.h b/camel/camel-vee-store.h similarity index 100% rename from camel/providers/vee/camel-vee-store.h rename to camel/camel-vee-store.h diff --git a/camel/providers/Makefile.am b/camel/providers/Makefile.am index 1a84059..5fd7c83e 100644 --- a/camel/providers/Makefile.am +++ b/camel/providers/Makefile.am @@ -5,10 +5,7 @@ NNTP_DIR=nntp endif # SUBDIRS = mbox pop3 sendmail smtp vee -SUBDIRS = pop3 sendmail smtp vee imap $(NNTP_DIR) local - -# these ones are disabled for the moment. -# maildir +SUBDIRS = pop3 sendmail smtp imap $(NNTP_DIR) local # these ones are deprecated, and will no longer be maintained -# mbox mh \ No newline at end of file +# mbox mh maildir vee \ No newline at end of file diff --git a/camel/providers/vee/Makefile.am b/camel/providers/vee/Makefile.am deleted file mode 100644 index b5026c8..0000000 --- a/camel/providers/vee/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -## Process this file with automake to produce Makefile.in - -libcamelveeincludedir = $(includedir)/camel - - -providerdir = $(pkglibdir)/camel-providers/$(VERSION) - -provider_LTLIBRARIES = libcamelvee.la -provider_DATA = libcamelvee.urls - -INCLUDES = -I.. \ - -I$(srcdir)/.. \ - -I$(top_srcdir)/camel \ - -I$(top_srcdir)/intl \ - -I$(top_srcdir)/libibex \ - -I$(top_srcdir)/e-util \ - -I$(top_srcdir) \ - -I$(includedir) \ - $(GTK_INCLUDEDIR) \ - -DG_LOG_DOMAIN=\"camel-vee-provider\" - -libcamelvee_la_SOURCES = \ - camel-vee-folder.c \ - camel-vee-provider.c \ - camel-vee-store.c - -libcamelveeinclude_HEADERS = \ - camel-vee-folder.h \ - camel-vee-store.h - -noinst_HEADERS = \ - camel-vee-private.h - -libcamelvee_la_LDFLAGS = -version-info 0:0:0 - -libcamelvee_la_LIBADD = $(top_builddir)/e-util/libeutil.la $(top_builddir)/libibex/libibex.la $(UNICODE_LIBS) -#libcamelvee_la_LIBADD = $(top_builddir)/libibex/libibex.la $(UNICODE_LIBS) - -EXTRA_DIST = libcamelvee.urls - diff --git a/camel/providers/vee/camel-vee-private.h b/camel/providers/vee/camel-vee-private.h deleted file mode 100644 index 6633647..0000000 --- a/camel/providers/vee/camel-vee-private.h +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- - * camel-vee-private.h: Private info for vee. - * - * Authors: Michael Zucchi - * - * Copyright 1999, 2000 Helix Code, Inc. (http://www.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 - */ - -#ifndef CAMEL_VEE_PRIVATE_H -#define CAMEL_VEE_PRIVATE_H 1 - -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus }*/ - -/* need a way to configure and save this data, if this header is to - be installed. For now, dont install it */ - -#include "config.h" - -struct _CamelVeeStorePrivate { -}; - -#ifdef ENABLE_THREADS -#define CAMEL_VEE_STORE_LOCK(f, l) (e_mutex_lock(((CamelVeeStore *)f)->priv->l)) -#define CAMEL_VEE_STORE_UNLOCK(f, l) (e_mutex_unlock(((CamelVeeStore *)f)->priv->l)) -#else -#define CAMEL_VEE_STORE_LOCK(f, l) -#define CAMEL_VEE_STORE_UNLOCK(f, l) -#endif - -struct _CamelVeeFolderPrivate { - GList *folders; /* lock using subfolder_lock before changing/accessing */ - -#ifdef ENABLE_THREADS - GMutex *summary_lock; /* for locking vfolder summary */ - GMutex *subfolder_lock; /* for locking the subfolder list */ -#endif -}; - -#ifdef ENABLE_THREADS -#define CAMEL_VEE_FOLDER_LOCK(f, l) (g_mutex_lock(((CamelVeeFolder *)f)->priv->l)) -#define CAMEL_VEE_FOLDER_UNLOCK(f, l) (g_mutex_unlock(((CamelVeeFolder *)f)->priv->l)) -#else -#define CAMEL_VEE_FOLDER_LOCK(f, l) -#define CAMEL_VEE_FOLDER_UNLOCK(f, l) -#endif - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* CAMEL_VEE_PRIVATE_H */ - diff --git a/camel/providers/vee/camel-vee-provider.c b/camel/providers/vee/camel-vee-provider.c deleted file mode 100644 index 4588fb7..0000000 --- a/camel/providers/vee/camel-vee-provider.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2000 Helix Code Inc. - * - * Authors: Michael Zucchi - * - * 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 "config.h" -#include "camel-vee-store.h" -#include "camel-provider.h" -#include "camel-session.h" -#include "camel-url.h" - -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 -}; - -void -camel_provider_module_init (CamelSession *session) -{ - 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); -}