hyperion.ng
LedDeviceUdpRaw.h
1 #pragma once
2 
3 // hyperion incluse
4 #include "ProviderUdp.h"
5 
10 {
11 public:
17  LedDeviceUdpRaw(const QJsonObject &deviceConfig);
18 
20  static LedDevice* construct(const QJsonObject &deviceConfig);
21 
28  virtual int write(const std::vector<ColorRgb> &ledValues);
29 };
The ProviderUdp implements an abstract base-class for LedDevices using UDP packets.
Definition: ProviderUdp.h:15
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceUdpRaw.cpp:10
LedDeviceUdpRaw(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceUdpRaw.cpp:3
Implementation of the LedDevice interface for sending led colors via udp.
Definition: LedDeviceUdpRaw.h:9
virtual int write(const std::vector< ColorRgb > &ledValues)
Writes the led color values to the led-device.
Definition: LedDeviceUdpRaw.cpp:15