125c1cde8Sopenharmony_ci/* 225c1cde8Sopenharmony_ci * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 325c1cde8Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 425c1cde8Sopenharmony_ci * you may not use this file except in compliance with the License. 525c1cde8Sopenharmony_ci * You may obtain a copy of the License at 625c1cde8Sopenharmony_ci * 725c1cde8Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 825c1cde8Sopenharmony_ci * 925c1cde8Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1025c1cde8Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1125c1cde8Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1225c1cde8Sopenharmony_ci * See the License for the specific language governing permissions and 1325c1cde8Sopenharmony_ci * limitations under the License. 1425c1cde8Sopenharmony_ci */ 1525c1cde8Sopenharmony_ci 1625c1cde8Sopenharmony_ci#ifndef DATA_STORAGE_SIM_DATA_H 1725c1cde8Sopenharmony_ci#define DATA_STORAGE_SIM_DATA_H 1825c1cde8Sopenharmony_ci 1925c1cde8Sopenharmony_cinamespace OHOS { 2025c1cde8Sopenharmony_cinamespace Telephony { 2125c1cde8Sopenharmony_ciclass SimData { 2225c1cde8Sopenharmony_cipublic: 2325c1cde8Sopenharmony_ci /** 2425c1cde8Sopenharmony_ci * @brief SIM Id of the SIM card 2525c1cde8Sopenharmony_ci */ 2625c1cde8Sopenharmony_ci static constexpr const char *SIM_ID = "sim_id"; 2725c1cde8Sopenharmony_ci /** 2825c1cde8Sopenharmony_ci * @brief ICCID of the SIM card 2925c1cde8Sopenharmony_ci */ 3025c1cde8Sopenharmony_ci static constexpr const char *ICC_ID = "icc_id"; 3125c1cde8Sopenharmony_ci /** 3225c1cde8Sopenharmony_ci * @brief ICCID of the SIM or eid of eSIM 3325c1cde8Sopenharmony_ci */ 3425c1cde8Sopenharmony_ci static constexpr const char *CARD_ID = "card_id"; 3525c1cde8Sopenharmony_ci /** 3625c1cde8Sopenharmony_ci * @brief Card slot index number 3725c1cde8Sopenharmony_ci */ 3825c1cde8Sopenharmony_ci static constexpr const char *SLOT_INDEX = "slot_index"; 3925c1cde8Sopenharmony_ci /** 4025c1cde8Sopenharmony_ci * @brief Show name of the SIM card 4125c1cde8Sopenharmony_ci */ 4225c1cde8Sopenharmony_ci static constexpr const char *SHOW_NAME = "show_name"; 4325c1cde8Sopenharmony_ci /** 4425c1cde8Sopenharmony_ci * @brief Phone number of the SIM card 4525c1cde8Sopenharmony_ci */ 4625c1cde8Sopenharmony_ci static constexpr const char *PHONE_NUMBER = "phone_number"; 4725c1cde8Sopenharmony_ci /** 4825c1cde8Sopenharmony_ci * @brief Country code of the SIM card 4925c1cde8Sopenharmony_ci */ 5025c1cde8Sopenharmony_ci static constexpr const char *COUNTRY_CODE = "country_code"; 5125c1cde8Sopenharmony_ci /** 5225c1cde8Sopenharmony_ci * @brief Language of the SIM card 5325c1cde8Sopenharmony_ci */ 5425c1cde8Sopenharmony_ci static constexpr const char *LANGUAGE = "language"; 5525c1cde8Sopenharmony_ci /** 5625c1cde8Sopenharmony_ci * @brief International mobile subscriber ID 5725c1cde8Sopenharmony_ci */ 5825c1cde8Sopenharmony_ci static constexpr const char *IMSI = "imsi"; 5925c1cde8Sopenharmony_ci /** 6025c1cde8Sopenharmony_ci * @brief The type of the SIM card 6125c1cde8Sopenharmony_ci */ 6225c1cde8Sopenharmony_ci static constexpr const char *CARD_TYPE = "card_type"; 6325c1cde8Sopenharmony_ci /** 6425c1cde8Sopenharmony_ci * @brief Wwitch of ims 6525c1cde8Sopenharmony_ci */ 6625c1cde8Sopenharmony_ci static constexpr const char *IMS_SWITCH = "ims_switch"; 6725c1cde8Sopenharmony_ci /** 6825c1cde8Sopenharmony_ci * @brief Active or not 6925c1cde8Sopenharmony_ci */ 7025c1cde8Sopenharmony_ci static constexpr const char *IS_ACTIVE = "is_active"; 7125c1cde8Sopenharmony_ci /** 7225c1cde8Sopenharmony_ci * @brief Main card or not 7325c1cde8Sopenharmony_ci */ 7425c1cde8Sopenharmony_ci static constexpr const char *IS_MAIN_CARD = "is_main_card"; 7525c1cde8Sopenharmony_ci /** 7625c1cde8Sopenharmony_ci * @brief Voice card or not 7725c1cde8Sopenharmony_ci */ 7825c1cde8Sopenharmony_ci static constexpr const char *IS_VOICE_CARD = "is_voice_card"; 7925c1cde8Sopenharmony_ci /** 8025c1cde8Sopenharmony_ci * @brief Message card or not 8125c1cde8Sopenharmony_ci */ 8225c1cde8Sopenharmony_ci static constexpr const char *IS_MESSAGE_CARD = "is_message_card"; 8325c1cde8Sopenharmony_ci /** 8425c1cde8Sopenharmony_ci * @brief Cellular data card or not 8525c1cde8Sopenharmony_ci */ 8625c1cde8Sopenharmony_ci static constexpr const char *IS_CELLULAR_DATA_CARD = "is_cellular_data_card"; 8725c1cde8Sopenharmony_ci /** 8825c1cde8Sopenharmony_ci * @brief The opkey of sim 8925c1cde8Sopenharmony_ci */ 9025c1cde8Sopenharmony_ci static constexpr const char *OPKEY = "opkey"; 9125c1cde8Sopenharmony_ci /** 9225c1cde8Sopenharmony_ci * @brief The mcc of sim 9325c1cde8Sopenharmony_ci */ 9425c1cde8Sopenharmony_ci static constexpr const char *MCC = "mcc"; 9525c1cde8Sopenharmony_ci /** 9625c1cde8Sopenharmony_ci * @brief The mnc of sim 9725c1cde8Sopenharmony_ci */ 9825c1cde8Sopenharmony_ci static constexpr const char *MNC = "mnc"; 9925c1cde8Sopenharmony_ci}; 10025c1cde8Sopenharmony_ci 10125c1cde8Sopenharmony_ciconstexpr const char *TABLE_SIM_INFO = "sim_info"; 10225c1cde8Sopenharmony_ciconstexpr const char *SIM_URI = "datashare:///com.ohos.simability"; 10325c1cde8Sopenharmony_ci} // namespace Telephony 10425c1cde8Sopenharmony_ci} // namespace OHOS 10525c1cde8Sopenharmony_ci#endif // DATA_STORAGE_SIM_DATA_H