summaryrefslogtreecommitdiff
path: root/setup.h
blob: 042a62c24195dd7745895db2b08332badd10b060 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#pragma once

#include <vdr/menu.h>
#include <vdr/tools.h>
#include "config.h"
#include "services/scraper2vdr.h"

class cFlatSetup : public cMenuSetupPage {
    public:
        cFlatSetup(void);
        virtual ~cFlatSetup();
    private:
        cFlatConfig SetupConfig;

        int ItemLastSel;
        void Setup(void);
    protected:
        virtual void Store(void);
        virtual eOSState ProcessKey(eKeys Key);
};

class cMenuSetupSubMenu : public cOsdMenu {
    protected:
        cFlatConfig *SetupConfig;
        virtual void Setup(void) = 0;
        cOsdItem *InfoItem(const char *label, const char *value);
        int ItemLastSel;
    public:
        cMenuSetupSubMenu(const char *Title, cFlatConfig *data);
};

class cFlatSetupGeneral : public cMenuSetupSubMenu {
    private:
    protected:
        void Setup(void);
        void SaveCurrentSettings(void);
        void LoadConfigFile(void);
        bool SetupParse(const char *Name, const char *Value);
    public:
        cFlatSetupGeneral(cFlatConfig *data);
        virtual eOSState ProcessKey(eKeys Key);
};

class cFlatSetupChannelInfo : public cMenuSetupSubMenu {
    protected:
        void Setup(void);
    public:
        cFlatSetupChannelInfo(cFlatConfig *data);
        virtual eOSState ProcessKey(eKeys Key);
};

class cFlatSetupMenu : public cMenuSetupSubMenu {
    protected:
        void Setup(void);
    public:
        cFlatSetupMenu(cFlatConfig *data);
        virtual eOSState ProcessKey(eKeys Key);
};

class cFlatSetupReplay : public cMenuSetupSubMenu {
    protected:
        void Setup(void);
    public:
        cFlatSetupReplay(cFlatConfig *data);
        virtual eOSState ProcessKey(eKeys Key);
};

class cFlatSetupVolume : public cMenuSetupSubMenu {
    protected:
        void Setup(void);
    public:
        cFlatSetupVolume(cFlatConfig *data);
        virtual eOSState ProcessKey(eKeys Key);
};

class cFlatSetupTracks : public cMenuSetupSubMenu {
    protected:
        void Setup(void);
    public:
        cFlatSetupTracks(cFlatConfig *data);
        virtual eOSState ProcessKey(eKeys Key);
};

class cFlatSetupTvsraper : public cMenuSetupSubMenu {
    protected:
        void Setup(void);
    public:
        cFlatSetupTvsraper(cFlatConfig *data);
        virtual eOSState ProcessKey(eKeys Key);
};

class cFlatSetupMMWidget : public cMenuSetupSubMenu {
    protected:
        void Setup(void);
    public:
        cFlatSetupMMWidget(cFlatConfig *data);
        virtual eOSState ProcessKey(eKeys Key);
};