Kallisto Linux API
Library for interacting with Kallisto devices
BluetoothAdapter::Listener Class Referenceabstract

#include <bluetooth_adapter.hpp>

Inheritance diagram for BluetoothAdapter::Listener:

Public Types

enum  Error { USER_REJECTED, STACK_ERROR, ALREADY_ENABLED }
 

Public Member Functions

virtual void onAdapterEnabled (BluetoothAdapter &adapter)=0
 
virtual void onAdapterEnableFailed (BluetoothAdapter &adapter, BluetoothAdapter::Listener::Error error)=0
 
virtual void onAdapterDisabled (BluetoothAdapter &adapter)=0
 

Detailed Description

Interface for Adapter events

Member Enumeration Documentation

◆ Error

enum Error
strong

Available errors for adapter enable failure.

Member Function Documentation

◆ onAdapterDisabled()

virtual void onAdapterDisabled ( BluetoothAdapter adapter)
pure virtual

Called when a Bluetooth adapter is disconnected.

Parameters
adapterThe disconnected adapter.

Implemented in KallistoCoreImpl.

◆ onAdapterEnabled()

virtual void onAdapterEnabled ( BluetoothAdapter adapter)
pure virtual

Called when a new Bluetooth adapter is connected.

Parameters
adapterThe new adapter.

Implemented in KallistoCoreImpl.

◆ onAdapterEnableFailed()

virtual void onAdapterEnableFailed ( BluetoothAdapter adapter,
BluetoothAdapter::Listener::Error  error 
)
pure virtual

Called when a new Bluetooth adapter is connected.

Parameters
adapterThe new adapter.

Implemented in KallistoCoreImpl.


The documentation for this class was generated from the following file: