Remove boost dependency
[platform/core/appfw/wgt-backend.git] / src / wgt / step / filesystem / step_wgt_undo_patch_storage_directories.h
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.
4
5 #ifndef WGT_STEP_FILESYSTEM_STEP_WGT_UNDO_PATCH_STORAGE_DIRECTORIES_H_
6 #define WGT_STEP_FILESYSTEM_STEP_WGT_UNDO_PATCH_STORAGE_DIRECTORIES_H_
7
8 #include <common/step/step.h>
9 #include <manifest_parser/utils/logging.h>
10
11 #include <filesystem>
12
13 namespace wgt {
14 namespace filesystem {
15
16 /**
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
21  */
22 class StepWgtUndoPatchStorageDirectories :
23     public common_installer::Step {
24  public:
25   using Step::Step;
26
27   Status process() override;
28   Status clean() override;
29   Status undo() override;
30   Status precheck() override { return Status::OK; }
31
32  private:
33   bool UndoShareDirFor3x();
34   std::filesystem::path backup_dir_;
35
36   STEP_NAME(WgtUndoPatchStorageDirectories)
37 };
38
39 }  // namespace filesystem
40 }  // namespace wgt
41
42 #endif  // WGT_STEP_FILESYSTEM_STEP_WGT_UNDO_PATCH_STORAGE_DIRECTORIES_H_