/* * Copyright (C) 2021-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef I_BLUETOOTH_CALL_H #define I_BLUETOOTH_CALL_H #include #include #include #include "iremote_broker.h" #include "pac_map.h" #include "call_manager_inner_type.h" namespace OHOS { namespace Telephony { class IBluetoothCall : public IRemoteBroker { public: virtual ~IBluetoothCall() = default; virtual int32_t AnswerCall() = 0; virtual int32_t RejectCall() = 0; virtual int32_t HangUpCall() = 0; virtual int32_t GetCallState() = 0; virtual int32_t HoldCall() = 0; virtual int32_t UnHoldCall() = 0; virtual int32_t SwitchCall() = 0; virtual int32_t CombineConference() = 0; virtual int32_t SeparateConference() = 0; virtual int32_t KickOutFromConference() = 0; virtual int32_t StartDtmf(char str) = 0; virtual int32_t StopDtmf() = 0; virtual std::vector GetCurrentCallList(int32_t slotId) = 0; public: DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Telephony.IBluetoothCall"); }; } // namespace Telephony } // namespace OHOS #endif // I_BLUETOOTH_CALL_H