tizen 2.4 release
[framework/web/wrt-commons.git] / modules / utils / include / dpl / utils / wrt_utility.h
@@ -24,6 +24,7 @@
 #define _WRT_UTILITY_H_
 
 #include <sys/stat.h>
+#include <dpl/availability.h>
 
 /**
  * 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_