summaryrefslogtreecommitdiff
path: root/live.h
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 15:02:00 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-04 15:02:00 +0000
commit64eaee28c243214e654c60b06a27212e8dcb5c02 (patch)
tree21b264c07166720513b65638feeb8fc3344530ec /live.h
parent4bfb50c7a53074fa7e4673ffdd16502c1bf72fcb (diff)
downloadvdr-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.h9
1 files changed, 9 insertions, 0 deletions
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;