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 OHOS_RIL_MODEM_PARCEL_H 17 #define OHOS_RIL_MODEM_PARCEL_H 18 19 #include "hril_base_parcel.h" 20 21 namespace OHOS { 22 namespace Telephony { 23 struct UniInfo { 24 int32_t serial; 25 int32_t gsmIndex; /* Index of Global System for Mobile Communications */ 26 bool flag; 27 int32_t arg1; 28 int32_t arg2; 29 std::string strTmp; 30 }; 31 32 struct VoiceRadioTechnology { 33 HRilSrvStatus srvStatus; 34 HRilSrvDomain srvDomain; 35 HRilRoamStatus roamStatus; 36 HRilSimStatus simStatus; 37 HRilSimLockStatus lockStatus; 38 HRilSysMode sysMode; 39 std::string sysModeName; 40 HRilRadioTech actType; 41 std::string actName; 42 int64_t flag; 43 44 VoiceRadioTechnology() = default; 45 VoiceRadioTechnology(const HRilVoiceRadioInfo &hrilVoiceRadioInfo); 46 VoiceRadioTechnology &operator=(const HRilVoiceRadioInfo &hrilVoiceRadioInfo); 47 }; 48 } // namespace Telephony 49 } // namespace OHOS 50 #endif // OHOS_RIL_COMMON_PARCEL_H 51