X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=modules%2Futils%2Finclude%2Fdpl%2Futils%2Fwrt_utility.h;fp=modules_mobile%2Futils%2Finclude%2Fdpl%2Futils%2Fwrt_utility.h;h=57c9a0fa8069591df489ab6cc5da8223ba2d7fc1;hb=3a034abb4dca58ff0940687d8dd2b829ce2e226f;hp=165e1676de0522c3d98ab26f86af91a93347e8e3;hpb=58be0971049907f3166ce56a6ad509769565158f;p=framework%2Fweb%2Fwrt-commons.git diff --git a/modules_mobile/utils/include/dpl/utils/wrt_utility.h b/modules/utils/include/dpl/utils/wrt_utility.h similarity index 78% rename from modules_mobile/utils/include/dpl/utils/wrt_utility.h rename to modules/utils/include/dpl/utils/wrt_utility.h index 165e167..57c9a0f 100644 --- a/modules_mobile/utils/include/dpl/utils/wrt_utility.h +++ b/modules/utils/include/dpl/utils/wrt_utility.h @@ -24,6 +24,7 @@ #define _WRT_UTILITY_H_ #include +#include /** * Joins two paths into one @@ -37,7 +38,8 @@ */ void WrtUtilJoinPaths(std::string &joined, const std::string &parent, - const std::string &child); + const std::string &child) + DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::path concatenation method instead"); /** * Creates directories specified by path @@ -51,7 +53,8 @@ void WrtUtilJoinPaths(std::string &joined, * several nested directories, you must make sure that the mode flag allows you * to write and search the direcotries you create. */ -bool WrtUtilMakeDir(const std::string &newpath, mode_t mode = 0755); +bool WrtUtilMakeDir(const std::string &newpath, mode_t mode = 0755) +DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::create_directories with boost::filesystem::permissions() instead"); /** * This function removes the directory or file pointed to by path @@ -60,7 +63,7 @@ bool WrtUtilMakeDir(const std::string &newpath, mode_t mode = 0755); * * @return true on success, false otherwise */ -bool WrtUtilRemove(const std::string &path); +bool WrtUtilRemove(const std::string &path) DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::remove_all instead"); /** * Checks if path exists and is a regular file @@ -69,7 +72,7 @@ bool WrtUtilRemove(const std::string &path); * * @return true if regular file is accessible under path, false otherwise */ -bool WrtUtilFileExists(const std::string &path); +bool WrtUtilFileExists(const std::string &path) DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::exists() instead"); /** * Checks if path exists and is a directory @@ -78,7 +81,7 @@ bool WrtUtilFileExists(const std::string &path); * * @return true if directory is accessible under path, false otherwise */ -bool WrtUtilDirExists(const std::string &path); +bool WrtUtilDirExists(const std::string &path) DPL_DEPRECATED_WITH_MESSAGE("Use boost::filesystem::exists() instead"); #endif //_WRT_UTILITY_H_