Fix static analysis issues
[platform/core/appfw/app-installers.git] / src / common / step / filesystem / step_acquire_external_storage.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_ACQUIRE_EXTERNAL_STORAGE_H_
6 #define COMMON_STEP_FILESYSTEM_STEP_ACQUIRE_EXTERNAL_STORAGE_H_
7
8 #include "common/installer_context.h"
9 #include "common/step/step.h"
10
11 namespace common_installer {
12 namespace filesystem {
13
14 /**
15  * \brief Creates package storage according to:
16  *        1) package installation
17  *        2) manifest file
18  */
19 class StepAcquireExternalStorage : public Step {
20  public:
21   using Step::Step;
22
23   explicit StepAcquireExternalStorage(InstallerContext* context,
24       bool installed);
25
26   Status process() override;
27
28   Status clean() override { return Status::OK; }
29   Status undo() override { return Status::OK; }
30   Status precheck() override;
31
32   bool installed_ = false;
33
34   STEP_NAME(AcquireExternalStorage)
35 };
36
37 }  // namespace filesystem
38 }  // namespace common_installer
39
40 #endif  // COMMON_STEP_FILESYSTEM_STEP_ACQUIRE_EXTERNAL_STORAGE_H_