aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local/camel-local-folder.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-09-13 02:43:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-09-13 02:43:04 +0800
commit1ed7208ad8a498d2c8a5014ec60c25c01a660e55 (patch)
tree298e3b446623441da888e9e558f08f40383c7c51 /camel/providers/local/camel-local-folder.h
parentd4690814e8ad33979e6c5a6a86eb42f5c83a29ba (diff)
downloadgsoc2013-evolution-1ed7208ad8a498d2c8a5014ec60c25c01a660e55.tar
gsoc2013-evolution-1ed7208ad8a498d2c8a5014ec60c25c01a660e55.tar.gz
gsoc2013-evolution-1ed7208ad8a498d2c8a5014ec60c25c01a660e55.tar.bz2
gsoc2013-evolution-1ed7208ad8a498d2c8a5014ec60c25c01a660e55.tar.lz
gsoc2013-evolution-1ed7208ad8a498d2c8a5014ec60c25c01a660e55.tar.xz
gsoc2013-evolution-1ed7208ad8a498d2c8a5014ec60c25c01a660e55.tar.zst
gsoc2013-evolution-1ed7208ad8a498d2c8a5014ec60c25c01a660e55.zip
Implements CamelLocalFolder::get_full_path() (publicly namespaced so that
2003-09-12 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-folder.c (camel_mbox_folder_get_full_path): Implements CamelLocalFolder::get_full_path() (publicly namespaced so that CamelMboxStore can re-use them). (camel_mbox_folder_get_meta_path): Same. * providers/local/camel-mbox-store.c (get_folder): Changed the way the path is constructed, since we now handle subdirectories and stuff. (delete_folder): Try deleting the Folder.sbd directory. We also need to manage our own meta files since CamelLocalStore's impl constructs paths differently than what we need. (create_folder): Implemented. (rename_folder): Implemented. (scan_dir): Scan an mbox tree (get_folder_info): Implemented using scan_dir(). * providers/local/camel-local-store.c (delete_folder): Set fi->url to the correct value, meaning we need to prefix it with the protocol and the folder_name is not actually part of the path, it is a separate component to the url. * providers/local/camel-local-folder.c (camel_local_folder_construct): Use the new class virtual method to construct the full folder path and all the meta files. (local_get_full_path): Implemented default get_full_path method. (local_get_meta_path): Implemented default get_meta_path method. svn path=/trunk/; revision=22557
Diffstat (limited to 'camel/providers/local/camel-local-folder.h')
-rw-r--r--camel/providers/local/camel-local-folder.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/providers/local/camel-local-folder.h b/camel/providers/local/camel-local-folder.h
index 63a6870793..4fb5980a07 100644
--- a/camel/providers/local/camel-local-folder.h
+++ b/camel/providers/local/camel-local-folder.h
@@ -73,7 +73,11 @@ typedef struct {
CamelFolderClass parent_class;
/* Virtual methods */
-
+
+ /* path construction, only used at init */
+ char * (* get_full_path) (const char *toplevel_dir, const char *full_name);
+ char * (* get_meta_path) (const char *toplevel_dir, const char *full_name, const char *ext);
+
/* summary factory, only used at init */
CamelLocalSummary *(*create_summary)(const char *path, const char *folder, CamelIndex *index);