diff options
author | Dan Winship <danw@src.gnome.org> | 2000-06-07 08:06:29 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-06-07 08:06:29 +0800 |
commit | 4d5427769cfec587d9b8f727bd57ac1a1d2ae340 (patch) | |
tree | 4298b8ea452be219ecce2d96a4bc927782cabc31 /camel/camel-store.h | |
parent | ecd4fe3af090f79f30dd9df18bc4c087c366157b (diff) | |
download | gsoc2013-evolution-4d5427769cfec587d9b8f727bd57ac1a1d2ae340.tar.gz gsoc2013-evolution-4d5427769cfec587d9b8f727bd57ac1a1d2ae340.tar.zst gsoc2013-evolution-4d5427769cfec587d9b8f727bd57ac1a1d2ae340.zip |
Remove exists, create, delete. A CamelFolder now always references an
* camel-folder.c: Remove exists, create, delete. A CamelFolder
now always references an existing folder. Remove delete_messages
too since it wasn't being used. Add a "create" flag to
get_subfolder saying whether or not to create the subfolder if it
doesn't yet exist.
* camel-store.c (camel_store_get_folder): Add a "create" flag to
say whether or not to create the folder if it doesn't yet exist.
(camel_store_delete_folder): New method, moved from CamelFolder.
(cache_folder, uncache_folder): Fix up a bit.
(get_folder_name): Explain what this is for.
* providers/mbox/camel-mbox-folder.c:
* providers/mbox/camel-mbox-store.c: Update. Remove support for
hierarchical folders to simplify this for now, since we're not
using it, and it's not completely clear how they should work in an
ELocalStorage world. Needs to be revisited.
* providers/pop3/camel-pop3-folder.c (delete_messages): Remove.
* providers/pop3/camel-pop3-store.c (get_folder): Update.
* providers/vee/camel-vee-folder.c (exists): Remove.
* providers/vee/camel-vee-store.c (vee_get_folder): Update.
svn path=/trunk/; revision=3453
Diffstat (limited to 'camel/camel-store.h')
-rw-r--r-- | camel/camel-store.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/camel/camel-store.h b/camel/camel-store.h index 7f1aa89d59..6d2d9e53e9 100644 --- a/camel/camel-store.h +++ b/camel/camel-store.h @@ -57,6 +57,11 @@ typedef struct { CamelFolder * (*get_folder) (CamelStore *store, const char *folder_name, + gboolean create, + CamelException *ex); + + void (*delete_folder) (CamelStore *store, + const char *folder_name, CamelException *ex); char * (*get_folder_name) (CamelStore *store, @@ -84,12 +89,17 @@ GtkType camel_store_get_type (void); /* public methods */ CamelFolder * camel_store_get_folder (CamelStore *store, const char *folder_name, + gboolean create, CamelException *ex); CamelFolder * camel_store_get_root_folder (CamelStore *store, CamelException *ex); CamelFolder * camel_store_get_default_folder (CamelStore *store, CamelException *ex); +void camel_store_delete_folder (CamelStore *store, + const char *folder_name, + CamelException *ex); + #ifdef __cplusplus } #endif /* __cplusplus */ |