• 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 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     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 };
40 
41 constexpr const char *TABLE_SIM_INFO = "sim_info";
42 constexpr const char *SIM_URI = "dataability:///com.ohos.simability";
43 } // namespace Telephony
44 } // namespace OHOS
45 #endif // DATA_STORAGE_SIM_DATA_H