1 // Copyright (c) 2015 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.
5 #ifndef WGT_STEP_FILESYSTEM_STEP_CREATE_WGT_SYMBOLIC_LINK_H_
6 #define WGT_STEP_FILESYSTEM_STEP_CREATE_WGT_SYMBOLIC_LINK_H_
8 #include <manifest_parser/utils/logging.h>
10 #include <common/installer/app_installer.h>
11 #include <common/installer_context.h>
12 #include <common/step/step.h>
15 namespace filesystem {
18 * \brief Step that create symbolic link to application
20 class StepCreateWgtSymbolicLink : public common_installer::Step {
25 * \brief Create symbolic link
27 * \return Status::ERROR when failed to create symbolic link,
28 * Status::OK otherwise
30 Status process() override;
37 Status clean() override { return Status::OK; }
40 * \brief Delete created symbolic link
44 Status undo() override;
47 * \brief Check weather manifest data is empty or not
51 Status precheck() override;
54 bool CreateSymlinksForApps();
56 STEP_NAME(CreateWgtSymbolicLink)
59 } // namespace filesystem
62 #endif // WGT_STEP_FILESYSTEM_STEP_CREATE_WGT_SYMBOLIC_LINK_H_