Add a new step StepCreateResControlDirectories
[platform/core/appfw/app-installers.git] / src / common / step / filesystem / step_create_res_control_directories.h
1 // Copyright (c) 2021 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_RES_CONTROL_DIRECTORIES_H_
6 #define COMMON_STEP_FILESYSTEM_STEP_CREATE_RES_CONTROL_DIRECTORIES_H_
7
8 #include <manifest_parser/utils/logging.h>
9
10 #include "common/step/step.h"
11
12 namespace common_installer {
13 namespace filesystem {
14
15 /**
16  * \brief Installation.
17  *        Responsible for creating res-control directories
18  *
19  * * process method implements creation of res-control directories for
20  *   package.
21  *
22  * res/mount/allowed: mount point for allowed resources
23  * res/mount/global: mount point for global resources
24  * res/mount/work: for working directory
25  */
26 class StepCreateResControlDirectories : public common_installer::Step {
27  public:
28   using Step::Step;
29
30   Status process() override;
31   Status clean() override { return Status::OK; }
32   Status undo() override;
33   Status precheck() override;
34
35  private:
36   STEP_NAME(CreateResControlDirectories)
37 };
38
39 }  // namespace filesystem
40 }  // namespace common_installer
41
42 #endif  // COMMON_STEP_FILESYSTEM_STEP_CREATE_RES_CONTROL_DIRECTORIES_H_