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_CALLBACK_IPC_INTERFACE_CODE_H 17 #define TELEPHONY_IMS_CALL_CALLBACK_IPC_INTERFACE_CODE_H 18 19 /* SAID:4006 */ 20 namespace OHOS { 21 namespace Telephony { 22 enum class ImsCallCallbackInterfaceCode { 23 /** 24 * @brief map the specific request service function in ipc, one id corresponds one service, 25 * between ImsCallCallbackProxy and ImsCallCallbackStub 26 */ 27 /****************** call basic ******************/ 28 IMS_DIAL = 0, 29 IMS_HANG_UP, 30 IMS_REJECT, 31 IMS_ANSWER, 32 IMS_HOLD, 33 IMS_UN_HOLD, 34 IMS_SWITCH, 35 IMS_COMBINE_CONFERENCE, 36 IMS_INVITE_TO_CONFERENCE, 37 IMS_KICK_OUT_CONFERENCE, 38 IMS_RECV_CALL_MEDIA_MODE_REQUEST, 39 IMS_EMERGENCY_CALL, 40 IMS_CALL_STATE_CHANGE, 41 IMS_SERVICE_STATUS, 42 IMS_LAST_CALL_FAIL_REASON, 43 IMS_GET_CALLS_DATA, 44 IMS_SRVCC_STATE, 45 IMS_VT_OR_WFC, 46 IMS_CALL_CRING, 47 IMS_RECV_CALL_MEDIA_MODE_RESPONSE, 48 IMS_CALL_SESSION_EVENT_CHANGED, 49 IMS_CALL_PEER_DIMENSIONS_CHANGED, 50 IMS_CALL_DATA_USAGE_CHANGED, 51 IMS_CALL_CAMERA_CAPABILITIES_CHANGED, 52 IMS_NV_CONFIG_REFRESHED, 53 54 /****************** dtmf rtt ******************/ 55 IMS_START_DTMF, 56 IMS_SEND_DTMF, 57 IMS_STOP_DTMF, 58 IMS_START_RTT, 59 IMS_STOP_RTT, 60 61 /****************** ims config ******************/ 62 IMS_SET_PRE_MODE, 63 IMS_GET_PRE_MODE, 64 IMS_SET_SWITCH_STATUS, 65 IMS_GET_SWITCH_STATUS, 66 IMS_SET_CONFIG, 67 IMS_GET_CONFIG, 68 IMS_SET_FEATURE, 69 IMS_GET_FEATURE, 70 IMS_SET_MUTE, 71 IMS_GET_MUTE, 72 IMS_GET_EMERGENCY_CALL_LIST, 73 74 /****************** video settings ******************/ 75 IMS_CONTROL_CAMERA, 76 IMS_SET_PREVIEW_WINDOW, 77 IMS_SET_DISPLAY_WINDOW, 78 IMS_SET_CAMERA_ZOOM, 79 IMS_SET_PAUSE_IMAGE, 80 IMS_SET_DEVICE_DIRECTION, 81 82 /****************** supplement ******************/ 83 IMS_GET_CALL_CLIP, 84 IMS_SET_CALL_CLIP, 85 IMS_GET_CALL_CLIR, 86 IMS_SET_CALL_CLIR, 87 IMS_GET_CALL_FORWARD, 88 IMS_SET_CALL_FORWARD, 89 IMS_GET_CALL_RESTRICTION, 90 IMS_SET_CALL_RESTRICTION, 91 IMS_GET_CALL_WAIT, 92 IMS_SET_CALL_WAIT, 93 IMS_GET_CALL_COLR, 94 IMS_SET_CALL_COLR, 95 IMS_SET_CALL_COLP, 96 IMS_GET_CALL_COLP, 97 }; 98 } // namespace Telephony 99 } // namespace OHOS 100 #endif // TELEPHONY_IMS_CALL_CALLBACK_IPC_INTERFACE_CODE_H