1e1c44949Sopenharmony_ci/* 2e1c44949Sopenharmony_ci * Copyright (C) 2021 Huawei Device Co., Ltd. 3e1c44949Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4e1c44949Sopenharmony_ci * you may not use this file except in compliance with the License. 5e1c44949Sopenharmony_ci * You may obtain a copy of the License at 6e1c44949Sopenharmony_ci * 7e1c44949Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8e1c44949Sopenharmony_ci * 9e1c44949Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10e1c44949Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11e1c44949Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12e1c44949Sopenharmony_ci * See the License for the specific language governing permissions and 13e1c44949Sopenharmony_ci * limitations under the License. 14e1c44949Sopenharmony_ci */ 15e1c44949Sopenharmony_ci 16e1c44949Sopenharmony_ci#ifndef NET_CALL_BASE_H 17e1c44949Sopenharmony_ci#define NET_CALL_BASE_H 18e1c44949Sopenharmony_ci 19e1c44949Sopenharmony_ci#include <cstdio> 20e1c44949Sopenharmony_ci#include <cstdlib> 21e1c44949Sopenharmony_ci#include <stdint.h> 22e1c44949Sopenharmony_ci 23e1c44949Sopenharmony_ci#include "refbase.h" 24e1c44949Sopenharmony_ci#include "call_manager_inner_type.h" 25e1c44949Sopenharmony_ci#include "surface.h" 26e1c44949Sopenharmony_ci 27e1c44949Sopenharmony_cinamespace OHOS { 28e1c44949Sopenharmony_cinamespace Telephony { 29e1c44949Sopenharmony_ciclass NetCallBase : public virtual RefBase { 30e1c44949Sopenharmony_cipublic: 31e1c44949Sopenharmony_ci NetCallBase(); 32e1c44949Sopenharmony_ci virtual ~NetCallBase() = default; 33e1c44949Sopenharmony_ci 34e1c44949Sopenharmony_ci int32_t StartConference(); 35e1c44949Sopenharmony_ci int32_t JoinConference(); 36e1c44949Sopenharmony_ci int32_t KickOutConference(); 37e1c44949Sopenharmony_ci int32_t LeaveConference(); 38e1c44949Sopenharmony_ci 39e1c44949Sopenharmony_ci int32_t GetNetCallType(); 40e1c44949Sopenharmony_ci int32_t ChangeNetCallType(); 41e1c44949Sopenharmony_ci virtual int32_t InitVideoCall() = 0; 42e1c44949Sopenharmony_ci virtual int32_t UpdateImsCallMode(ImsCallMode mode) = 0; 43e1c44949Sopenharmony_ci virtual int32_t ReportImsCallModeInfo(CallMediaModeInfo &imsCallModeInfo) = 0; 44e1c44949Sopenharmony_ci virtual int32_t SendUpdateCallMediaModeRequest(ImsCallMode mode) = 0; 45e1c44949Sopenharmony_ci // receive call media mode modify request from peer 46e1c44949Sopenharmony_ci virtual int32_t RecieveUpdateCallMediaModeRequest(CallModeReportInfo &response) = 0; 47e1c44949Sopenharmony_ci // send call media mode modify response to peer 48e1c44949Sopenharmony_ci virtual int32_t SendUpdateCallMediaModeResponse(ImsCallMode mode) = 0; 49e1c44949Sopenharmony_ci // receive call media mode modify response to peer 50e1c44949Sopenharmony_ci virtual int32_t ReceiveUpdateCallMediaModeResponse(CallModeReportInfo &response) = 0; 51e1c44949Sopenharmony_ci virtual int32_t ControlCamera(std::string &cameraId, int32_t callingUid, int32_t callingPid) = 0; 52e1c44949Sopenharmony_ci virtual int32_t SetPreviewWindow(std::string &surfaceId, sptr<Surface> surface) = 0; 53e1c44949Sopenharmony_ci virtual int32_t SetDisplayWindow(std::string &surfaceId, sptr<Surface> surface) = 0; 54e1c44949Sopenharmony_ci virtual int32_t SetPausePicture(std::string &path) = 0; 55e1c44949Sopenharmony_ci virtual int32_t SetDeviceDirection(int32_t rotation) = 0; 56e1c44949Sopenharmony_ci virtual int32_t CancelCallUpgrade() = 0; 57e1c44949Sopenharmony_ci virtual int32_t RequestCameraCapabilities() = 0; 58e1c44949Sopenharmony_ci}; 59e1c44949Sopenharmony_ci} // namespace Telephony 60e1c44949Sopenharmony_ci} // namespace OHOS 61e1c44949Sopenharmony_ci 62e1c44949Sopenharmony_ci#endif // NET_CALL_BASE_H 63