blob: 9f947a4100cef8ff5a909cb5261ae9cc82c0212f (
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
|
/*
* ZapHistory plugin for VDR
*
* This code is distributed under the terms and conditions of the
* GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
*
* Setup data structure and setup menu
*
*/
#ifndef __SETUP_ZapHistory_H
#define __SETUP_ZapHistory_H
#include <vdr/menuitems.h>
enum cZapHistoryView { historyView, statisticView };
enum cZapHistorySortMode { historySort, zapcountSort, watchtimeSort };
class cZapHistorySetup {
public:
int HideMainMenu;
int EntryCount;
cZapHistoryView DefaultView;
cZapHistorySortMode DefaultSort;
// Dummy fields to convert enum fields to int
int DummyDefaultView;
int DummyDefaultSort;
int ProgressView; // 0 = textbar; 1 = VDRSymbols; 2 = percent
public:
cZapHistorySetup(void);
void IntToEnum();
bool SetupParse(const char *Name, const char *Value);
};
class cMenuSetupZapHistory : public cMenuSetupPage {
private:
const char* viewStrs[2];
const char* sortStrs[3];
const char* ProgressViewtStrs[3];
protected:
virtual void Store(void);
public:
cMenuSetupZapHistory(void);
};
extern cZapHistorySetup ZapHistorySetup;
#endif // __SETUP_ZapHistory_H
|