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 WGT_STEP_FILESYSTEM_STEP_WGT_UNDO_PATCH_STORAGE_DIRECTORIES_H_
6 #define WGT_STEP_FILESYSTEM_STEP_WGT_UNDO_PATCH_STORAGE_DIRECTORIES_H_
8 #include <common/step/step.h>
9 #include <manifest_parser/utils/logging.h>
14 namespace filesystem {
17 * \brief Installation (WGT).
18 * Responsible for unlinking the content of widget's shared/res directory
19 * into package's shared/res directory and vice versa for Tizen widget
20 * with API version >= 3.0
22 class StepWgtUndoPatchStorageDirectories :
23 public common_installer::Step {
27 Status process() override;
28 Status clean() override;
29 Status undo() override;
30 Status precheck() override { return Status::OK; }
33 bool UndoShareDirFor3x();
34 std::filesystem::path backup_dir_;
36 STEP_NAME(WgtUndoPatchStorageDirectories)
39 } // namespace filesystem
42 #endif // WGT_STEP_FILESYSTEM_STEP_WGT_UNDO_PATCH_STORAGE_DIRECTORIES_H_