• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * @file Describe the file
3 * Copyright (c) 2021 Huawei Device Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17enum DefaultKey {
18  SETTINGS_SCREEN_BRIGHTNESS_DEFAULT = "settings.screen.brightness.default",
19  SETTINGS_TIME_FORMAT_DEFAULT = "settings.time.format.default",
20  SETTINGS_AUDIO_RINGTONE_DEFAULT = "settings.audio.ringtone.default",
21  SETTINGS_AUDIO_MEDIA_DEFAULT = "settings.audio.media.default",
22  SETTINGS_AUDIO_VOICE_CALL_DEFAULT = "settings.audio.voicecall.default",
23  SETTINGS_GENERAL_DEVICE_NAME_DEFAULT = "settings.general.device_name.default",
24  SETTINGS_DISPALY_NAVBAR_STATUS_DEFAULT = "settings.display.navigationbar_status.default",
25  CELLULAR_DATA_ENABLE_DEFAULT = "cellular_data_enable.default",
26};
27
28enum SettingsKey {
29  SETTINGS_SCREEN_BRIGHTNESS = "settings.screen.brightness",
30  SETTINGS_TIME_FORMAT = "settings.time.format",
31  SETTINGS_AUDIO_RINGTONE = "settings.audio.ringtone",
32  SETTINGS_AUDIO_MEDIA = "settings.audio.media",
33  SETTINGS_AUDIO_VOICE_CALL = "settings.audio.voicecall",
34  SETTINGS_GENERAL_DEVICE_NAME = "settings.general.device_name",
35  SETTINGS_DISPALY_NAVBAR_STATUS = "settings.display.navigationbar_status",
36  CELLULAR_DATA_ENABLE = "cellular_data_enable",
37};
38
39const SettingsDataConfig = {
40  DB_NAME: 'settingsdata.db',
41  TABLE_NAME: 'SETTINGSDATA',
42  FIELD_ID: 'ID',
43  FIELD_KEYWORD: 'KEYWORD',
44  FIELD_VALUE: 'VALUE',
45  DefaultKey: DefaultKey,
46  SettingsKey: SettingsKey,
47};
48
49export default SettingsDataConfig;
50