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