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 : public HrilBaseParcel { 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 bool ReadFromParcel(Parcel &parcel); 32 virtual bool Marshalling(Parcel &parcel) const override; 33 std::shared_ptr<UniInfo> UnMarshalling(Parcel &parcel); 34 void Dump(std::string, int32_t); 35 }; 36 37 struct VoiceRadioTechnology : public HrilBaseParcel { 38 HRilSrvStatus srvStatus; 39 HRilSrvDomain srvDomain; 40 HRilRoamStatus roamStatus; 41 HRilSimStatus simStatus; 42 HRilSimLockStatus lockStatus; 43 HRilSysMode sysMode; 44 std::string sysModeName; 45 HRilRadioTech actType; 46 std::string actName; 47 int64_t flag; 48 49 VoiceRadioTechnology() = default; 50 VoiceRadioTechnology(const HRilVoiceRadioInfo &hrilVoiceRadioInfo); 51 VoiceRadioTechnology &operator=(const HRilVoiceRadioInfo &hrilVoiceRadioInfo); 52 bool ReadFromParcel(Parcel &parcel); 53 virtual bool Marshalling(Parcel &parcel) const override; 54 std::shared_ptr<VoiceRadioTechnology> UnMarshalling(Parcel &parcel); 55 void Dump(std::string, int32_t); 56 virtual const char *ToString() const override; 57 }; 58 } // namespace Telephony 59 } // namespace OHOS 60 #endif // OHOS_RIL_COMMON_PARCEL_H 61