| 31 | #include "debug.h" |
| 32 | |
| 33 | class ApiServerSetColorTask : public QObject |
| 34 | { |
| 35 | Q_OBJECT |
| 36 | public: |
| 37 | explicit ApiServerSetColorTask(QObject *parent = 0); |
| 38 | |
| 39 | signals: |
| 40 | void taskParseSetColorDone(const QList<QRgb> & colors); |
| 41 | void taskParseSetColorIsSuccess(bool isSuccess); |
| 42 | |
| 43 | public slots: |
| 44 | void startParseSetColorTask(QByteArray buffer); |
| 45 | void reinitColorBuffers(); |
| 46 | void setApiDeviceNumberOfLeds(int value); |
| 47 | |
| 48 | private: |
| 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected