• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 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 BASE_NOTIFICATION_DISTRIBUTED_NOTIFICATION_SERVICE_SERVICES_PREFERENCES_CONSTANT_H
17 #define BASE_NOTIFICATION_DISTRIBUTED_NOTIFICATION_SERVICE_SERVICES_PREFERENCES_CONSTANT_H
18 
19 namespace OHOS {
20 namespace Notification {
21 /**
22  * Indicates distributed database app id.
23  */
24 constexpr char APP_ID[] = "notification_service";
25 
26 /**
27  * Indicates distributed database store id.
28  */
29 constexpr char STORE_ID[] = "local_db";
30 
31 /**
32  * Default params that bundle importance is LEVEL_DEFAULT.
33  */
34 const static int BUNDLE_IMPORTANCE = 3;
35 
36 /**
37  * Default params that bundle badge total num is zero.
38  */
39 const static int BUNDLE_BADGE_TOTAL_NUM = 0;
40 
41 /**
42  * Default params that bundle enable notification is true.
43  */
44 const static int BUNDLE_ENABLE_NOTIFICATION = true;
45 const static int BUNDLE_POPPED_DIALOG = false;
46 
47 /**
48  * Default params that bundle show badge is false.
49  */
50 const static bool BUNDLE_SHOW_BADGE = false;
51 
52 /**
53  * Indicates bundle type which used to DB store.
54  */
55 enum class BundleType {
56     BUNDLE_NAME_TYPE = 1,
57     BUNDLE_IMPORTANCE_TYPE,
58     BUNDLE_SHOW_BADGE_TYPE,
59     BUNDLE_BADGE_TOTAL_NUM_TYPE,
60     BUNDLE_ENABLE_NOTIFICATION_TYPE,
61     BUNDLE_POPPED_DIALOG_TYPE,
62 };
63 }  // namespace Notification
64 }  // namespace OHOS
65 
66 #endif  // BASE_NOTIFICATION_DISTRIBUTED_NOTIFICATION_SERVICE_SERVICES_PREFERENCES_CONSTANT_H