diff options
author | bertrand <Bertrand.Guiheneuf@inria.fr> | 1999-05-03 23:38:33 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-05-03 23:38:33 +0800 |
commit | b824af62e0e823df722b506e2617f1f4623289ec (patch) | |
tree | e0f66c8d9a14fba7d4a7f5e016e6aaa9c2f9233d /camel/camel-folder.c | |
parent | f38f1deb654ffe547ef18994ad9435fd1aa5cff7 (diff) | |
download | gsoc2013-evolution-b824af62e0e823df722b506e2617f1f4623289ec.tar.gz gsoc2013-evolution-b824af62e0e823df722b506e2617f1f4623289ec.tar.zst gsoc2013-evolution-b824af62e0e823df722b506e2617f1f4623289ec.zip |
typo fix
1999-05-03 bertrand <Bertrand.Guiheneuf@inria.fr>
* camel/camel-folder.c (camel_folder_get_mode):
typo fix
* camel/camel-folder.c (__camel_folder_list_subfolders):
new func.
* some doc stuffs
Finishing storage layer, will start message classes soon.
Bertrand
svn path=/trunk/; revision=889
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 45 |
1 files changed, 41 insertions, 4 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 5e3bd1265c..8f5e46b9a8 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -47,6 +47,7 @@ static gboolean __camel_folder_delete_messages(CamelFolder *folder); static CamelFolder *__camel_folder_get_parent_folder (CamelFolder *folder); static CamelStore *__camel_folder_get_parent_store (CamelFolder *folder); static CamelFolderOpenMode __camel_folder_get_mode(CamelFolder *folder); +static GList *__camel_folder_list_subfolders(CamelFolder *folder); static void camel_folder_class_init (CamelFolderClass *camel_folder_class) @@ -70,6 +71,7 @@ camel_folder_class_init (CamelFolderClass *camel_folder_class) camel_folder_class->get_parent_folder = __camel_folder_get_parent_folder; camel_folder_class->get_parent_store = __camel_folder_get_parent_store; camel_folder_class->get_mode = __camel_folder_get_mode; + camel_folder_class->list_subfolders = __camel_folder_list_subfolders; /* virtual method overload */ } @@ -313,6 +315,25 @@ __camel_folder_get_folder(CamelFolder *folder, GString *folder_name) return NULL; } +/** + * camel_folder_get_folder: return the (sub)folder object that + * is specified. + * + * This method returns a folder objects. This folder + * is necessarily a subfolder of the current folder. + * It is an error to ask a folder begining with the + * folder separator character. + * + * @folder : the folder + * @folderName: subfolder path. NULL if the subfolder object + * could not be created + **/ +CamelFolder * +camel_folder_get_folder(CamelFolder *folder, GString *folder_name) +{ + return (CF_CLASS(folder)->get_folder(folder,folder_name)); +} + @@ -421,9 +442,8 @@ __camel_folder_delete (CamelFolder *folder, gboolean recurse) /* delete all messages in the folder */ CF_CLASS(folder)->delete_messages(folder); -#warning implement list_subfolders - /* subfolders = CF_CLASS(folder)->list_subfolders(folder); */ - + + subfolders = CF_CLASS(folder)->list_subfolders(folder); if (recurse) { /* delete subfolders */ if (subfolders) { sf = subfolders; @@ -580,8 +600,25 @@ __camel_folder_get_mode(CamelFolder *folder) * * Return value: open mode of the folder **/ -static CamelFolderOpenMode +CamelFolderOpenMode camel_folder_get_mode(CamelFolder *folder) { return CF_CLASS(folder)->get_mode(folder); } + + + + +static GList * +__camel_folder_list_subfolders(CamelFolder *folder) +{ + return NULL; +} + + +GList * +camel_folder_list_subfolders(CamelFolder *folder) +{ + return CF_CLASS(folder)->list_subfolders(folder); +} + |