summaryrefslogtreecommitdiff
path: root/audiorecorder.h
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2014-04-26 19:15:40 +0200
committerJoerg Bornkessel <hd_brummy@gentoo.org>2014-04-26 19:15:40 +0200
commitd45bc4bed686d1d0c2daff22a66dfa0394fde4fb (patch)
tree75b7a38c993c0c5761764a375fa822190729a402 /audiorecorder.h
parent99628e3cec79c4b5888056ce4be3b92a38eddf47 (diff)
downloadvdr-plugin-audiorecorder-d45bc4bed686d1d0c2daff22a66dfa0394fde4fb.tar.gz
vdr-plugin-audiorecorder-d45bc4bed686d1d0c2daff22a66dfa0394fde4fb.tar.bz2
initial commit
Diffstat (limited to 'audiorecorder.h')
-rw-r--r--audiorecorder.h63
1 files changed, 63 insertions, 0 deletions
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 <vdr/plugin.h>
+
+#include <sstream>
+#include <string>
+
+#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 */