Creates and destroys LedDevice instances with LedDeviceFactory and moves the device to a thread.
More...
#include <LedDeviceWrapper.h>
|
| LedDeviceWrapper (Hyperion *hyperion) |
|
void | createLedDevice (const QJsonObject &config) |
| Contructs a new LedDevice, moves to thread and starts. More...
|
|
int | getLatchTime () |
| Get the current latchtime of the ledDevice @ return latchtime in ms.
|
|
const QString & | getActiveDevice () |
| Get the current active ledDevice.
|
|
const bool & | enabled () |
| Return the last enable state.
|
|
const QString & | getColorOrder () |
| Get the current colorOrder from device.
|
|
|
static const QJsonObject | getLedDeviceSchemas () |
| Get all available device schemas. More...
|
|
static int | addToDeviceMap (QString name, LedDeviceCreateFuncType funcPtr) |
| add all device constrcutors to the map
|
|
static const LedDeviceRegistry & | getDeviceMap () |
| Return all available device contructors. More...
|
|
|
static LedDeviceRegistry | _ledDeviceMap = LedDeviceRegistry() |
| contains all available led device constrcutors
|
|
Creates and destroys LedDevice instances with LedDeviceFactory and moves the device to a thread.
Pipes all signal/slots and methods to LedDevice instance
§ createLedDevice()
void LedDeviceWrapper::createLedDevice |
( |
const QJsonObject & |
config | ) |
|
Contructs a new LedDevice, moves to thread and starts.
- Parameters
-
config | With the given config |
§ getDeviceMap()
const LedDeviceRegistry & LedDeviceWrapper::getDeviceMap |
( |
| ) |
|
|
static |
Return all available device contructors.
- Returns
- device constrcutors
§ getLedDeviceSchemas()
const QJsonObject LedDeviceWrapper::getLedDeviceSchemas |
( |
| ) |
|
|
static |
Get all available device schemas.
- Returns
- device schemas
§ handleComponentState
void LedDeviceWrapper::handleComponentState |
( |
const hyperion::Components |
component, |
|
|
const bool |
state |
|
) |
| |
|
slot |
Handle new component state request component The comp from enum.
- Parameters
-
§ write
int LedDeviceWrapper::write |
( |
const std::vector< ColorRgb > & |
ledValues | ) |
|
|
signal |
PIPER signal for Hyperion -> LedDevice.
- Parameters
-
[in] | ledValues | The RGB-color per led |
- Returns
- Zero on success else negative
The documentation for this class was generated from the following files: