Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / mount / step_mount_install.h
index 5d37dcc..b30b54f 100644 (file)
@@ -7,7 +7,10 @@
 
 #include <manifest_parser/utils/logging.h>
 
+#include <filesystem>
+
 #include "common/installer_context.h"
+#include "common/mount_base.h"
 #include "common/step/step.h"
 
 namespace common_installer {
@@ -26,16 +29,22 @@ namespace mount {
  * * TZ_SYS_RW/$PKGID (/usr/apps/$PKGID)
  * * TZ_SER_APPS/$PKGID  (/{HOME}/apps_rw/$PKGID)
  */
-class StepMountInstall : public Step {
+class StepMountInstall : public MountBase, public Step {
  public:
   using Step::Step;
+  using MountBase::MountBase;
 
   Status process() override;
-  Status clean() override;
+  Status clean() override { return Status::OK; }
   Status undo() override;
   Status precheck() override;
 
-  SCOPE_LOG_TAG(MountInstall)
+ protected:
+  std::unique_ptr<IZipInterface> CreateZipInterface(
+      const std::filesystem::path& mount_path) override;
+  Status UmountPackagePath();
+
+  STEP_NAME(MountInstall);
 };
 
 }  // namespace mount