1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef I_DEVICE_SECURITY_LEVEL_H
17 #define I_DEVICE_SECURITY_LEVEL_H
18 
19 #include <cstdint>
20 #include <string.h>
21 
22 #include "dslm_service_ipc_interface_code.h"
23 #include "iremote_broker.h"
24 #include "message_parcel.h"
25 
26 namespace OHOS {
27 namespace Security {
28 namespace DeviceSecurityLevel {
29 constexpr int32_t DEVICE_SECURITY_LEVEL_MANAGER_SA_ID = 3511;
30 
31 class IDeviceSecurityLevel : public IRemoteBroker {
32 public:
33     using InterfaceCode = DeviceSecurityLevelInterfaceCode;
34     DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Security.DeviceSecurityLevel");
35     enum {
36         CMD_GET_DEVICE_SECURITY_LEVEL = static_cast<uint32_t>(InterfaceCode::CMD_GET_DEVICE_SECURITY_LEVEL),
37     };
38 };
39 
40 class IDeviceSecurityLevelCallback : public IRemoteBroker {
41 public:
42     using InterfaceCode = DeviceSecurityLevelCallbackInterfaceCode;
43     DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Security.DeviceSecurityLevel.Callback");
44     enum {
45         CMD_SET_DEVICE_SECURITY_LEVEL = static_cast<uint32_t>(InterfaceCode::CMD_SET_DEVICE_SECURITY_LEVEL),
46     };
47 };
48 } // namespace DeviceSecurityLevel
49 } // namespace Security
50 } // namespace OHOS
51 
52 #endif // I_DEVICE_SECURITY_LEVEL_H
53