From c4d87ba45ad016d5a6607df96ed27ba02910e2e6 Mon Sep 17 00:00:00 2001 From: 7 Date: Sat, 27 Oct 2001 06:00:34 +0000 Subject: Finished implementation. 2001-10-27 * providers/imap/camel-imap-store.c (rename_folder): Finished implementation. * providers/local/camel-local-folder.c (local_rename): Implement local rename of folder objects. 2001-10-26 * camel-vee-folder.c (camel_vee_folder_class_init): Hook into rename function. (vee_rename): Implement the veefolder rename function. (camel_vee_folder_class_init): (folder_changed_change): Kill a warning with a cast. * camel-vee-store.c (vee_rename_folder): Emit a folder_renamed event properly, also call parent to do some rename stuff. * camel-store.h: Added a CamelRenameInfo for the rename event. * camel-folder.c (camel_folder_rename): New function to rename a folder object. (camel_folder_class_init): Added a renamed event. (folder_rename): Default impl, set full_name, and set name assuming the dir separator is '/'. * camel-store.c (camel_store_class_init): Added folder_renamed event. (camel_store_rename_folder): Rename an active folder object if we have one, and update the folder table. (rename_folder): Make a default implementation that handles updating the folder tree. svn path=/trunk/; revision=14204 --- camel/camel-folder.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/camel-folder.h') diff --git a/camel/camel-folder.h b/camel/camel-folder.h index 22398b6436..4ba36e9d03 100644 --- a/camel/camel-folder.h +++ b/camel/camel-folder.h @@ -156,6 +156,7 @@ typedef struct { CamelException *ex); void (*delete) (CamelFolder *folder); + void (*rename) (CamelFolder *folder, const char *newname); void (*freeze) (CamelFolder *folder); void (*thaw) (CamelFolder *folder); @@ -273,6 +274,7 @@ void camel_folder_move_messages_to (CamelFolder *source, CamelException *ex); void camel_folder_delete (CamelFolder *folder); +void camel_folder_rename (CamelFolder *folder, const char *new); /* stop/restart getting events */ void camel_folder_freeze (CamelFolder *folder); -- cgit