1 /* 2 * Copyright (C) 2022 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_IMS_CORE_SERVICE_TYPES_H 17 #define TELEPHONY_IMS_CORE_SERVICE_TYPES_H 18 19 #include <stdint.h> 20 21 #include "ims_reg_types.h" 22 23 namespace OHOS { 24 namespace Telephony { 25 enum ImsErrType { 26 IMS_SUCCESS = 0, 27 IMS_FAILED = 1, 28 }; 29 30 enum RadioTechFamily { 31 RADIO_TECH_FAMILY_3GPP = 0, 32 RADIO_TECH_FAMILY_3GPP2 = 1, 33 }; 34 35 struct ImsResponseInfo { 36 int32_t slotId = 0; 37 ImsErrType error = ImsErrType::IMS_FAILED; 38 }; 39 40 struct ImsServiceStatus { 41 bool supportImsVoice = false; 42 bool supportImsVideo = false; 43 bool supportImsUt = false; 44 bool supportImsSms = false; 45 ImsRegTech imsRegTech = ImsRegTech::IMS_REG_TECH_NONE; 46 }; 47 48 struct ImsRegistrationStatus { 49 bool isRegisterd = false; 50 RadioTechFamily radioTechFamily = RadioTechFamily::RADIO_TECH_FAMILY_3GPP; 51 }; 52 } // namespace Telephony 53 } // namespace OHOS 54 #endif // TELEPHONY_IMS_CORE_SERVICE_TYPES_H 55