blob: d22460aa2065cfbd50c988f1e5c00124dd056541 (
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
64
65
66
67
68
69
70
71
72
|
/*
* setup.h: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef __setup_h_
#define __setup_h_
#include <vdr/menuitems.h>
struct setup
{
bool ProcessDuring;
bool whileRecording;
bool whileReplaying;
bool OSDMessage;
bool Verbose;
bool GenIndex;
bool NoMargins;
bool SecondPass;
bool SaveInfo;
bool HideMainMenuEntry;
bool Log2Rec;
bool LogoOnly;
bool DeferredShutdown;
const char *LogoDir;
const char *PluginName;
};
class cSetupMarkAd : public cMenuSetupPage
{
private:
const char *processTexts[2];
struct setup *setup;
int processduring;
int whilerecording;
int whilereplaying;
int osdmsg;
int verbose;
int genindex;
int nomargins;
int secondpass;
int hidemainmenuentry;
int log2rec;
int logoonly;
int saveinfo;
int deferredshutdown;
void write(void);
int lpos;
protected:
virtual void Store(void);
public:
cSetupMarkAd(struct setup *Setup);
eOSState ProcessKey(eKeys Key);
};
class cSetupMarkAdList : public cOsdMenu
{
public:
cSetupMarkAdList(struct setup *Setup);
eOSState ProcessKey(eKeys Key);
};
class cSetupMarkAdListItem : public cOsdItem
{
public:
cSetupMarkAdListItem(const char *Text, eOSState State=osUnknown,bool Selectable=true):cOsdItem(Text,State,Selectable) { }
virtual int Compare(const cListObject &ListObject) const;
};
#endif
|