13 #include <arpa/inet.h>
25 #define VDRVERSION "2.7.6"
26 #define VDRVERSNUM 20706
30 #define APIVERSION "8"
31 #define APIVERSNUM 30008
40 #define MAINMENUHOOKSVERSION "1.0.1"
41 #define MAINMENUHOOKSVERSNUM 10001
45 #define MAXPRIORITY 99
46 #define MINPRIORITY (-MAXPRIORITY)
47 #define LIVEPRIORITY 0
48 #define TRANSFERPRIORITY (LIVEPRIORITY - 1)
49 #define IDLEPRIORITY (MINPRIORITY - 1)
50 #define MAXLIFETIME 99
51 #define DEFINSTRECTIME 180
53 #define TIMERMACRO_TITLE "TITLE"
54 #define TIMERMACRO_EPISODE "EPISODE"
55 #define TIMERMACRO_BEFORE "{<}"
56 #define TIMERMACRO_MATCH "{=}"
57 #define TIMERMACRO_AFTER "{>}"
59 #define TIMERPATTERN_AVOID "@"
60 #define TIMERPATTERN_BEGIN "^"
61 #define TIMERPATTERN_END "$"
63 #define MINOSDWIDTH 480
64 #define MAXOSDWIDTH 1920
65 #define MINOSDHEIGHT 324
66 #define MAXOSDHEIGHT 1200
68 #define MaxFileName NAME_MAX
69 #define MaxSkinName 16
70 #define MaxThemeName 16
79 #define STANDARD_DVB 0
80 #define STANDARD_ANSISCTE 1
81 #define STANDARD_NORDIG 2
85 #define SUBTITLES_NO 0
86 #define SUBTITLES_ALWAYS 1
87 #define SUBTITLES_REWIND 2
97 bool Parse(
const char *s);
135 bool Load(
const char *
FileName = NULL,
bool AllowComments =
false,
bool MustExist =
false)
143 bool result = !MustExist;
152 while ((s = ReadLine.
Read(f)) != NULL) {
155 char *p = strchr(s,
'#');
179 fprintf(stderr,
"vdr: error while reading '%s'\n",
fileName);
185 T *l = (T *)this->
First();
228 bool Load(
const char *FileName);
265 bool Parse(
const char *
Name,
const char *Value);
267 void Store(
const char *
Name,
const char *Value,
const char *Plugin = NULL,
bool AllowMultiple =
false);
268 void Store(
const char *
Name,
int Value,
const char *Plugin = NULL);
269 void Store(
const char *
Name,
double &Value,
const char *Plugin = NULL);
const char * FileName(void)
virtual ~cConfig() override
cConfig(const char *NeedsLocking=NULL)
bool Load(const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
void Add(cListObject *Object, cListObject *After=NULL)
const T * First(void) const
Returns the first element in this list, or NULL if the list is empty.
bool Write(FILE *f, cList< cNestedItem > *List, int Indent=0)
virtual ~cNestedItemList() override
bool Parse(FILE *f, cList< cNestedItem > *List, int &Line)
bool Load(const char *FileName)
void SetText(const char *Text)
cList< cNestedItem > * SubItems(void)
void AddSubItem(cNestedItem *Item)
void SetSubItems(bool On)
virtual int Compare(const cListObject &ListObject) const override
Must return 0 if this object is equal to ListObject, a positive value if it is "greater",...
virtual ~cNestedItem() override
cNestedItem(const char *Text, bool WithSubItems=false)
cList< cNestedItem > * subItems
const char * Text(void) const
bool Parse(const char *s)
bool Accepts(in_addr_t Address)
bool Acceptable(in_addr_t Address)
cSatCableNumbers(int Size, const char *s=NULL)
bool FromString(const char *s)
int FirstDeviceIndex(int DeviceIndex) const
Returns the first device index (starting at 0) that uses the same sat cable number as the device with...
virtual int Compare(const cListObject &ListObject) const override
Must return 0 if this object is equal to ListObject, a positive value if it is "greater",...
const char * Plugin(void)
virtual ~cSetupLine() override
int SubtitleFgTransparency
char SVDRPDefaultHost[HOST_NAME_MAX]
char OSDTheme[MaxThemeName]
int SubtitleLanguages[I18N_MAX_LANGUAGES+1]
int EPGLanguages[I18N_MAX_LANGUAGES+1]
char OSDSkin[MaxSkinName]
int AlwaysSortFoldersFirst
char OSDLanguage[I18N_MAX_LOCALE_LEN]
int ShowChannelNamesWithSource
cSetup & operator=(const cSetup &s)
bool Parse(const char *Name, const char *Value)
bool Load(const char *FileName)
cSetupLine * Get(const char *Name, const char *Plugin=NULL)
int SubtitleBgTransparency
int AdaptiveSkipAlternate
void StoreLanguages(const char *Name, int *Values)
bool ParseLanguages(const char *Value, int *Values)
int AudioLanguages[I18N_MAX_LANGUAGES+1]
char NameInstantRecord[NAME_MAX+1]
char FontOsd[MAXFONTNAME]
void Store(const char *Name, const char *Value, const char *Plugin=NULL, bool AllowMultiple=false)
char FontSml[MAXFONTNAME]
char FontFix[MAXFONTNAME]
char SVDRPHostName[HOST_NAME_MAX]
cNestedItemList RecordingCommands
#define I18N_MAX_LOCALE_LEN
#define I18N_MAX_LANGUAGES