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 NET_CALL_BASE_H 17 #define NET_CALL_BASE_H 18 19 #include <cstdio> 20 #include <cstdlib> 21 #include <stdint.h> 22 23 #include "refbase.h" 24 #include "call_manager_inner_type.h" 25 26 namespace OHOS { 27 namespace Telephony { 28 class NetCallBase : public virtual RefBase { 29 public: 30 NetCallBase(); 31 virtual ~NetCallBase() = default; 32 33 int32_t StartConference(); 34 int32_t JoinConference(); 35 int32_t KickOutConference(); 36 int32_t LeaveConference(); 37 38 int32_t GetNetCallType(); 39 int32_t ChangeNetCallType(); 40 // send call media mode modify request to peer 41 virtual int32_t SendUpdateCallMediaModeRequest(ImsCallMode mode) = 0; 42 // receive call media mode modify request from peer 43 virtual int32_t RecieveUpdateCallMediaModeRequest(ImsCallMode mode) = 0; 44 // send call media mode modify response to peer 45 virtual int32_t SendUpdateCallMediaModeResponse(ImsCallMode mode) = 0; 46 // receive call media mode modify response to peer 47 virtual int32_t ReceiveUpdateCallMediaModeResponse(CallMediaModeResponse &response) = 0; 48 virtual int32_t DispatchUpdateVideoRequest(ImsCallMode mode) = 0; 49 virtual int32_t DispatchUpdateVideoResponse(ImsCallMode mode) = 0; 50 }; 51 } // namespace Telephony 52 } // namespace OHOS 53 54 #endif // NET_CALL_BASE_H 55