#include "device/bluetooth/bluez/bluetooth_pairing_bluez.h"
#include "base/logging.h"
#include "device/bluetooth/bluetooth_device.h"
#include "device/bluetooth/bluez/bluetooth_device_bluez.h"
BluetoothDevice;
namespace {
const uint16_t kPasskeyMaxKeysEntered = …;
}
namespace bluez {
BluetoothPairingBlueZ::BluetoothPairingBlueZ(
BluetoothDeviceBlueZ* device,
BluetoothDevice::PairingDelegate* pairing_delegate)
: … { … }
BluetoothPairingBlueZ::~BluetoothPairingBlueZ() { … }
void BluetoothPairingBlueZ::RequestPinCode(
bluez::BluetoothAgentServiceProvider::Delegate::PinCodeCallback callback) { … }
bool BluetoothPairingBlueZ::ExpectingPinCode() const { … }
void BluetoothPairingBlueZ::SetPinCode(const std::string& pincode) { … }
void BluetoothPairingBlueZ::DisplayPinCode(const std::string& pincode) { … }
void BluetoothPairingBlueZ::RequestPasskey(
bluez::BluetoothAgentServiceProvider::Delegate::PasskeyCallback callback) { … }
bool BluetoothPairingBlueZ::ExpectingPasskey() const { … }
void BluetoothPairingBlueZ::SetPasskey(uint32_t passkey) { … }
void BluetoothPairingBlueZ::DisplayPasskey(uint32_t passkey) { … }
void BluetoothPairingBlueZ::KeysEntered(uint16_t entered) { … }
void BluetoothPairingBlueZ::RequestConfirmation(
uint32_t passkey,
bluez::BluetoothAgentServiceProvider::Delegate::ConfirmationCallback
callback) { … }
void BluetoothPairingBlueZ::RequestAuthorization(
bluez::BluetoothAgentServiceProvider::Delegate::ConfirmationCallback
callback) { … }
bool BluetoothPairingBlueZ::ExpectingConfirmation() const { … }
void BluetoothPairingBlueZ::ConfirmPairing() { … }
bool BluetoothPairingBlueZ::RejectPairing() { … }
bool BluetoothPairingBlueZ::CancelPairing() { … }
BluetoothDevice::PairingDelegate* BluetoothPairingBlueZ::GetPairingDelegate()
const { … }
void BluetoothPairingBlueZ::ResetCallbacks() { … }
bool BluetoothPairingBlueZ::RunPairingCallbacks(
bluez::BluetoothAgentServiceProvider::Delegate::Status status) { … }
}