Fix in StepWgtPatchStorageDirectory
[platform/core/appfw/wgt-backend.git] / src / wgt / step / security / step_check_wgt_ime_privilege.h
1 // Copyright (c) 2016 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 WGT_STEP_SECURITY_STEP_CHECK_WGT_IME_PRIVILEGE_H_
6 #define WGT_STEP_SECURITY_STEP_CHECK_WGT_IME_PRIVILEGE_H_
7
8 #include <common/step/step.h>
9
10 namespace wgt {
11 namespace security {
12
13 /**
14  * \brief Checks if the app has IME privileges.
15  */
16 class StepCheckWgtImePrivilege :
17   public common_installer::Step {
18  public:
19   using common_installer::Step::Step;
20   ~StepCheckWgtImePrivilege() override = default;
21
22   Status process() override;
23
24   Status clean() override { return Status::OK; }
25   Status undo() override { return Status::OK; }
26   Status precheck() override { return Status::OK; }
27
28  private:
29   Status Check23Api() const;
30   Status Check24Api() const;
31
32   Status CheckImePrivilege() const;
33
34   STEP_NAME(CheckWgtImePrivilege)
35 };
36 }  // namespace security
37 }  // namespace wgt
38
39 #endif  // WGT_STEP_SECURITY_STEP_CHECK_WGT_IME_PRIVILEGE_H_