From c5a0ac492575efb83ecc76524ff3c13fe1a9799b Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Wed, 3 Jan 2007 21:43:21 +0000 Subject: - renamed Setup::Get() to LiveSetup() - added method that fetches plugin class from vdr and gets its setup object - demo code in channels.ecpp --- live.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 live.h (limited to 'live.h') diff --git a/live.h b/live.h new file mode 100644 index 0000000..f5d9e18 --- /dev/null +++ b/live.h @@ -0,0 +1,43 @@ +#ifndef VDR_LIVE_LIVE_H +#define VDR_LIVE_LIVE_H + +#include +#include +#include "thread.h" + +namespace vdrlive { + +class Setup; + +class PluginBase : public cPlugin +{ +public: + virtual Setup& GetLiveSetup() = 0; +}; + +class Plugin : public PluginBase { +public: + Plugin(void); + virtual const char *Version(void) { return VERSION; } + virtual const char *Description(void) { return DESCRIPTION; } + virtual const char *CommandLineHelp(void); + virtual bool ProcessArgs(int argc, char *argv[]); + virtual bool Start(void); + virtual void Stop(void); + virtual void MainThreadHook(void); + virtual cString Active(void); + virtual cMenuSetupPage *SetupMenu(void); + virtual bool SetupParse(const char *Name, const char *Value); + + virtual Setup& GetLiveSetup(); + +private: + static const char *VERSION; + static const char *DESCRIPTION; + + std::auto_ptr< ServerThread > m_thread; +}; + +} // namespace vdrlive + +#endif // VDR_LIVE_LIVE_H -- cgit v1.2.3