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-folder.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-folder.h')
-rw-r--r-- | camel/camel-folder.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/camel/camel-folder.h b/camel/camel-folder.h index c90802c6c2..7297f00cc6 100644 --- a/camel/camel-folder.h +++ b/camel/camel-folder.h @@ -99,25 +99,13 @@ typedef struct { gboolean (*can_hold_messages) (CamelFolder *folder); - gboolean (*exists) (CamelFolder *folder, - CamelException *ex); - gboolean (*is_open) (CamelFolder *folder); CamelFolder * (*get_subfolder) (CamelFolder *folder, const gchar *folder_name, + gboolean create, CamelException *ex); - gboolean (*create) (CamelFolder *folder, - CamelException *ex); - - gboolean (*delete) (CamelFolder *folder, - gboolean recurse, - CamelException *ex); - - gboolean (*delete_messages) (CamelFolder *folder, - CamelException *ex); - CamelFolder * (*get_parent_folder) (CamelFolder *folder, CamelException *ex); @@ -186,6 +174,7 @@ GtkType camel_folder_get_type (void); CamelFolder * camel_folder_get_subfolder (CamelFolder *folder, const gchar *folder_name, + gboolean create, CamelException *ex); void camel_folder_open (CamelFolder *folder, @@ -197,8 +186,6 @@ void camel_folder_close (CamelFolder *folder, gboolean expunge, CamelException *ex); -gboolean camel_folder_create (CamelFolder *folder, - CamelException *ex); CamelFolder * camel_folder_get_parent_folder (CamelFolder *folder, CamelException *ex); CamelStore * camel_folder_get_parent_store (CamelFolder *folder, @@ -208,11 +195,6 @@ GList * camel_folder_list_subfolders (CamelFolder *folder, /* delete operations */ -gboolean camel_folder_delete (CamelFolder *folder, - gboolean recurse, - CamelException *ex); -gboolean camel_folder_delete_messages (CamelFolder *folder, - CamelException *ex); void camel_folder_expunge (CamelFolder *folder, CamelException *ex); @@ -223,8 +205,6 @@ const gchar * camel_folder_get_full_name (CamelFolder *folder); /* various properties accessors */ -gboolean camel_folder_exists (CamelFolder *folder, - CamelException *ex); guint32 camel_folder_get_permanent_flags (CamelFolder *folder, CamelException *ex); |