1 /* 2 * Copyright (C) 2024 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 OHOS_TEL_RIL_MODEM_PARCEL_H 17 #define OHOS_TEL_RIL_MODEM_PARCEL_H 18 19 #include "tel_ril_base_parcel.h" 20 #include "tel_ril_enum.h" 21 22 namespace OHOS { 23 namespace Telephony { 24 /** 25 * @brief Defines the common information. 26 */ 27 struct UniInfo { 28 /** Request serial number. */ 29 int32_t serial = 0; 30 31 /** Index of Global System for Mobile Communications. */ 32 int32_t gsmIndex = 0; 33 34 /** Common information ID. */ 35 bool flag = false; 36 37 /** Parameter 1. */ 38 int32_t arg1 = 0; 39 40 /** Parameter 2. */ 41 int32_t arg2 = 0; 42 43 /** Temporary string. */ 44 std::string strTmp = ""; 45 }; 46 47 /** 48 * @brief Defines the radio access technology of the CS domain. 49 */ 50 struct VoiceRadioTechnology { 51 /** System service status. */ 52 SrvStatus srvStatus = SrvStatus::NO_SRV_SERVICE; 53 54 /** System service domain. */ 55 SrvDomain srvDomain = SrvDomain::NO_DOMAIN_SERVICE; 56 57 /** Roaming status. */ 58 RoamStatus roamStatus = RoamStatus::ROAM_UNKNOWN; 59 60 /** Sim card status. */ 61 SimStatus simStatus = SimStatus::USIM_INVALID; 62 63 /** Sim card lock status. */ 64 SimLockStatus lockStatus = SimLockStatus::SIM_CARD_UNLOCK; 65 66 /** System mode. */ 67 SysMode sysMode = SysMode::NO_SYSMODE_SERVICE; 68 69 /** String corresponding to the system mode. */ 70 std::string sysModeName = ""; 71 72 /** Radio access technology type. For details, see {@link RilRadioTech}. */ 73 TelRilRadioTech actType = TelRilRadioTech::RADIO_TECHNOLOGY_UNKNOWN; 74 75 /** String corresponding to the radio access technology type. */ 76 std::string actName = ""; 77 78 /** Radio access technology ID. */ 79 int64_t flag = 0; 80 }; 81 } // namespace Telephony 82 } // namespace OHOS 83 #endif // OHOS_TEL_RIL_MODEM_PARCEL_H 84