diff options
author | horchi <vdr@jwendel.de> | 2019-12-20 13:23:25 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2019-12-20 13:23:25 +0100 |
commit | 6853f2b6327e468efb77fa989dfa6080c257cf6c (patch) | |
tree | 5fbd295b9b165806230e1cc69b2c242f054bbd3f /ledsconf.h | |
parent | a5d6d09bfae8ee47d77dc4c0c5ef994b47240f44 (diff) | |
download | vdr-plugin-seduatmo-6853f2b6327e468efb77fa989dfa6080c257cf6c.tar.gz vdr-plugin-seduatmo-6853f2b6327e468efb77fa989dfa6080c257cf6c.tar.bz2 |
2019-12-20: Version 0.0.9\n Added config RGB order for each LED\n\n
Diffstat (limited to 'ledsconf.h')
-rw-r--r-- | ledsconf.h | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -21,9 +21,9 @@ class cLedConf : public cListObject, public cSeduService { public: - - cLedConf(); - + + cLedConf() {}; + bool Parse(const char* s); int X() { return x; } @@ -31,25 +31,29 @@ class cLedConf : public cListObject, public cSeduService int Y() { return y; } int ToY() { return toY; } int Pos() { return lp; } + const char* RgbOrder() { return rgbOrder; } + int isValid() { return x > na && y > na && lp > na; } private: - bool parseRange(const char*& s, int& from, int& to); + bool parseRange(const char*& p, int& from, int& to); + bool parseOrder(const char*& p, char* order); const char* skipWs(const char* p); - int x; - int toX; - int y; - int toY; - int lp; + int x {na}; + int toX {na}; + int y {na}; + int toY {na}; + int lp {na}; // LED postition + char rgbOrder[4] {'\0'}; }; //*************************************************************************** // cLedConfs //*************************************************************************** -class cLedConfs : public cConfig<cLedConf> +class cLedConfs : public cConfig<cLedConf> { }; |