1 /* 2 * Copyright (C) 2021-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 I_BLUETOOTH_CALL_H 17 #define I_BLUETOOTH_CALL_H 18 19 #include <cstdio> 20 #include <memory> 21 #include <string> 22 23 #include "iremote_broker.h" 24 #include "pac_map.h" 25 26 #include "call_manager_inner_type.h" 27 28 namespace OHOS { 29 namespace Telephony { 30 class IBluetoothCall : public IRemoteBroker { 31 public: 32 virtual ~IBluetoothCall() = default; 33 virtual int32_t AnswerCall() = 0; 34 virtual int32_t RejectCall() = 0; 35 virtual int32_t HangUpCall() = 0; 36 virtual int32_t GetCallState() = 0; 37 virtual int32_t HoldCall() = 0; 38 virtual int32_t UnHoldCall() = 0; 39 virtual int32_t SwitchCall() = 0; 40 virtual int32_t CombineConference() = 0; 41 virtual int32_t SeparateConference() = 0; 42 virtual int32_t KickOutFromConference() = 0; 43 virtual int32_t StartDtmf(char str) = 0; 44 virtual int32_t StopDtmf() = 0; 45 virtual std::vector<CallAttributeInfo> GetCurrentCallList(int32_t slotId) = 0; 46 47 public: 48 DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Telephony.IBluetoothCall"); 49 }; 50 } // namespace Telephony 51 } // namespace OHOS 52 53 #endif // I_BLUETOOTH_CALL_H