From e9dc30dbf0c018bbc845f253bfe0b26baddbeaf2 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 2 Oct 2000 19:08:20 +0000 Subject: Remove camel_folder_{get,free}_subfolder_info, as we want to be able to * camel-folder.[ch]: Remove camel_folder_{get,free}_subfolder_info, as we want to be able to scan the whole subfolder tree without having to open any folders, so this needs to be in CamelStore. Remove can_hold_folders and can_hold_messages flags; things that don't hold messages are no longer considered CamelFolders. * camel-folder-summary.[ch]: Remove CamelFolderInfo stuff. * camel-store.[ch]: Add camel_store_{get,free}_folder_info, as well as camel_store_free_folder_info_full and ..._nop for default implementations, and camel_folder_info_free and camel_folder_info_build as convenience functions. Turn CamelFolderInfo into a tree structure and also add an "url" member. * providers/*/camel-*-folder.c: Remove subfolder_info and can_hold stuff. * providers/*/camel-*-store.c: Add folder_info stuff. * providers/imap/camel-imap-folder.c (imap_summary_free): Free the summary elements with camel_message_info_free, not camel_folder_info_free. Oops. * providers/imap/camel-imap-utils.c: const poison svn path=/trunk/; revision=5663 --- camel/camel-folder.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'camel/camel-folder.h') diff --git a/camel/camel-folder.h b/camel/camel-folder.h index fe1ed75f0c..8e307cbe1b 100644 --- a/camel/camel-folder.h +++ b/camel/camel-folder.h @@ -54,8 +54,6 @@ struct _CamelFolder CamelStore *parent_store; guint32 permanent_flags; - gboolean can_hold_folders:1; - gboolean can_hold_messages:1; gboolean has_summary_capability:1; gboolean has_search_capability:1; }; @@ -74,13 +72,6 @@ typedef struct { CamelStore * (*get_parent_store) (CamelFolder *folder); - gboolean (*can_hold_folders) (CamelFolder *folder); - gboolean (*can_hold_messages) (CamelFolder *folder); - - GPtrArray * (*get_subfolder_info)(CamelFolder *folder); - void (*free_subfolder_info) (CamelFolder *folder, - GPtrArray *subfolders); - void (*expunge) (CamelFolder *folder, CamelException *ex); @@ -164,10 +155,6 @@ void camel_folder_construct (CamelFolder *folder, const char *full_name, const char *name); -GPtrArray * camel_folder_get_subfolder_info (CamelFolder *folder); -void camel_folder_free_subfolder_info (CamelFolder *folder, - GPtrArray *array); - void camel_folder_refresh_info (CamelFolder * folder, CamelException * ex); void camel_folder_sync (CamelFolder *folder, -- cgit