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_SYMBOLIC_LINK_H_
6 #define WGT_STEP_FILESYSTEM_STEP_CREATE_SYMBOLIC_LINK_H_
8 #include <boost/filesystem.hpp>
10 #include <manifest_parser/utils/logging.h>
12 #include <common/app_installer.h>
13 #include <common/installer_context.h>
14 #include <common/step/step.h>
17 namespace filesystem {
20 * \brief Step that create symbolic link to application
22 class StepCreateSymbolicLink : public common_installer::Step {
27 * \brief Create symbolic link
29 * \return Status::ERROR when failed to create symbolic link,
30 * Status::OK otherwise
32 Status process() override;
39 Status clean() override { return Status::OK; }
42 * \brief Delete created symbolic link
46 Status undo() override;
53 Status precheck() override { return Status::OK; }
56 bool CreateSymlinksForApps();
58 STEP_NAME(SymbolicLink)
61 } // namespace filesystem
64 #endif // WGT_STEP_FILESYSTEM_STEP_CREATE_SYMBOLIC_LINK_H_