summaryrefslogtreecommitdiff
path: root/live.h
diff options
context:
space:
mode:
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;