1 /*
2  * Copyright (C) 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 INTERFACES_INNERKITS_NATIVE_INCLUDE_MEDIA_APP_URI_SENSITIVE_H_
17 #define INTERFACES_INNERKITS_NATIVE_INCLUDE_MEDIA_APP_URI_SENSITIVE_H_
18 
19 #include <string>
20 #include <set>
21 
22 namespace OHOS::Media {
23 #define EXPORT __attribute__ ((visibility ("default")))
24 
25 class AppUriSensitiveColumn {
26 public:
27     // columns
28     static const std::string ID EXPORT;
29     static const std::string APP_ID EXPORT;
30     static const std::string FILE_ID EXPORT;
31     static const std::string URI_TYPE EXPORT;
32     static const std::string HIDE_SENSITIVE_TYPE EXPORT;
33     static const std::string DATE_MODIFIED EXPORT;
34 
35     // uriTypes
36     static const int URI_PHOTO EXPORT;
37     static const int URI_AUDIO EXPORT;
38     static const std::set<int> URI_TYPES_ALL EXPORT;
39 
40     // permissionTypes
41     static const int SENSITIVE_ALL_DESENSITIZE EXPORT;
42     static const int SENSITIVE_GEOGRAPHIC_LOCATION_DESENSITIZE EXPORT;
43     static const int SENSITIVE_SHOOTING_PARAM_DESENSITIZE EXPORT;
44     static const int SENSITIVE_NO_DESENSITIZE EXPORT;
45     static const std::set<int> SENSITIVE_TYPES_ALL EXPORT;
46     // static const std::set<int> PERMISSION_TYPES_PICKER EXPORT;
47 
48     // index
49     static const std::string URI_URITYPE_APPID_INDEX EXPORT;
50 
51     // table name
52     static const std::string APP_URI_SENSITIVE_TABLE EXPORT;
53 
54     // default fetch columns
55     static const std::set<std::string> DEFAULT_FETCH_COLUMNS EXPORT;
56 
57     // create table sql
58     static const std::string CREATE_APP_URI_SENSITIVE_TABLE EXPORT;
59     static const std::string CREATE_URI_URITYPE_APPID_INDEX EXPORT;
60 
61     // drop sensitive column sql
62     static const std::string DELETE_APP_URI_SENSITIVE_TABLE EXPORT;
63 
64     // all columns
65     static const std::set<std::string> ALL_COLUMNS EXPORT;
66 };
67 
68 } // namespace OHOS::Media
69 #endif // INTERFACES_INNERKITS_NATIVE_INCLUDE_MEDIA_APP_URI_PERMISSION_H_