• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-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
16import commonEvent from '@ohos.commonEventManager';
17
18export default class consts {
19  // definition for database
20  static readonly DATA_BASE_NAME: string = "nothing_pre";
21  static readonly DATA_BASE_KEY_TOTAL_TIMES: string = "totalTimes";
22  static readonly DATA_BASE_KEY_START_TIME: string = "startTime";
23  static readonly DATA_BASE_KEY_WIFI_POWER_STATE: string = commonEvent.Support.COMMON_EVENT_WIFI_POWER_STATE;
24  static readonly DATA_BASE_KEY_SCREEN_OFF: string = commonEvent.Support.COMMON_EVENT_SCREEN_OFF;
25  static readonly DATA_BASE_KEY_SCREEN_ON: string = commonEvent.Support.COMMON_EVENT_SCREEN_ON;
26  static readonly DATA_BASE_KEY_SCREEN_LOCKED: string = commonEvent.Support.COMMON_EVENT_SCREEN_LOCKED;
27  static readonly DATA_BASE_KEY_SCREEN_UNLOCKED: string = commonEvent.Support.COMMON_EVENT_SCREEN_UNLOCKED;
28  static readonly DATA_BASE_KEY_ONCE_EVENTS: string = "onceCall";
29  static readonly DATA_BASE_KEY_NEVER_EVENTS: string = "neverCall";
30
31  // definition for event enable state
32  static readonly ENABLE_STATE_ALWAYS : number = 0
33  static readonly ENABLE_STATE_ONCE : number = 1
34  static readonly ENABLE_STATE_NEVER : number = 2
35
36  // definition for record volume
37  static readonly MAX_RECORD_NUM: number = 10;
38
39  // definition for self defined common events
40  static readonly COMMON_EVENT_FINISH_MEDITATION: string = "finish_meditation"
41  static readonly COMMON_EVENT_SETTING_UPDATE: string = "setting_update"
42}