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_
8 #include "common/installer_context.h"
9 #include "common/step/step.h"
11 namespace common_installer {
12 namespace filesystem {
14 class StepMoveInstalledStorage : public Step {
18 explicit StepMoveInstalledStorage(InstallerContext* context);
20 Status process() override;
22 Status clean() override;
23 Status undo() override;
24 Status precheck() override;
31 bool MoveBackExternal();
33 bool MoveBackExtended();
35 boost::filesystem::path old_tep_location_;
36 boost::filesystem::path new_tep_location_;
37 boost::filesystem::path old_pkg_location_;
38 boost::filesystem::path new_pkg_location_;
41 STEP_NAME(MoveInstalledStorage)
44 } // namespace filesystem
45 } // namespace common_installer
47 #endif // COMMON_STEP_FILESYSTEM_STEP_MOVE_INSTALLED_STORAGE_H_