diff options
author | horchi <vdr@jwendel.de> | 2012-11-28 09:17:32 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2012-11-28 09:17:32 +0100 |
commit | 0197b5c98cdeec3740644655963e1f100d73998e (patch) | |
tree | 029168cfc6a31cb3bb6309f2b8ae577302307d8d /ledsconf.h | |
download | vdr-plugin-seduatmo-0197b5c98cdeec3740644655963e1f100d73998e.tar.gz vdr-plugin-seduatmo-0197b5c98cdeec3740644655963e1f100d73998e.tar.bz2 |
initial Release of vdr-plugin-seduatmo
Diffstat (limited to 'ledsconf.h')
-rw-r--r-- | ledsconf.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/ledsconf.h b/ledsconf.h new file mode 100644 index 0000000..3e01144 --- /dev/null +++ b/ledsconf.h @@ -0,0 +1,59 @@ +/* + * ledsconf.h: A plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + * $Id: ledsconf.h,v 1.9 2012/11/20 14:32:28 wendel Exp $ + */ + +#ifndef _LED_CONF_H_ +#define _LED_CONF_H_ + +#include <vdr/plugin.h> +#include <vdr/tools.h> + +#include "seduservice.h" + +//*************************************************************************** +// cLedConf +//*************************************************************************** + +class cLedConf : public cListObject, public cSeduService +{ + public: + + cLedConf(); + + bool Parse(const char* s); + + int X() { return x; } + int ToX() { return toX; } + int Y() { return y; } + int ToY() { return toY; } + int Pos() { return lp; } + int isValid() { return x > na && y > na && lp > na; } + + private: + + bool parseRange(const char*& s, int& from, int& to); + const char* skipWs(const char* p); + + int x; + int toX; + int y; + int toY; + int lp; +}; + +//*************************************************************************** +// cLedConfs +//*************************************************************************** + +class cLedConfs : public cConfig<cLedConf> +{ + +}; + +extern cLedConfs ledConfs; + +#endif // _LED_CONF_H_ |