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     inline static const std::string SIM_RDB_SELECTION = "datashare:///com.ohos.simability/sim/sim_info";
24     inline static const std::string SIM_RDB_DEFAULT_SET_URI =
25         "datashare:///com.ohos.simability/sim/sim_info/set_card";
26     inline static const std::string OPKEY_INIT_URI = "datashare:///com.ohos.opkeyability/opkey/opkey_init";
27     int simId;
28     std::string iccId;
29     std::string cardId;
30     int slotIndex;
31     int cardType;
32     int imsSwitch;
33     std::string showName;
34     std::string phoneNumber;
35     std::string countryCode;
36     std::string language;
37     std::string imsi;
38     int isMainCard;
39     int isVoiceCard;
40     int isMessageCard;
41     int isCellularDataCard;
42     int isActive;
43 };
44 
45 enum class CardSeclectedStatus {
46     OFF,
47     ON,
48 };
49 } // namespace Telephony
50 } // namespace OHOS
51 #endif // TELEPHONY_SIM_RDB_INFO_H