21bc815b6b9340a4f27c0ca812e10726e7927dcc
[platform/core/appfw/app-installers.git] / src / common / step / security / step_register_security.h
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.
4
5 #ifndef COMMON_STEP_SECURITY_STEP_REGISTER_SECURITY_H_
6 #define COMMON_STEP_SECURITY_STEP_REGISTER_SECURITY_H_
7
8 #include <manifest_parser/utils/logging.h>
9
10 #include "common/step/step.h"
11
12 namespace common_installer {
13 namespace security {
14
15 class StepRegisterSecurity : public Step {
16  public:
17   using Step::Step;
18
19   Status process() override;
20   Status undo() override { return Status::OK; }
21   Status clean() override { return Status::OK; }
22   Status precheck() override;
23
24  private:
25   void AddRecoveryInfo();
26
27   STEP_NAME(RegisterSecurity)
28 };
29
30 }  // namespace security
31 }  // namespace common_installer
32
33 #endif  // COMMON_STEP_SECURITY_STEP_REGISTER_SECURITY_H_