X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-folder.h;h=cdfccf3c009ae1f64955194df73619b71f6276fc;hp=585739a477aa66e709725f0f8e7efcbd6249bb3c;hb=7477373e6c399ba5ffaaeb84d4ecd687420d1549;hpb=c4dcaf83a3586022b01cf01a03761e10007841b1 diff --git a/src/modest-tny-folder.h b/src/modest-tny-folder.h index 585739a..cdfccf3 100644 --- a/src/modest-tny-folder.h +++ b/src/modest-tny-folder.h @@ -203,6 +203,29 @@ gboolean modest_tny_folder_has_subfolder_with_name (TnyFolderStore *folder, gboolean modest_tny_folder_is_ancestor (TnyFolder *folder, TnyFolderStore *ancestor); +/** + * modest_tny_folder_store_find_folder_from_uri: + * @folder_store: a #TnyFolderStore + * @uri: a string + * + * This method tries to find a folder in @folder_store. The idea is + * being as fast as possible being synchronous. This is accomplished + * avoiding network access. + * + * Returns: %NULL if folder is not found, or a #TnyFolder. + */ +TnyFolder *modest_tny_folder_store_find_folder_from_uri (TnyFolderStore *folder_store, const gchar *uri); + +/** + * modest_tny_folder_get_display_name: + * @folder: a #TnyFolder + * + * obtain the display name for @folder + * + * Returns: a newly allocated string + */ +gchar * modest_tny_folder_get_display_name (TnyFolder *folder); + G_END_DECLS #endif /* __MODEST_TNY_FOLDER_H__*/