1 /* 2 * Copyright (C) 2023 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_CALL_IPC_INTERFACE_CODE_H 17 #define TELEPHONY_IMS_CALL_IPC_INTERFACE_CODE_H 18 19 /* SAID:4006 */ 20 namespace OHOS { 21 namespace Telephony { 22 enum class ImsCallInterfaceCode { 23 /****************** basic ******************/ 24 IMS_DIAL = 5000, 25 IMS_HANG_UP, 26 IMS_REJECT_WITH_REASON, 27 IMS_ANSWER, 28 IMS_HOLD, 29 IMS_UN_HOLD, 30 IMS_SWITCH, 31 IMS_COMBINE_CONFERENCE, 32 IMS_INVITE_TO_CONFERENCE, 33 IMS_KICK_OUT_CONFERENCE, 34 IMS_UPDATE_CALL_MEDIA_MODE, 35 IMS_CALL_STATE_CHANGE, 36 IMS_GET_CALL_DATA, 37 IMS_GET_LAST_CALL_FAIL_REASON, 38 39 /****************** dtmf rtt ******************/ 40 IMS_START_DTMF = 5100, 41 IMS_SEND_DTMF, 42 IMS_STOP_DTMF, 43 IMS_START_RTT, 44 IMS_STOP_RTT, 45 46 /****************** ims config ******************/ 47 IMS_SET_DOMAIN_PREFERENCE_MODE = 5200, 48 IMS_GET_DOMAIN_PREFERENCE_MODE, 49 IMS_SET_SWITCH_STATUS, 50 IMS_GET_SWITCH_STATUS, 51 IMS_SET_IMS_CONFIG_STRING, 52 IMS_SET_IMS_CONFIG_INT, 53 IMS_GET_IMS_CONFIG, 54 IMS_SET_IMS_FEATURE, 55 IMS_GET_IMS_FEATURE, 56 IMS_SET_MUTE, 57 IMS_GET_MUTE, 58 IMS_SET_IMS_REG_ERROR_REPORT, 59 IMS_UPDATE_CAPABILITY, 60 IMS_GET_IMPU_FROM_NETWORK, 61 62 /****************** video settings ******************/ 63 IMS_CTRL_CAMERA = 5300, 64 IMS_SET_PREVIEW_WINDOW, 65 IMS_SET_DISPLAY_WINDOW, 66 IMS_SET_CAMERA_ZOOM, 67 IMS_SET_PAUSE_IMAGE, 68 IMS_SET_DEVICE_DIRECTION, 69 70 /****************** Supplement ******************/ 71 IMS_GET_CLIP = 5400, 72 IMS_SET_CLIP, 73 IMS_SET_CLIR, 74 IMS_GET_CLIR, 75 IMS_SET_CALL_TRANSFER, 76 IMS_GET_CALL_TRANSFER, 77 IMS_CAN_SET_CALL_TRANSFER_TIME, 78 IMS_SET_CALL_RESTRICTION, 79 IMS_GET_CALL_RESTRICTION, 80 IMS_SET_CALL_WAITING, 81 IMS_GET_CALL_WAITING, 82 IMS_SET_COLR, 83 IMS_GET_COLR, 84 IMS_SET_COLP, 85 IMS_GET_COLP, 86 87 /****************** callback ******************/ 88 IMS_CALL_REGISTER_CALLBACK = 5500, 89 }; 90 } // namespace Telephony 91 } // namespace OHOS 92 #endif // TELEPHONY_IMS_CALL_IPC_INTERFACE_CODE_H