diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-03 21:43:21 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-03 21:43:21 +0000 |
commit | c5a0ac492575efb83ecc76524ff3c13fe1a9799b (patch) | |
tree | 7b4af9bb32c58e5d3aed9ac039180ac7533db052 /live.h | |
parent | 95739a127dc2b85fe831ac13553578490fea34b0 (diff) | |
download | vdr-plugin-live-c5a0ac492575efb83ecc76524ff3c13fe1a9799b.tar.gz vdr-plugin-live-c5a0ac492575efb83ecc76524ff3c13fe1a9799b.tar.bz2 |
- renamed Setup::Get() to LiveSetup()
- added method that fetches plugin class from vdr and gets its setup object
- demo code in channels.ecpp
Diffstat (limited to 'live.h')
-rw-r--r-- | live.h | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -0,0 +1,43 @@ +#ifndef VDR_LIVE_LIVE_H +#define VDR_LIVE_LIVE_H + +#include <memory> +#include <vdr/plugin.h> +#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 |