/* * GraphLCD plugin for the Video Disk Recorder * * extdata.h - external data sent via SVDRP * * This file is released under the GNU General Public License. Refer * to the COPYING file distributed with this package. * * (c) 2011 Wolfgang Astleitner */ #ifndef _GRAPHLCD_EXTDATA_H_ #define _GRAPHLCD_EXTDATA_H_ #include #include #include // external data set via SVDRP class cExtData { friend class cGraphLCDSkinConfig; friend class cPluginGraphLCD; private: std::map data; std::map::iterator it; std::map expData; std::map::iterator expDataIt; static cExtData * mExtDataInstance; cExtData(void) {} ~cExtData(void); protected: static cExtData * GetExtData(void); static void ReleaseExtData(void); public: bool Set(const std::string & key, const std::string & value, const std::string & scope, uint32_t expire = 0 ); bool Unset(const std::string & key, const std::string & scope); bool IsSet(const std::string & key, const std::string & scope); std::string Get(const std::string & key, const std::string & scope); }; #endif