1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef COMMON_STEP_FILESYSTEM_STEP_MOVE_INSTALLED_STORAGE_H_
6 #define COMMON_STEP_FILESYSTEM_STEP_MOVE_INSTALLED_STORAGE_H_
10 #include "common/installer_context.h"
11 #include "common/step/step.h"
13 namespace common_installer {
14 namespace filesystem {
16 class StepMoveInstalledStorage : public Step {
20 explicit StepMoveInstalledStorage(InstallerContext* context);
22 Status process() override;
24 Status clean() override;
25 Status undo() override;
26 Status precheck() override;
33 bool MoveBackExternal();
35 bool MoveBackExtended();
37 std::filesystem::path old_tep_location_;
38 std::filesystem::path new_tep_location_;
39 std::filesystem::path old_pkg_location_;
40 std::filesystem::path new_pkg_location_;
43 STEP_NAME(MoveInstalledStorage)
46 } // namespace filesystem
47 } // namespace common_installer
49 #endif // COMMON_STEP_FILESYSTEM_STEP_MOVE_INSTALLED_STORAGE_H_