Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / filesystem / step_create_icons.h
1 // Copyright (c) 2015 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 COMMON_STEP_FILESYSTEM_STEP_CREATE_ICONS_H_
6 #define COMMON_STEP_FILESYSTEM_STEP_CREATE_ICONS_H_
7
8 #include <manifest_parser/utils/logging.h>
9
10 #include <filesystem>
11 #include <string>
12 #include <utility>
13 #include <vector>
14
15 #include "common/installer_context.h"
16 #include "common/step/step.h"
17
18 namespace common_installer {
19 namespace filesystem {
20
21 /**
22  * \brief Step responsible for creating icons for applications used during
23  *        installation and update. Used by WGT and TPK backend
24  */
25 class StepCreateIcons : public Step {
26  public:
27   using Step::Step;
28
29   /**
30    * \brief main logic for creating icons
31    *
32    * \return Status::OK if success, Status::ERROR otherwise
33    */
34   Status process() override;
35   Status clean() override { return Status::OK; }
36   /**
37    * \brief removes icons from system
38    *
39    * \return Status::OK
40    */
41   Status undo() override;
42   Status precheck() override { return Status::OK; }
43
44  private:
45   std::vector<std::filesystem::path> icons_;
46
47   STEP_NAME(CreateIcons)
48 };
49
50 }  // namespace filesystem
51 }  // namespace common_installer
52
53 #endif  // COMMON_STEP_FILESYSTEM_STEP_CREATE_ICONS_H_