1 /* 2 * Copyright (c) 2021-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 #ifndef DATA_STORAGE_SIM_DATA_H 17 #define DATA_STORAGE_SIM_DATA_H 18 19 namespace OHOS { 20 namespace Telephony { 21 class SimData { 22 public: 23 /** 24 * @brief SIM Id of the SIM card 25 */ 26 static constexpr const char *SIM_ID = "sim_id"; 27 /** 28 * @brief ICCID of the SIM card 29 */ 30 static constexpr const char *ICC_ID = "icc_id"; 31 /** 32 * @brief ICCID of the SIM or eid of eSIM 33 */ 34 static constexpr const char *CARD_ID = "card_id"; 35 /** 36 * @brief Card slot index number 37 */ 38 static constexpr const char *SLOT_INDEX = "slot_index"; 39 /** 40 * @brief Show name of the SIM card 41 */ 42 static constexpr const char *SHOW_NAME = "show_name"; 43 /** 44 * @brief Phone number of the SIM card 45 */ 46 static constexpr const char *PHONE_NUMBER = "phone_number"; 47 /** 48 * @brief Country code of the SIM card 49 */ 50 static constexpr const char *COUNTRY_CODE = "country_code"; 51 /** 52 * @brief Language of the SIM card 53 */ 54 static constexpr const char *LANGUAGE = "language"; 55 /** 56 * @brief International mobile subscriber ID 57 */ 58 static constexpr const char *IMSI = "imsi"; 59 /** 60 * @brief The type of the SIM card 61 */ 62 static constexpr const char *CARD_TYPE = "card_type"; 63 /** 64 * @brief Wwitch of ims 65 */ 66 static constexpr const char *IMS_SWITCH = "ims_switch"; 67 /** 68 * @brief Active or not 69 */ 70 static constexpr const char *IS_ACTIVE = "is_active"; 71 /** 72 * @brief Main card or not 73 */ 74 static constexpr const char *IS_MAIN_CARD = "is_main_card"; 75 /** 76 * @brief Voice card or not 77 */ 78 static constexpr const char *IS_VOICE_CARD = "is_voice_card"; 79 /** 80 * @brief Message card or not 81 */ 82 static constexpr const char *IS_MESSAGE_CARD = "is_message_card"; 83 /** 84 * @brief Cellular data card or not 85 */ 86 static constexpr const char *IS_CELLULAR_DATA_CARD = "is_cellular_data_card"; 87 }; 88 89 constexpr const char *TABLE_SIM_INFO = "sim_info"; 90 constexpr const char *SIM_URI = "datashare:///com.ohos.simability"; 91 } // namespace Telephony 92 } // namespace OHOS 93 #endif // DATA_STORAGE_SIM_DATA_H