MCPcopy Create free account
hub / github.com/Atarity/Lightpack / ApiServerSetColorTask

Class ApiServerSetColorTask

Software/src/ApiServerSetColorTask.hpp:33–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include "debug.h"
32
33class ApiServerSetColorTask : public QObject
34{
35 Q_OBJECT
36public:
37 explicit ApiServerSetColorTask(QObject *parent = 0);
38
39signals:
40 void taskParseSetColorDone(const QList<QRgb> & colors);
41 void taskParseSetColorIsSuccess(bool isSuccess);
42
43public slots:
44 void startParseSetColorTask(QByteArray buffer);
45 void reinitColorBuffers();
46 void setApiDeviceNumberOfLeds(int value);
47
48private:
49 QList<QRgb> m_colors;
50 int m_numberOfLeds;
51
52 enum BuffRgbIndexes{
53 bRed, bGreen, bBlue, bSize
54 };
55 int buffRgb[bSize]; // buffer for store temp red, green and blue values
56
57};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected