aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-02-24 00:52:55 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-02-24 00:52:55 +0800
commitafd1cad2da1ace056f7882a1088ce3e3b7dba2da (patch)
tree8837f2b4ac974e7476fb7937e1eca8ef079861e7 /camel/camel-store.h
parentac97d963b038541b84aa15b4eaa3d28fd9d60114 (diff)
downloadgsoc2013-evolution-afd1cad2da1ace056f7882a1088ce3e3b7dba2da.tar.gz
gsoc2013-evolution-afd1cad2da1ace056f7882a1088ce3e3b7dba2da.tar.zst
gsoc2013-evolution-afd1cad2da1ace056f7882a1088ce3e3b7dba2da.zip
init get_trash and init_trash. (camel_store_init): call the virtual
2001-02-23 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_class_init): init get_trash and init_trash. (camel_store_init): call the virtual init_trash function. (camel_store_finalize): unref the vtrash folder/store if present. (camel_store_get_folder): Add the new folder to the vtrash vfolder. (init_trash): default implementation of init_trash. (get_trash): default implementation of get_trash. * camel-vee-store.c (vee_init_trash): No-op. (vee_get_trash): return NULL svn path=/trunk/; revision=8368
Diffstat (limited to 'camel/camel-store.h')
-rw-r--r--camel/camel-store.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/camel/camel-store.h b/camel/camel-store.h
index cd53b7813d..6ea20b4d2c 100644
--- a/camel/camel-store.h
+++ b/camel/camel-store.h
@@ -3,8 +3,7 @@
/*
*
- * Author :
- * Bertrand Guiheneuf <bertrand@helixcode.com>
+ * Authors: Bertrand Guiheneuf <bertrand@helixcode.com>
*
* Copyright 1999, 2000 Helix Code, Inc. (http://www.helixcode.com)
*
@@ -58,7 +57,9 @@ struct _CamelStore
{
CamelService parent_object;
struct _CamelStorePrivate *priv;
-
+
+ CamelFolder *vtrash;
+
/* should have cache_lock when accessing this (priv->cache_lock) */
GHashTable *folders;
@@ -82,7 +83,11 @@ typedef struct {
CamelException *ex);
CamelFolder * (*get_inbox) (CamelStore *store,
CamelException *ex);
-
+
+ void (*init_trash) (CamelStore *store);
+ CamelFolder * (*get_trash) (CamelStore *store,
+ CamelException *ex);
+
CamelFolderInfo *(*create_folder) (CamelStore *store,
const char *parent_name,
const char *folder_name,
@@ -129,6 +134,8 @@ CamelFolder * camel_store_get_folder (CamelStore *store,
CamelException *ex);
CamelFolder * camel_store_get_inbox (CamelStore *store,
CamelException *ex);
+CamelFolder * camel_store_get_trash (CamelStore *store,
+ CamelException *ex);
CamelFolderInfo *camel_store_create_folder (CamelStore *store,
const char *parent_name,