Implement StepRestoreWgtSymbolicLink
[platform/core/appfw/wgt-backend.git] / src / wgt / step / filesystem / step_restore_wgt_symbolic_link.h
1 // Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
4
5 #ifndef WGT_STEP_FILESYSTEM_STEP_RESTORE_WGT_SYMBOLIC_LINK_H_
6 #define WGT_STEP_FILESYSTEM_STEP_RESTORE_WGT_SYMBOLIC_LINK_H_
7
8 #include <manifest_parser/utils/logging.h>
9
10 #include <common/installer_context.h>
11 #include <common/step/step.h>
12
13 namespace wgt {
14 namespace filesystem {
15
16 /**
17  * \brief Step that create symbolic link to application
18  */
19 class StepRestoreWgtSymbolicLink : public common_installer::Step {
20  public:
21   using Step::Step;
22
23   Status precheck() override { return Status::OK; }
24   Status process() override { return Status::OK; }
25   Status clean() override { return Status::OK; }
26   Status undo() override;
27
28   STEP_NAME(RestoreWgtSymbolicLink)
29 };
30
31 }  // namespace filesystem
32 }  // namespace wgt
33
34 #endif  // WGT_STEP_FILESYSTEM_STEP_RESTORE_WGT_SYMBOLIC_LINK_H_