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
16/**
17 * @file: sim card status
18 */
19export default class SimStateConst {
20  // SIM card status unknown
21  public static SIM_STATE_UNKNOWN: number = 0;
22
23  // SIM card is not present
24  public static SIM_STATE_NOT_PRESEN: number = 1;
25
26  // SIM card is locked
27  public static SIM_STATE_LOCKED: number = 2;
28
29  // SIM card is not ready
30  public static SIM_STATE_NOT_READY: number = 3;
31
32  // SIM card is in ready state
33  public static SIM_STATE_READY: number = 4;
34
35  // M card is in loading state
36  public static SIM_STATE_LOADED: number = 5;
37
38  public static getSimStateObj = {
39    SIM_STATE_UNKNOWN: SimStateConst.SIM_STATE_UNKNOWN,
40    SIM_STATE_NOT_PRESEN: SimStateConst.SIM_STATE_NOT_PRESEN,
41    SIM_STATE_LOCKED: SimStateConst.SIM_STATE_LOCKED,
42    SIM_STATE_NOT_READY: SimStateConst.SIM_STATE_NOT_READY,
43    SIM_STATE_READY: SimStateConst.SIM_STATE_READY,
44    SIM_STATE_LOADED: SimStateConst.SIM_STATE_LOADED
45  };
46}
47
48
49
50