1 /*
2  * Copyright (c) 2023-2024 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 DLP_IPC_INTERFACE_CODE_H
17 #define DLP_IPC_INTERFACE_CODE_H
18 
19 /* SAID: 3521 */
20 namespace OHOS {
21 namespace Security {
22 namespace DlpPermission {
23 enum class DlpPermissionServiceInterfaceCode {
24     GENERATE_DLP_CERTIFICATE = 0,
25     PARSE_DLP_CERTIFICATE,
26     INSTALL_DLP_SANDBOX,
27     UNINSTALL_DLP_SANDBOX,
28     GET_SANDBOX_EXTERNAL_AUTH,
29     QUERY_DLP_FILE_ACCESS,
30     IS_IN_DLP_SANDBOX,
31     GET_DLP_SUPPORT_FILE_TYPE,
32     QUERY_DLP_FILE_ACCESS_BY_TOKEN_ID,
33     REGISTER_DLP_SANDBOX_CHANGE_CALLBACK,
34     UNREGISTER_DLP_SANDBOX_CHANGE_CALLBACK,
35     GET_DLP_GATHERING_POLICY,
36     SET_RETENTION_STATE,
37     SET_NOT_RETENTION_STATE,
38     GET_RETENTION_SANDBOX_LIST,
39     CLEAR_UNRESERVED_SANDBOX,
40     GET_VISTI_FILE_RECORD_LIST,
41     REGISTER_OPEN_DLP_FILE_CALLBACK,
42     UN_REGISTER_OPEN_DLP_FILE_CALLBACK,
43     SET_MDM_POLICY,
44     GET_MDM_POLICY,
45     REMOVE_MDM_POLICY,
46     SET_SANDBOX_APP_CONFIG,
47     CLEAN_SANDBOX_APP_CONFIG,
48     GET_SANDBOX_APP_CONFIG,
49     IS_DLP_FEATURE_PROVIDED,
50     SET_READ_FLAG,
51 };
52 
53 enum DlpPermissionCallbackInterfaceCode {
54     ON_GENERATE_DLP_CERTIFICATE = 0,
55     ON_PARSE_DLP_CERTIFICATE,
56 };
57 } // namespace DlpPermission
58 } // namespace Security
59 } // namespace OHOS
60 #endif // DLP_IPC_INTERFACE_CODE_H