aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-04 05:25:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-04 05:25:04 +0800
commit7708b2d8a0a0417758f4124e27614f576922ebdb (patch)
treedb08cfb368b79bb22a22e4cc45551b656ebbffce /camel/camel-folder.h
parent63fe218a169ff409d8be7f85f9838c86b4cba3f1 (diff)
downloadgsoc2013-evolution-7708b2d8a0a0417758f4124e27614f576922ebdb.tar
gsoc2013-evolution-7708b2d8a0a0417758f4124e27614f576922ebdb.tar.gz
gsoc2013-evolution-7708b2d8a0a0417758f4124e27614f576922ebdb.tar.bz2
gsoc2013-evolution-7708b2d8a0a0417758f4124e27614f576922ebdb.tar.lz
gsoc2013-evolution-7708b2d8a0a0417758f4124e27614f576922ebdb.tar.xz
gsoc2013-evolution-7708b2d8a0a0417758f4124e27614f576922ebdb.tar.zst
gsoc2013-evolution-7708b2d8a0a0417758f4124e27614f576922ebdb.zip
Call camel_folder_delete() on the folder if it's "alive".
2001-10-03 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_delete_folder): Call camel_folder_delete() on the folder if it's "alive". * camel-folder.c (camel_folder_delete): Mark the folder as deleted, perform any folder specific cleanup and emit the deleted event. (camel_folder_sync): Only sync the folder if it hasn't been deleted. (camel_folder_expunge): Same. svn path=/trunk/; revision=13388
Diffstat (limited to 'camel/camel-folder.h')
-rw-r--r--camel/camel-folder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/camel/camel-folder.h b/camel/camel-folder.h
index 0ff542afb9..786e346627 100644
--- a/camel/camel-folder.h
+++ b/camel/camel-folder.h
@@ -67,6 +67,7 @@ struct _CamelFolder
gboolean has_summary_capability:1;
gboolean has_search_capability:1;
gboolean filter_recent:1;
+ gboolean deleted:1;
};
@@ -153,6 +154,8 @@ typedef struct {
CamelFolder *destination,
CamelException *ex);
+ void (*delete) (CamelFolder *folder);
+
void (*freeze) (CamelFolder *folder);
void (*thaw) (CamelFolder *folder);
gboolean (*is_frozen) (CamelFolder *folder);
@@ -269,6 +272,8 @@ void camel_folder_move_messages_to (CamelFolder *source,
CamelFolder *dest,
CamelException *ex);
+void camel_folder_delete (CamelFolder *folder);
+
/* stop/restart getting events */
void camel_folder_freeze (CamelFolder *folder);
void camel_folder_thaw (CamelFolder *folder);