25#define VDRVERSION "2.6.1"
26#define VDRVERSNUM 20601
30#define APIVERSION "2.6.1"
31#define APIVERSNUM 20601
40#define MAINMENUHOOKSVERSION "1.0.1"
41#define MAINMENUHOOKSVERSNUM 10001
44#define MINPRIORITY (-MAXPRIORITY)
46#define TRANSFERPRIORITY (LIVEPRIORITY - 1)
47#define IDLEPRIORITY (MINPRIORITY - 1)
49#define DEFINSTRECTIME 180
51#define TIMERMACRO_TITLE "TITLE"
52#define TIMERMACRO_EPISODE "EPISODE"
53#define TIMERMACRO_BEFORE "{<}"
54#define TIMERMACRO_MATCH "{=}"
55#define TIMERMACRO_AFTER "{>}"
57#define TIMERPATTERN_AVOID "@"
58#define TIMERPATTERN_BEGIN "^"
59#define TIMERPATTERN_END "$"
61#define MINOSDWIDTH 480
62#define MAXOSDWIDTH 1920
63#define MINOSDHEIGHT 324
64#define MAXOSDHEIGHT 1200
66#define MaxFileName NAME_MAX
68#define MaxThemeName 16
78#define STANDARD_ANSISCTE 1
79#define STANDARD_NORDIG 2
127 bool Load(
const char *
FileName = NULL,
bool AllowComments =
false,
bool MustExist =
false)
135 bool result = !MustExist;
144 while ((s = ReadLine.
Read(f)) != NULL) {
147 char *p = strchr(s,
'#');
171 fprintf(stderr,
"vdr: error while reading '%s'\n",
fileName);
177 T *l = (T *)this->
First();
220 bool Load(
const char *FileName);
259 void Store(
const char *
Name,
const char *Value,
const char *Plugin = NULL,
bool AllowMultiple =
false);
260 void Store(
const char *
Name,
int Value,
const char *Plugin = NULL);
261 void Store(
const char *
Name,
double &Value,
const char *Plugin = NULL);
cConfig(const char *NeedsLocking=NULL)
const char * FileName(void)
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()
bool Parse(FILE *f, cList< cNestedItem > *List, int &Line)
bool Load(const char *FileName)
virtual int Compare(const cListObject &ListObject) const
Must return 0 if this object is equal to ListObject, a positive value if it is "greater",...
void SetText(const char *Text)
cList< cNestedItem > * subItems
void AddSubItem(cNestedItem *Item)
void SetSubItems(bool On)
cNestedItem(const char *Text, bool WithSubItems=false)
cList< cNestedItem > * SubItems(void)
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...
cSetupLine(const char *Name, const char *Value, const char *Plugin=NULL)
const char * Plugin(void)
virtual int Compare(const cListObject &ListObject) const
Must return 0 if this object is equal to ListObject, a positive value if it is "greater",...
int SubtitleLanguages[I18N_MAX_LANGUAGES+1]
void Store(const char *Name, double &Value, const char *Plugin=NULL)
int SubtitleFgTransparency
char OSDSkin[MaxSkinName]
int AlwaysSortFoldersFirst
int ShowChannelNamesWithSource
char FontSml[MAXFONTNAME]
cSetup & operator=(const cSetup &s)
bool Parse(const char *Name, const char *Value)
void Store(const char *Name, int Value, const char *Plugin=NULL)
bool Load(const char *FileName)
int AudioLanguages[I18N_MAX_LANGUAGES+1]
cSetupLine * Get(const char *Name, const char *Plugin=NULL)
int SubtitleBgTransparency
char SVDRPDefaultHost[HOST_NAME_MAX]
char FontFix[MAXFONTNAME]
int AdaptiveSkipAlternate
char FontOsd[MAXFONTNAME]
void StoreLanguages(const char *Name, int *Values)
bool ParseLanguages(const char *Value, int *Values)
char OSDTheme[MaxThemeName]
int EPGLanguages[I18N_MAX_LANGUAGES+1]
void Store(const char *Name, const char *Value, const char *Plugin=NULL, bool AllowMultiple=false)
char SVDRPHostName[HOST_NAME_MAX]
char NameInstantRecord[NAME_MAX+1]
char OSDLanguage[I18N_MAX_LOCALE_LEN]
#define I18N_MAX_LOCALE_LEN
#define I18N_MAX_LANGUAGES
cNestedItemList RecordingCommands