1/** 2 * Copyright (c) 2022 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 16export default { 17 SPN_CHINA: { 18 // TELECOM 19 TELECOM: "中国电信", 20 // MOBILE 21 MOBILE: "CMCC", 22 // UNICOM 23 UNICOM: "China Unicom", 24 }, 25 Event: { 26 CALLS_CHANGE: 0, 27 CONTACTS_CHANGE: 1, 28 SLOT_CHANGE: 2, 29 SPN_INFO_CHANGED: 3, 30 VOLTE_CHANGE: 4, 31 CALLS_MERGE: 5 32 }, 33 34 CONFIG: { 35 useDataWorker: false, 36 needCache: false 37 }, 38 39 initConfig(context: Context) { 40 this.CONFIG.useDataWorker = context.resourceManager.getBoolean($r('app.boolean.use_data_worker')); 41 this.CONFIG.needCache = context.resourceManager.getBoolean($r('app.boolean.cache_page_one')); 42 return this.CONFIG 43 } 44}