leddevice refactoring. code style and extension of baseclass to avoid dups (#174)

This commit is contained in:
redPanther
2016-08-14 10:46:44 +02:00
committed by GitHub
parent bc0c9c469f
commit 97181fa83c
63 changed files with 483 additions and 533 deletions

View File

@@ -3,6 +3,8 @@
// STL incldues
#include <vector>
#include <QObject>
// Utility includes
#include <utils/ColorRgb.h>
#include <utils/ColorRgbw.h>
@@ -12,8 +14,10 @@
///
/// Interface (pure virtual base class) for LedDevices.
///
class LedDevice
class LedDevice : public QObject
{
Q_OBJECT
public:
LedDevice();
///
@@ -41,5 +45,12 @@ public:
virtual int open();
protected:
/// The common Logger instance for all LedDevices
Logger * _log;
int _ledCount;
/// The buffer containing the packed RGB values
std::vector<uint8_t> _ledBuffer;
};