blob: ce49c76e413a41cdbaf57b2acd90e3605597da1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 */
|