Kallisto Linux API
Library for interacting with Kallisto devices
|
#include <bluetooth_adapter_event_listener.hpp>
Public Member Functions | |
BluetoothAdapterEventListener () | |
virtual void | onBluetoothAdapterDisabled (std::chrono::nanoseconds timestamp)=0 |
virtual void | onBluetoothAdapterEnabled (std::chrono::nanoseconds timestamp)=0 |
virtual void | onBluetoothAdapterIrrecuperable (std::chrono::nanoseconds timestamp)=0 |
Protected Member Functions | |
virtual | ~BluetoothAdapterEventListener () |
Callback listener interface for bluetooth events.
|
protectedvirtual |
Destructor.
Constructor
|
pure virtual |
Called when the Bluetooth adapter is turned off.
If there are any devices under use, onLinkLoss() events will be triggered for each device.
The system will try to turn on the Bluetooth adapter in order to continue working.
Following this event, one of onBluetoothAdapterEnabled() or onBluetoothAdapterIrrecuperable() will be triggered.
timestamp | The time at which the event happened in nanoseconds since the epoch. |
|
pure virtual |
Called when the Bluetooth adapter is turned back on following a onBluetoothAdapterDisabled() event.
|
pure virtual |
Called when the Bluetooth adapter fails to turn back on following a onBluetoothAdapterDisabled() event.
This can happen if the adapter was removed from the system of if it is in error and fails to be enabled. The system will wait for a new adapter.
Every device is destroyed and the internal data cleared.
timestamp | The time at which the event happened in nanoseconds since the epoch. |