• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 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 TELEPHONY_SIM_RDB_INFO_H
17 #define TELEPHONY_SIM_RDB_INFO_H
18 
19 namespace OHOS {
20 namespace Telephony {
21 class SimRdbInfo {
22 public:
23     static constexpr const char *SIM_ID = "sim_id";
24     static constexpr const char *ICC_ID = "icc_id";
25     static constexpr const char *CARD_ID = "card_id";
26     static constexpr const char *SLOT_INDEX = "slot_index";
27     static constexpr const char *SHOW_NAME = "show_name";
28     static constexpr const char *PHONE_NUMBER = "phone_number";
29     static constexpr const char *COUNTRY_CODE = "country_code";
30     static constexpr const char *LANGUAGE = "language";
31     static constexpr const char *IMSI = "imsi";
32     static constexpr const char *CARD_TYPE = "card_type";
33     static constexpr const char *IMS_SWITCH = "ims_switch";
34     static constexpr const char *IS_ACTIVE = "is_active";
35     static constexpr const char *IS_MAIN_CARD = "is_main_card";
36     static constexpr const char *IS_VOICE_CARD = "is_voice_card";
37     static constexpr const char *IS_MESSAGE_CARD = "is_message_card";
38     static constexpr const char *IS_CELLULAR_DATA_CARD = "is_cellular_data_card";
39     inline static const std::string SIM_RDB_URI = "dataability:///com.ohos.simability/sim/sim_info";
40     inline static const std::string SIM_RDB_DEFAULT_SET_URI =
41         "dataability:///com.ohos.simability/sim/sim_info/set_card";
42     int simId;
43     std::string iccId;
44     std::string cardId;
45     int slotIndex;
46     int cardType;
47     int imsSwitch;
48     std::string showName;
49     std::string phoneNumber;
50     std::string countryCode;
51     std::string language;
52     std::string imsi;
53     int isMainCard;
54     int isVoiceCard;
55     int isMessageCard;
56     int isCellularDataCard;
57     int isActive;
58 };
59 
60 enum class CardSeclectedStatus {
61     OFF,
62     ON,
63 };
64 } // namespace Telephony
65 } // namespace OHOS
66 #endif // TELEPHONY_SIM_RDB_INFO_H