1 // Copyright (c) 2015 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_RECOVER_FILES_H_
6 #define COMMON_STEP_FILESYSTEM_STEP_RECOVER_FILES_H_
8 #include <manifest_parser/utils/logging.h>
10 #include "common/installer_context.h"
11 #include "common/step/recovery/step_recovery.h"
13 namespace common_installer {
14 namespace filesystem {
17 * @brief The StepRecoverBackup class
18 * Fixes state of package files in recovery mode.
20 * For recovering new installation, package files are removed.
21 * For recovering update installation, old package files are restored to its
24 class StepRecoverFiles : public recovery::StepRecovery {
26 using StepRecovery::StepRecovery;
28 Status RecoveryNew() override;
29 Status RecoveryUpdate() override;
32 bool SetPackagePath();
34 STEP_NAME(RecoverBackup)
37 } // namespace filesystem
38 } // namespace common_installer
40 #endif // COMMON_STEP_FILESYSTEM_STEP_RECOVER_FILES_H_