Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / filesystem / step_move_installed_storage.h
index a064976..38e7353 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef COMMON_STEP_FILESYSTEM_STEP_MOVE_INSTALLED_STORAGE_H_
 #define COMMON_STEP_FILESYSTEM_STEP_MOVE_INSTALLED_STORAGE_H_
 
+#include <filesystem>
+
 #include "common/installer_context.h"
 #include "common/step/step.h"
 
@@ -15,19 +17,28 @@ class StepMoveInstalledStorage : public Step {
  public:
   using Step::Step;
 
+  explicit StepMoveInstalledStorage(InstallerContext* context);
+
   Status process() override;
 
   Status clean() override;
   Status undo() override;
-  Status precheck() override { return Status::OK; }
+  Status precheck() override;
 
  private:
   void SetTepPaths();
   bool MoveTep();
   bool MoveBackTep();
-
-  boost::filesystem::path old_location_;
-  boost::filesystem::path new_location_;
+  bool MoveExternal();
+  bool MoveBackExternal();
+  bool MoveExtended();
+  bool MoveBackExtended();
+
+  std::filesystem::path old_tep_location_;
+  std::filesystem::path new_tep_location_;
+  std::filesystem::path old_pkg_location_;
+  std::filesystem::path new_pkg_location_;
+  MoveType move_type_;
 
   STEP_NAME(MoveInstalledStorage)
 };