summaryrefslogtreecommitdiff
path: root/config.h
blob: 625753e97555a017dad525d8e970cb0e0743e8bd (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
/*
 * config.h
 *
 * See the README file for copyright information and how to reach the author.
 *
 */

#ifndef TVONSCREEN_CONFIG_H
#define TVONSCREEN_CONFIG_H

#include <vdr/config.h>
#include <vdr/menuitems.h>

#if defined(MAINMENUHOOKSVERSNUM) & !defined(MAINMENUHOOKSVERSION)
#undef  MAINMENUHOOKSVERSNUM
#define MAINMENUHOOKSVERSNUM 10000
#endif

class tvonscreenConfig
{
public:

    tvonscreenConfig(void);
    bool SetupParse(const char *Name, const char *Value);
    bool ProcessArgs(int argc, char *argv[]);
    const char *CommandLineHelp(void);

    int showLogos;
    int noInfoLine;
    int showChannels;
    int bwlogos;
    int usertime1;
    int usertime2;
    int usertime3;
    int thenshownextday;
    int showsearchinitiator;
    int fontdsize;
    int transparency;
#if MAINMENUHOOKSVERSNUM == 10001
    int replaceorgschedule;
#endif
    int onlyminutes;

    char logos[PATH_MAX];
    char vdradminfile[PATH_MAX];
};

extern tvonscreenConfig tvonscreenCfg;

class tvonscreenConfigPage : public cMenuSetupPage
{
private:
    tvonscreenConfig m_NewConfig;

protected:
    virtual void Store(void);

public:
    tvonscreenConfigPage(void);
    virtual ~tvonscreenConfigPage();
};

#endif