diff options
author | nobody <nobody@localhost> | 2002-05-16 00:19:25 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2002-05-16 00:19:25 +0800 |
commit | 8c47e643db5d258eb022cb113d1b4e1c71cfde43 (patch) | |
tree | 9a14849dd3a40bd1667b88d689e2aa7d58d08bce /camel/camel-data-cache.h | |
parent | 74f4231f4eb650f0243ff39ab5a085b1df4f7697 (diff) | |
download | gsoc2013-evolution-GEDIT_2_0_2.tar.gz gsoc2013-evolution-GEDIT_2_0_2.tar.zst gsoc2013-evolution-GEDIT_2_0_2.zip |
This commit was manufactured by cvs2svn to create tag 'GEDIT_2_0_2'.GEDIT_2_0_2
svn path=/tags/GEDIT_2_0_2/; revision=16833
Diffstat (limited to 'camel/camel-data-cache.h')
-rw-r--r-- | camel/camel-data-cache.h | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/camel/camel-data-cache.h b/camel/camel-data-cache.h deleted file mode 100644 index ab6c29a622..0000000000 --- a/camel/camel-data-cache.h +++ /dev/null @@ -1,98 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* camel-data-cache.h: Class for a Camel filesystem cache - * - * Authors: Michael Zucchi <notzed@ximian.com> - * - * Copyright (C) 2001 Ximian, Inc. (www.ximian.com) - * - * This program 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 program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 - * USA - */ - - -#ifndef CAMEL_DATA_CACHE_H -#define CAMEL_DATA_CACHE_H 1 - -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus }*/ - -#include <glib.h> - -#include <camel/camel-stream.h> -#include <camel/camel-exception.h> - -#define CAMEL_DATA_CACHE_TYPE (camel_data_cache_get_type ()) -#define CAMEL_DATA_CACHE(obj) (CAMEL_CHECK_CAST((obj), CAMEL_DATA_CACHE_TYPE, CamelFolder)) -#define CAMEL_DATA_CACHE_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_DATA_CACHE_TYPE, CamelFolderClass)) -#define CAMEL_IS_DATA_CACHE(o) (CAMEL_CHECK_TYPE((o), CAMEL_DATA_CACHE_TYPE)) - -typedef struct _CamelDataCache CamelDataCache; -typedef struct _CamelDataCacheClass CamelDataCacheClass; - -struct _CamelDataCache { - CamelObject parent_object; - - struct _CamelDataCachePrivate *priv; - - char *path; - guint32 flags; - - time_t expire_age; - time_t expire_access; -}; - -struct _CamelDataCacheClass { - CamelObjectClass parent_class; - - /* None are virtual yet */ -#if 0 - /* Virtual methods */ - CamelStream *(*add)(CamelDataCache *cmc, const char *path, const char *key, CamelException *ex); - CamelStream *(*get)(CamelDataCache *cmc, const char *path, const char *key, CamelException *ex); - int (*close)(CamelDataCache *cmc, CamelStream *stream, CamelException *ex); - int (*remove)(CamelDataCache *cmc, const char *path, const char *key, CamelException *ex); - - int (*clear)(CamelDataCache *cmc, const char *path, CamelException *ex); -#endif -}; - -/* public methods */ -CamelDataCache *camel_data_cache_new(const char *path, guint32 flags, CamelException *ex); - -void camel_data_cache_set_expire_age(CamelDataCache *cache, time_t when); -void camel_data_cache_set_expire_access(CamelDataCache *cdc, time_t when); - -int camel_data_cache_rename(CamelDataCache *cache, - const char *old, const char *new, CamelException *ex); - -CamelStream *camel_data_cache_add(CamelDataCache *cache, - const char *path, const char *key, CamelException *ex); -CamelStream *camel_data_cache_get(CamelDataCache *cache, - const char *path, const char *key, CamelException *ex); -int camel_data_cache_remove(CamelDataCache *cache, - const char *path, const char *key, CamelException *ex); - -int camel_data_cache_clear(CamelDataCache *cache, - const char *path, CamelException *ex); - -/* Standard Camel function */ -CamelType camel_data_cache_get_type (void); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* CAMEL_DATA_CACHE_H */ |