/* -*- 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 * * 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 #include #include #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 */ ?h=EVOLUTION_3_9_5&id=159bc6fd093f4f8613e091157a379bb88d1a5e9c'>calendar
Commit message (Expand)AuthorAgeFilesLines
* Use <glib/gi18n.h> instead of <bonobo/bonobo-i18n.h>.Matthew Barnes2008-06-119-8/+20
* ** Fix for bug #536813Milan Crha2008-06-095-3/+44
* Fix build breakage. Apparently <gtk/gtk.h> only recently startedMatthew Barnes2008-06-072-0/+2
* ** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES andMatthew Barnes2008-06-0695-299/+84
* ** Fixes security vulnerabilities CVE-2008-1108 and CVE-2008-1109Matthew Barnes2008-06-043-96/+96
* ** Fix for bug #535204Shuai Liu2008-06-042-2/+8
* Committing on behalf of Milan Crha <mcrha@redhat.com>Milan Crha2008-06-024-1/+42
* ** Fixes bug #534476Matthew Barnes2008-05-232-9/+12
* Patch from Milan Crha <mcrha@redhat.com> ** Part of fix for bug #523402 (lea...Suman Manjunath2008-05-233-0/+12
* ** Fix a bunch of compiler warnings.Matthew Barnes2008-05-232-9/+6
* ** Fixes bug #534360Matthew Barnes2008-05-2374-663/+813
* Patch from Chenthill Palanisamy <pchenthill@novell.com> ** Fix for bug #5338...Suman Manjunath2008-05-222-2/+16
* Include e-util-private.h for the mapping of EVOLUTION_GLADEDIR to aTor Lillqvist2008-05-082-2/+17
* Fix include path for e-dbhash.h, now in libebackend.Johan Euphrosine2008-05-052-1/+5
* ** Fix for bug #316390Milan Crha2008-04-304-66/+27
* Patch from Srinivasa Ragavan <sragavan@novell.com>Bharath Acharya2008-04-302-0/+12
* Patch from Ashish Shrivastava <shashish@novell.com>Ashish Shrivastava2008-04-302-1/+11
* ** Fix for bug #240823Milan Crha2008-04-292-2/+16
* ** Fix for bug #524121Milan Crha2008-04-282-1/+8
* ** Fix for bug #529893Danny Baumann2008-04-252-0/+8
* ** Fix for bug #509923Milan Crha2008-04-184-7/+80
* Remove and obsolete comment from configure.in and #include <gio/gio.h> inMatthew Barnes2008-04-181-0/+1
* ** Fix for bug #526741 (gnome-vfs to gio/gvfs port)Milan Crha2008-04-1813-145/+186
* ** Fix for bug #523402Milan Crha2008-04-172-0/+9
* ** Fix for bug #232594Milan Crha2008-04-162-13/+29
* Fix for bug #517134 : Extend the 'Insert' menu (in editors) to show a "Recent...Suman Manjunath2008-04-122-15/+65
* ** Fix for bug #525234Ondrej Jirman2008-04-073-1/+17
* ** Merge the mbarnes-composer branchMatthew Barnes2008-04-033-368/+211
* Patch from Qin Kuangyu: Fix for bug #346555 (Fixed a couple of mnemonic confl...Suman Manjunath2008-03-312-1/+8
* ** Fix for bug #517492Milan Crha2008-03-272-6/+11
* ** Fix for bug #438613Milan Crha2008-03-273-2/+18
* ** Fix for bug #512543Milan Crha2008-03-139-3884/+14
* ** Fixes bug #513951Matthew Barnes2008-03-118-36/+65
* Fixes #516498Chenthill Palanisamy2008-02-255-8/+29
* Fixes#516408Chenthill Palanisamy2008-02-2513-19/+90
* ** Fix for bug #440426Milan Crha2008-02-212-0/+11
* ** Part of fix for bug #515744Milan Crha2008-02-202-8/+9
* ** Part of fix for bug #515744Milan Crha2008-02-1813-17/+77
* ** Fix for bnc #178778Srinivasa Ragavan2008-02-182-1/+7
* ** Fix for bnc #160049. Patch from OpenSUSE.Srinivasa Ragavan2008-02-185-0/+61
* ** Downstream patches from OpenSUSESrinivasa Ragavan2008-02-184-0/+15
* ** Fix for bug #516453Milan Crha2008-02-152-0/+9
* ** Fix for bug #514987Milan Crha2008-02-153-1/+45
* Google Calendar alarm works now.Srinivasa Ragavan2008-02-112-1/+9
* String changes for improved error-messages and a schema-description. Suman Manjunath2008-02-114-4/+15
* ** Part of fixes for bug #395939Milan Crha2008-02-083-4/+17
* ** Fix for bug #240073Milan Crha2008-01-292-2/+10
* Patch from Chenthill Palanisamy <pchenthill@novell.com> (Fix memory leak whi...Suman Manjunath2008-01-282-0/+6
* Patch from Milan Crha <mcrha@redhat.com> ** Fix for bug #355864 (Calendar c...Suman Manjunath2008-01-282-11/+33
* Patch from Milan Crha <mcrha@redhat.com> ** Fix for bug #240073 (Cancelled ...Suman Manjunath2008-01-284-9/+32
* ** Fix for bug #475781Milan Crha2008-01-2510-36/+108
* ** Fix for bug #510409Milan Crha2008-01-256-4/+24
* Link with libefilterbar.Tor Lillqvist2008-01-252-0/+6
* ** Fix for bug #402487Milan Crha2008-01-242-3/+10
* ** Fix for bug #337046Srinivasa Ragavan2008-01-242-3/+17
* Port to libsoup 2.4. Plug a leak.Dan Winship2008-01-172-10/+15
* ** Fix for bug #509879Milan Crha2008-01-172-17/+8
* Fix for bug #426159 (Allow users to snooze for 1+ hour 0 minutes)Suman Manjunath2008-01-173-1/+13
* ** Fix for bug #333695Milan Crha2008-01-152-3/+14
* Patch from Milan Crha <mcrha@redhat.com> Fix for bug #333695 (Print attendee...Suman Manjunath2008-01-142-1/+107
* Patch from Milan Crha <mcrha@redhat.com> Fix for bug #507359 (Free/Busy UI n...Suman Manjunath2008-01-144-8/+43
* Patch from Milan Crha <mcrha@redhat.com> Fix for bug #490464 (Memo editor hi...Suman Manjunath2008-01-142-8/+56
* Fix for bug #339620 (Disconnect signal handlers in the destroy_handler of rec...Suman Manjunath2008-01-142-0/+14
* Patch from Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> Fix for b...Suman Manjunath2008-01-143-3/+10
* ** Fix for bug #508731Srinivasa Ragavan2008-01-122-0/+10
* ** Fix for bug #457842Milan Crha2008-01-104-2/+31
* Patch from Michael Monreal <michael.monreal@gmx.net>: Fix for bug #492188 (U...Suman Manjunath2008-01-072-2/+11
* Fixes bug #270605 (Hide disabled accounts in memo-editor) + Show organizers o...Suman Manjunath2008-01-064-34/+66
* Refix the last patchSrinivasa Ragavan2008-01-032-1/+5
* ** Fix for bug #506814Srinivasa Ragavan2008-01-033-2/+12
* ** Fixes bug #362638Matthew Barnes2007-12-214-263/+159
* ** Fixes bug 474651Tobias Mueller2007-12-146-9/+10
* ** Fix for bug #340267Milan Crha2007-12-133-4/+13
* ** Fix for bug #501969 Passwords should not be forgotten for all errorsSankar P2007-12-112-0/+20
* ** Fixes bug 474651Tobias Mueller2007-12-103-3/+3
* ** Fixes bug #392747 (extra cleanup work)Matthew Barnes2007-12-066-112/+75
* ** Fix for bug #501474Milan Crha2007-12-052-3/+11
* ** Fix for bug #354265David Turner2007-12-044-5/+14
* Fixes #501182.Wang Xin2007-12-042-1/+8
* ** Fix for bug #440497Milan Crha2007-12-046-27/+45
* ** Fixes bug #392747Matthew Barnes2007-12-032-12/+12
* ** Fix for bug #325730Milan Crha2007-11-303-6/+22
* ** Fix for bug #500024Milan Crha2007-11-282-0/+7
* ** Fix for bug #214645Milan Crha2007-11-273-36/+97
* ** Fix for bug #346693Milan Crha2007-11-262-7/+20
* ** Fix for bug #380644Milan Crha2007-11-268-12/+72
* ** Fix for bug #325730Milan Crha2007-11-234-5/+26
* ** Fix for bug #484603Milan Crha2007-11-232-0/+9
* ** Fix for bug #401337Milan Crha2007-11-193-3/+16
* ** Fix for bug #495875Gilles Dartiguelongue2007-11-184-3/+24
* ** Fix for bug #492793Milan Crha2007-11-165-11/+22
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-15146-4876/+4876
* ** Fix for bug #494323Ondrej Jirman2007-11-142-15/+6
* ** Fix for bug #496248Andre Klapper2007-11-132-1/+8
* ** Fix for bug #209425Michael Monreal2007-11-103-8/+18
* ** Fix for bug #491345Milan Crha2007-11-052-0/+8
* ** Fix for bug #353780Milan Crha2007-11-053-8/+37
* ** Fix for bug #341085Milan Crha2007-11-052-2/+9
* ** Fix for bug #359267Milan Crha2007-11-052-1/+8
* ** Fix for bug #351932Milan Crha2007-11-052-2/+160
* ** Fix for bug #315101Milan Crha2007-11-057-121/+442
* ** Fix for bug #318604Milan Crha2007-11-0514-15/+129
* ** Fix for bug #346693Milan Crha2007-11-055-146/+313
* ** Remove dead files from source control. The dates below indicate whenMatthew Barnes2007-11-0311-2810/+17
* ** Fixes bug #492058Damien Carbery2007-11-032-47/+54
* Fix spacing between alarm description and buttons.Matthew Barnes2007-11-012-1/+6
* ** Fix for bug #490538Milan Crha2007-10-293-0/+10
* ** Fix for bug #417999Milan Crha2007-10-262-2/+8
* Zero out the GnomePilotRecord struct to silence a compiler warning.Matthew Barnes2007-10-266-8/+37
* Warning fixes: - NULL vs 0 vs FALSE/TRUE - ANSIfication of declarations -Kjartan Maraas2007-10-2436-119/+150
* ** Fixes part of bug #417999Matthew Barnes2007-10-238-77/+95
* ** Migration of theme icons to data/icons/ (bug #479257)Michael Monreal2007-10-122-5/+11
* ** Fix for bug #466659Suman Manjunath2007-10-122-1/+8
* Miscellaneous changes related to bug #437579.Matthew Barnes2007-10-122-6/+12
* ** Fixes bug #437579Matthew Barnes2007-10-1011-27/+60
* ** Fix for bug #324526Milan Crha2007-10-092-0/+54
* ** Fix for bug #455862 Plugged memory leaks.Hiroyuki Ikezoe2007-10-077-76/+66
* Fixed leak caused by my changes in fix for bug #325685.Milan Crha2007-10-052-2/+9
* ** Fixes bug #477045Matthew Barnes2007-10-044-6/+15
* 2007-10-04 mcrha Fix for bug #325685Milan Crha2007-10-042-6/+16
* ** Fixes bug #469657Matthew Barnes2007-10-022-20/+17
* 2007-10-01 mcrha Fix for bug #428402Milan Crha2007-10-013-6/+20
* 2007-10-01 mcrha Fix for bug #342283Milan Crha2007-10-014-11/+18
* 2007-10-01 mcrha Fix for bug #230339Milan Crha2007-10-012-2/+21
* Fix for bug #461195 from Hiroyuki Ikezoe.Matthew Barnes2007-09-284-7/+12
* ** Fixes bug #477045Matthew Barnes2007-09-2817-37/+117
* 2007-09-27 mcrha Fix for bug #346686Milan Crha2007-09-276-1/+60
* 2007-09-27 mcrha Fix for bug #324472Milan Crha2007-09-274-74/+155
* 2007-09-27 mcrha Fix for bug #300693Milan Crha2007-09-275-139/+10
* 2007-09-27 mcrha Fixes part of bug #228832Milan Crha2007-09-274-4/+35
* 2007-09-21 mcrha Fix for bug #411125Milan Crha2007-09-216-25/+37
* ** Fixes bug #476124.Jedy Wang2007-09-212-0/+8
* Remove the --enable-file-chooser configure option.Matthew Barnes2007-09-142-46/+8
* ** Fixes bug #476040Matthew Barnes2007-09-134-6/+15
* Fixes #300284 (bnc)Chenthill Palanisamy2007-09-102-0/+9
* Fixes #368033Chenthill Palanisamy2007-09-102-0/+10
* Fixes #332026.Chenthill Palanisamy2007-09-102-20/+32
* Fixes #270605Chenthill Palanisamy2007-09-103-21/+45
* code cleanup.Chenthill Palanisamy2007-09-104-199/+159
* fix weak references problem pointed by Milan Crha (bug #439122)Gilles Dartiguelongue2007-09-072-9/+9
* 2007-09-07 mcrha Fix for bug #473903Milan Crha2007-09-076-7/+18
* Fixes #470968Wang Xin2007-09-032-0/+8
* Fix a build break.Srinivasa Ragavan2007-09-033-212/+8
* 2007-09-03 mcrha Fixing Makefile.am I broke with Fix for bug #201167 by Natha...Milan Crha2007-09-031-25/+0
* 2007-09-03 mcrha Fix for bug #201167 by Nathan OwensMilan Crha2007-09-033-0/+474
* 2007-09-03 mcrha Fix for bug #201167 by Nathan OwensMilan Crha2007-09-038-257/+140
* ** Fix for bug #471791 (Move away from asserts to g_ret*)Srinivasa Ragavan2007-09-0336-177/+270
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-02