Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / external_storage.h
index f9a70b3..a60f112 100644 (file)
@@ -5,11 +5,9 @@
 #ifndef COMMON_EXTERNAL_STORAGE_H_
 #define COMMON_EXTERNAL_STORAGE_H_
 
-#include <boost/filesystem/path.hpp>
-
-
 #include <sys/types.h>
 
+#include <filesystem>
 #include <memory>
 #include <string>
 #include <vector>
@@ -27,25 +25,25 @@ namespace common_installer {
 class ExternalStorage final {
  public:
   static std::unique_ptr<ExternalStorage> MoveInstalledStorage(
-      RequestType type, const boost::filesystem::path& application_root,
+      RequestType type, const std::filesystem::path& application_root,
       const std::string& pkgid, const std::string& package_type,
       uid_t uid, bool is_external_move);
 
   static std::unique_ptr<ExternalStorage> AcquireExternalStorage(
-      RequestType type, const boost::filesystem::path& application_root,
+      RequestType type, const std::filesystem::path& application_root,
       const std::string& pkgid, const std::string& package_type,
-      const boost::filesystem::path& space_requirement, uid_t uid);
+      const std::filesystem::path& space_requirement, uid_t uid);
 
   static std::unique_ptr<ExternalStorage> MigrateExternalStorage(
       RequestType type, const std::string& pkgid, uid_t uid);
 
   ExternalStorage(RequestType type, const std::string& pkgid,
                   const std::string& package_type,
-                  const boost::filesystem::path& application_root, uid_t uid);
+                  const std::filesystem::path& application_root, uid_t uid);
 
   ExternalStorage(RequestType type, const std::string& pkgid,
                   const std::string& package_type,
-                  const boost::filesystem::path& application_root, uid_t uid,
+                  const std::filesystem::path& application_root, uid_t uid,
                   bool is_external_move);
   ExternalStorage(RequestType type, const std::string& pkgid, uid_t uid);
   ~ExternalStorage();
@@ -58,13 +56,13 @@ class ExternalStorage final {
  private:
   App2ExtDynamicService service;
 
-  bool Initialize(const boost::filesystem::path& space_requirement);
+  bool Initialize(const std::filesystem::path& space_requirement);
   bool Finalize(bool success);
 
   RequestType type_;
   std::string pkgid_;
   std::string package_type_;
-  boost::filesystem::path application_root_;
+  std::filesystem::path application_root_;
   uid_t uid_;
   int move_type_;
   std::shared_ptr<app2ext_handle> handle_;