VoltAir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
ControllerManager::StaticDeviceConnectionListener Class Reference

Helper factory class to generate a new DeviceConnectionListerer instance for a static callback function. More...

Inheritance diagram for ControllerManager::StaticDeviceConnectionListener:
ControllerManager::DeviceConnectionListener

Public Member Functions

virtual void onDeviceConnectionChanged (int deviceId, bool isConnected) override
 Callback function invoked when the device identified by deviceId has connected or disconnected. More...
 

Static Public Member Functions

static
StaticDeviceConnectionListener
get (const DeviceConnectionCallback &callback)
 Returns a new DeviceConnectionListener which will forward device connection status changes from onDeviceConnectionChanged() to the specified DeviceConnectionCallback. More...
 

Detailed Description

Helper factory class to generate a new DeviceConnectionListerer instance for a static callback function.

Member Function Documentation

static StaticDeviceConnectionListener* ControllerManager::StaticDeviceConnectionListener::get ( const DeviceConnectionCallback callback)
inlinestatic

Returns a new DeviceConnectionListener which will forward device connection status changes from onDeviceConnectionChanged() to the specified DeviceConnectionCallback.

Parameters
callbackFunction to invoke onDeviceConnectionChanged()
virtual void ControllerManager::StaticDeviceConnectionListener::onDeviceConnectionChanged ( int  deviceId,
bool  isConnected 
)
overridevirtual

Callback function invoked when the device identified by deviceId has connected or disconnected.

Implements ControllerManager::DeviceConnectionListener.