From 64eaee28c243214e654c60b06a27212e8dcb5c02 Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Thu, 4 Jan 2007 15:02:00 +0000 Subject: - 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 --- live.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'live.h') diff --git a/live.h b/live.h index f5d9e18..ac1188b 100644 --- a/live.h +++ b/live.h @@ -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; -- cgit v1.2.3