diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-05-19 10:08:47 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-05-19 10:08:47 +0200 |
commit | 3e9031f96e17d7ac3babd4a0d0c70be1fcfbf3b7 (patch) | |
tree | 7b31365b1dd835e4f3b0546f97c37b385ff77128 /display.h | |
parent | 876ea90a3145c64c6b6b1e9109b8b8c9e3e11ce8 (diff) | |
download | vdr-plugin-graphlcd-3e9031f96e17d7ac3babd4a0d0c70be1fcfbf3b7.tar.gz vdr-plugin-graphlcd-3e9031f96e17d7ac3babd4a0d0c70be1fcfbf3b7.tar.bz2 |
set data via SVDRP and make these available to the skin-engine
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -18,6 +18,7 @@ #include <string> #include <vector> +#include <map> #include <glcdgraphics/bitmap.h> #include <glcddrivers/driver.h> @@ -47,6 +48,25 @@ enum eDisplayMode DisplayModeInteractive }; +// external data set via SVDRP +class cExtData +{ +private: + std::map<std::string,std::string> data; + std::map<std::string,std::string>::iterator it; + std::map<std::string,uint64_t> expData; + std::map<std::string,uint64_t>::iterator expDataIt; +public: + cExtData(void) {} + ~cExtData(void) { data.clear(); expData.clear(); } + + bool Set(std::string key, std::string value, uint32_t expire = 0); + bool Unset(std::string key); + bool IsSet(std::string key); + std::string Get(std::string key); +}; + + // Display update Thread class cGraphLCDDisplay : public cThread { @@ -71,6 +91,7 @@ public: GLCD::cDriver * GetDriver() const { return mLcd; } const eDisplayMode GetDisplayMode() const { return mDisplayMode; } + cExtData * GetExtData() const { return mExtData; } protected: virtual void Action(); @@ -104,6 +125,7 @@ private: /* display mode (normal or interactive) */ eDisplayMode mDisplayMode; uint64_t LastTimeDisplayMode; + cExtData * mExtData; }; #endif |