From 7ac8a9c5e8bc272a75bed0c2509b525b907753ba Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 15 Feb 2001 23:54:16 +0000 Subject: Use mail_storage_create_folder 2001-02-15 Jeffrey Stedfast * mail-ops.c (do_scan_subfolders): Use mail_storage_create_folder * mail-callbacks.c (mail_storage_create_folder): Convenience function so we can keep all the evolution_storage_add_new_folder() code in one place as much as possible. * subscribe-dialog.c (recursive_add_folder): Use 'name' rather than the no-description bs since that's what all the other places do. * mail-callbacks.c (folder_created): New callback to handle the "folder_created" signal - handles CamelFolderInfo's recursively. (folder_deleted): Same but for "folder_deleted". * component-factory.c (storage_create_folder): Instead of doing the evolution_storage_new_folder() stuff by hand, pass it off to the new callback: folder_created(). At some point this will be unecessary as we'll attach this callback to the "folder_created" signal. svn path=/trunk/; revision=8247 --- mail/mail-callbacks.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mail/mail-callbacks.h') diff --git a/mail/mail-callbacks.h b/mail/mail-callbacks.h index d6e94b4c2b..e888d47899 100644 --- a/mail/mail-callbacks.h +++ b/mail/mail-callbacks.h @@ -27,6 +27,7 @@ #include #include "composer/e-msg-composer.h" #include "mail-types.h" +#include "evolution-storage.h" #ifdef __cplusplus extern "C" { @@ -85,6 +86,13 @@ void forward_messages (CamelFolder *folder, GPtrArray *uids, gboolean inline) void mail_print_preview_msg (MailDisplay *md); void mail_print_msg (MailDisplay *md); + +/* CamelStore callbacks */ +void folder_created (CamelStore *store, CamelFolderInfo *fi); +void folder_deleted (CamelStore *store, CamelFolderInfo *fi); + +void mail_storage_create_folder (EvolutionStorage *storage, CamelStore *store, CamelFolderInfo *fi); + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.3