blob: 1b8dcc49f7f9d121e774c0dc2e9e0c8c0e6a0525 (
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
|
/*
* targavfd plugin for VDR (C++)
*
* (C) 2010 Andreas Brachold <vdr07 AT deltab de>
*
* This targavfd plugin is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, version 3 of the License.
*
* See the files README and COPYING for details.
*
*/
#ifndef __TARGAVFD_H___
#define __TARGAVFD_H___
#include <vdr/plugin.h>
#include "vfd.h"
#include "watch.h"
#include "status.h"
class cPluginTargaVFD : public cPlugin {
private:
cVFDStatusMonitor *statusMonitor;
cVFDWatch m_dev;
bool m_bSuspend;
char* m_szIconHelpPage;
protected:
bool resume();
bool suspend();
const char* SVDRPCommandOn(const char *Option, int &ReplyCode);
const char* SVDRPCommandOff(const char *Option, int &ReplyCode);
const char* SVDRPCommandIcon(const char *Option, int &ReplyCode);
public:
cPluginTargaVFD(void);
virtual ~cPluginTargaVFD();
virtual const char *Version(void);
virtual const char *Description(void);
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 void MainThreadHook(void);
virtual cString Active(void);
virtual time_t WakeupTime(void);
virtual const char *MainMenuEntry(void) { return NULL; }
virtual cOsdObject *MainMenuAction(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 &ReplyCode);
};
#endif
|