|
Kallisto Linux API
Library for interacting with Kallisto devices
|
#include <bluetooth_adapter_manager.hpp>
Data Structures | |
| class | Listener |
Public Member Functions | |
| BluetoothAdapterManager () | |
| ~BluetoothAdapterManager () | |
| BluetoothAdapterManager (BluetoothAdapterManager const &)=delete | |
| BluetoothAdapterManager (BluetoothAdapterManager &&)=delete | |
| void | operator= (BluetoothAdapterManager const &)=delete |
| void | operator= (BluetoothAdapterManager &&)=delete |
| const std::vector< BluetoothAdapter * > | getAdapters () |
| BluetoothAdapter * | getAdapter (std::string id) |
| error::KallistoDetailedResult | registerListener (BluetoothAdapterManager::Listener &listener) |
| void | unregisterListener () |
Static Public Member Functions | |
| static bool | supportsLowEnergy () |
Class that handles creation of Bluetooth Adapters.
Constructor.
Destructor.
|
delete |
Remove copy and move.
| BluetoothAdapter* getAdapter | ( | std::string | id | ) |
Returns the Bluetooth Adapter with the passed id.
| id | The id of the desired Adapter |
| const std::vector<BluetoothAdapter*> getAdapters | ( | ) |
Returns a list with all the adapters available in the system.
| error::KallistoDetailedResult registerListener | ( | BluetoothAdapterManager::Listener & | listener | ) |
Registers a listener for adapter changes. If a previous listener was registered, it will be replaced.
| listener | The listener to report events to. |
|
static |
Checks if the system supports Bluetooth Low Energy. Platform dependent.
| void unregisterListener | ( | ) |
Unregisters the listener for adapter changes.