diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-04 15:02:00 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-04 15:02:00 +0000 |
commit | 64eaee28c243214e654c60b06a27212e8dcb5c02 (patch) | |
tree | 21b264c07166720513b65638feeb8fc3344530ec /live.h | |
parent | 4bfb50c7a53074fa7e4673ffdd16502c1bf72fcb (diff) | |
download | vdr-plugin-live-64eaee28c243214e654c60b06a27212e8dcb5c02.tar.gz vdr-plugin-live-64eaee28c243214e654c60b06a27212e8dcb5c02.tar.bz2 |
- optimized interface to access plugin objects from website
- moved website code to pagelib subdirectory
- introduced TimerManager that will help working on timers from a background thread
Diffstat (limited to 'live.h')
-rw-r--r-- | live.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -8,13 +8,21 @@ namespace vdrlive { class Setup; +class TimerManager; class PluginBase : public cPlugin { public: virtual Setup& GetLiveSetup() = 0; + virtual TimerManager& GetLiveTimerManager() = 0; }; +inline PluginBase& LivePlugin() +{ + static PluginBase& plugin = *static_cast< PluginBase* >( cPluginManager::GetPlugin( PLUGIN_NAME_I18N ) ); + return plugin; +} + class Plugin : public PluginBase { public: Plugin(void); @@ -30,6 +38,7 @@ public: virtual bool SetupParse(const char *Name, const char *Value); virtual Setup& GetLiveSetup(); + virtual TimerManager& GetLiveTimerManager(); private: static const char *VERSION; |