199da06d0Sopenharmony_ci/** 299da06d0Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 399da06d0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 499da06d0Sopenharmony_ci * you may not use this file except in compliance with the License. 599da06d0Sopenharmony_ci * You may obtain a copy of the License at 699da06d0Sopenharmony_ci * 799da06d0Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 899da06d0Sopenharmony_ci * 999da06d0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1099da06d0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1199da06d0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1299da06d0Sopenharmony_ci * See the License for the specific language governing permissions and 1399da06d0Sopenharmony_ci * limitations under the License. 1499da06d0Sopenharmony_ci */ 1599da06d0Sopenharmony_ci 1699da06d0Sopenharmony_ci/** 1799da06d0Sopenharmony_ci * @file: sim card status 1899da06d0Sopenharmony_ci */ 1999da06d0Sopenharmony_ciexport default class SimStateConst { 2099da06d0Sopenharmony_ci // SIM card status unknown 2199da06d0Sopenharmony_ci public static SIM_STATE_UNKNOWN: number = 0; 2299da06d0Sopenharmony_ci 2399da06d0Sopenharmony_ci // SIM card is not present 2499da06d0Sopenharmony_ci public static SIM_STATE_NOT_PRESEN: number = 1; 2599da06d0Sopenharmony_ci 2699da06d0Sopenharmony_ci // SIM card is locked 2799da06d0Sopenharmony_ci public static SIM_STATE_LOCKED: number = 2; 2899da06d0Sopenharmony_ci 2999da06d0Sopenharmony_ci // SIM card is not ready 3099da06d0Sopenharmony_ci public static SIM_STATE_NOT_READY: number = 3; 3199da06d0Sopenharmony_ci 3299da06d0Sopenharmony_ci // SIM card is in ready state 3399da06d0Sopenharmony_ci public static SIM_STATE_READY: number = 4; 3499da06d0Sopenharmony_ci 3599da06d0Sopenharmony_ci // M card is in loading state 3699da06d0Sopenharmony_ci public static SIM_STATE_LOADED: number = 5; 3799da06d0Sopenharmony_ci 3899da06d0Sopenharmony_ci public static getSimStateObj = { 3999da06d0Sopenharmony_ci SIM_STATE_UNKNOWN: SimStateConst.SIM_STATE_UNKNOWN, 4099da06d0Sopenharmony_ci SIM_STATE_NOT_PRESEN: SimStateConst.SIM_STATE_NOT_PRESEN, 4199da06d0Sopenharmony_ci SIM_STATE_LOCKED: SimStateConst.SIM_STATE_LOCKED, 4299da06d0Sopenharmony_ci SIM_STATE_NOT_READY: SimStateConst.SIM_STATE_NOT_READY, 4399da06d0Sopenharmony_ci SIM_STATE_READY: SimStateConst.SIM_STATE_READY, 4499da06d0Sopenharmony_ci SIM_STATE_LOADED: SimStateConst.SIM_STATE_LOADED 4599da06d0Sopenharmony_ci }; 4699da06d0Sopenharmony_ci} 4799da06d0Sopenharmony_ci 4899da06d0Sopenharmony_ci 4999da06d0Sopenharmony_ci 50