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 IMS_REG_TYPES_H 17 #define IMS_REG_TYPES_H 18 19 #include <stdint.h> 20 21 namespace OHOS { 22 namespace Telephony { 23 const int16_t VALUE_MAXIMUM_LIMIT = 3; 24 const int16_t INFO_MAXIMUM_LIMIT = 31; 25 const int16_t DATA_LENGTH_ONE = 1; 26 const int16_t DATA_LENGTH_TWO = 2; 27 28 enum ImsRegState { 29 IMS_UNREGISTERED, 30 IMS_REGISTERED, 31 }; 32 33 enum ImsRegTech { 34 IMS_REG_TECH_NONE = 0, 35 IMS_REG_TECH_LTE = 1, 36 IMS_REG_TECH_IWLAN = 2, 37 IMS_REG_TECH_NR = 3, 38 }; 39 40 enum ImsServiceType { 41 TYPE_VOICE = 0, 42 TYPE_VIDEO = 1, 43 TYPE_UT = 2, 44 TYPE_SMS = 3, 45 }; 46 47 struct ImsRegInfo { 48 ImsRegState imsRegState = IMS_UNREGISTERED; 49 ImsRegTech imsRegTech = IMS_REG_TECH_NONE; 50 }; 51 } // namespace Telephony 52 } // namespace OHOS 53 #endif // IMS_REG_TYPES_H