From d45bc4bed686d1d0c2daff22a66dfa0394fde4fb Mon Sep 17 00:00:00 2001 From: Joerg Bornkessel Date: Sat, 26 Apr 2014 19:15:40 +0200 Subject: initial commit --- audiorecorder.h | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 audiorecorder.h (limited to 'audiorecorder.h') diff --git a/audiorecorder.h b/audiorecorder.h new file mode 100644 index 0000000..ce49c76 --- /dev/null +++ b/audiorecorder.h @@ -0,0 +1,63 @@ +/* + * audiorecorder.h + */ + +#ifndef __AUDIORECORDER_H +#define __AUDIORECORDER_H + +#include "dispatcher.h" +#include "postproc.h" + +#include + +#include +#include + +#include "audiorecorder_i18n.h" + +class cPluginAudiorecorder : public cPlugin { +private: + cDispatcher *dispatcher; + cPostproc *postproc; + + static const char *DESCRIPTION; + static const char *VERSION; + + static std::string recdir; + static int debug; + + static std::string cfg; + static std::string pscript; + + std::stringstream main_menu; + + void probe_audio_codecs(void); +public: + cPluginAudiorecorder(void); + virtual ~cPluginAudiorecorder(); + 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 Initialize(void); + virtual bool Start(void); + virtual void Stop(void); + virtual void Housekeeping(void); + virtual const char *MainMenuEntry(void); + virtual cOsdObject *MainMenuAction(void); + virtual cString Active(void); + virtual cMenuSetupPage *SetupMenu(void); + virtual bool SetupParse(const char *name, const char *value); + virtual bool Service(const char *id, void *data = NULL); + virtual const char **SVDRPHelpPages(void); + virtual cString SVDRPCommand(const char *command, const char *option, + int &reply_code); + + static const char *get_version(void) { return VERSION; } + static std::string get_recdir(void) { return recdir; } + static int get_dbg_level(void) { return debug; } + static std::string get_cfg(void) { return cfg; } + static std::string get_pscript(void) { return pscript; } +}; + +#endif /* __AUDIORECORDER_H */ -- cgit v1.2.3