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 BLUETOOTH_CALL_POLICY_H 17#define BLUETOOTH_CALL_POLICY_H 18 19#include <string> 20#include <memory> 21 22#include "call_object_manager.h" 23 24namespace OHOS { 25namespace Telephony { 26class BluetoothCallPolicy : public CallObjectManager { 27public: 28 BluetoothCallPolicy(); 29 ~BluetoothCallPolicy(); 30 31 int32_t AnswerCallPolicy(int32_t &callId); 32 int32_t RejectCallPolicy(int32_t &callId); 33 int32_t HoldCallPolicy(int32_t &callId); 34 int32_t UnHoldCallPolicy(int32_t &callId); 35 int32_t HangUpPolicy(int32_t &callId); 36 int32_t SwitchCallPolicy(int32_t &callId); 37 int32_t StartDtmfPolicy(int32_t &callId); 38 int32_t CombineConferencePolicy(int32_t &callId); 39 int32_t SeparateConferencePolicy(int32_t &callId); 40 int32_t KickOutFromConferencePolicy(int32_t &callId); 41}; 42} // namespace Telephony 43} // namespace OHOS 44 45#endif // BLUETOOTH_CALL_POLICY_H 46