Kallisto Linux API
Library for interacting with Kallisto devices
BluetoothAdapterManager Class Reference

#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 ()
 
BluetoothAdaptergetAdapter (std::string id)
 
error::KallistoDetailedResult registerListener (BluetoothAdapterManager::Listener &listener)
 
void unregisterListener ()
 

Static Public Member Functions

static bool supportsLowEnergy ()
 

Detailed Description

Class that handles creation of Bluetooth Adapters.

Constructor & Destructor Documentation

◆ BluetoothAdapterManager() [1/2]

Constructor.

◆ ~BluetoothAdapterManager()

Destructor.

◆ BluetoothAdapterManager() [2/2]

Remove copy and move.

Member Function Documentation

◆ getAdapter()

BluetoothAdapter* getAdapter ( std::string  id)

Returns the Bluetooth Adapter with the passed id.

Parameters
idThe id of the desired Adapter

◆ getAdapters()

const std::vector<BluetoothAdapter*> getAdapters ( )

Returns a list with all the adapters available in the system.

◆ registerListener()

Registers a listener for adapter changes. If a previous listener was registered, it will be replaced.

Parameters
listenerThe listener to report events to.
Returns
A detailed result.

◆ supportsLowEnergy()

static bool supportsLowEnergy ( )
static

Checks if the system supports Bluetooth Low Energy. Platform dependent.

◆ unregisterListener()

void unregisterListener ( )

Unregisters the listener for adapter changes.


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