13 #include <arpa/inet.h>
25 #define VDRVERSION "2.0.5"
26 #define VDRVERSNUM 20005 // Version * 10000 + Major * 100 + Minor
30 #define APIVERSION "2.0.0"
31 #define APIVERSNUM 20000 // Version * 10000 + Major * 100 + Minor
39 #define MAXPRIORITY 99
40 #define MINPRIORITY (-MAXPRIORITY)
41 #define LIVEPRIORITY 0 // priority used when selecting a device for live viewing
42 #define TRANSFERPRIORITY (LIVEPRIORITY - 1) // priority used for actual local Transfer Mode
43 #define IDLEPRIORITY (MINPRIORITY - 1) // priority of an idle device
44 #define MAXLIFETIME 99
45 #define DEFINSTRECTIME 180 // default instant recording time (minutes)
47 #define TIMERMACRO_TITLE "TITLE"
48 #define TIMERMACRO_EPISODE "EPISODE"
51 #define MAINMENUHOOKSVERSION "1.0.1"
52 #define MAINMENUHOOKSVERSNUM 10001 // Version * 10000 + Major * 100 + Minor
54 #define MINOSDWIDTH 480
55 #define MAXOSDWIDTH 1920
56 #define MINOSDHEIGHT 324
57 #define MAXOSDHEIGHT 1200
59 #define MaxFileName NAME_MAX // obsolete - use NAME_MAX directly instead!
60 #define MaxSkinName 16
61 #define MaxThemeName 16
70 #define STANDARD_DVB 0
71 #define STANDARD_ANSISCTE 1
81 bool Parse(
const char *s);
119 bool Load(
const char *
FileName = NULL,
bool AllowComments =
false,
bool MustExist =
false)
127 bool result = !MustExist;
136 while ((s = ReadLine.
Read(f)) != NULL) {
139 char *p = strchr(s,
'#');
163 fprintf(stderr,
"vdr: error while reading '%s'\n",
fileName);
169 T *l = (T *)this->
First();
212 bool Load(
const char *FileName);
250 bool Parse(
const char *
Name,
const char *Value);
252 void Store(
const char *
Name,
const char *Value,
const char *Plugin = NULL,
bool AllowMultiple =
false);
253 void Store(
const char *
Name,
int Value,
const char *Plugin = NULL);
254 void Store(
const char *
Name,
double &Value,
const char *Plugin = NULL);
cSetupLine * Get(const char *Name, const char *Plugin=NULL)
bool Parse(FILE *f, cList< cNestedItem > *List, int &Line)
const char * Text(void) const
cNestedItemList TimerCommands
void Add(cListObject *Object, cListObject *After=NULL)
bool Parse(const char *s)
bool Write(FILE *f, cList< cNestedItem > *List, int Indent=0)
void Store(const char *Name, const char *Value, const char *Plugin=NULL, bool AllowMultiple=false)
#define I18N_MAX_LANGUAGES
cNestedItemList RecordingCommands
char FontSml[MAXFONTNAME]
int AlwaysSortFoldersFirst
int EPGLanguages[I18N_MAX_LANGUAGES+1]
bool Load(const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
void SetSubItems(bool On)
const char * Plugin(void)
void SetText(const char *Text)
const char * FileName(void)
cSatCableNumbers(int Size, const char *s=NULL)
void AddSubItem(cNestedItem *Item)
virtual int Compare(const cListObject &ListObject) const
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
int SubtitleFgTransparency
bool Parse(const char *Name, const char *Value)
bool FromString(const char *s)
char FontOsd[MAXFONTNAME]
int SubtitleLanguages[I18N_MAX_LANGUAGES+1]
cList< cNestedItem > * SubItems(void)
bool Accepts(in_addr_t Address)
cNestedItem(const char *Text, bool WithSubItems=false)
void StoreLanguages(const char *Name, int *Values)
char FontFix[MAXFONTNAME]
int FirstDeviceIndex(int DeviceIndex) const
Returns the first device index (starting at 0) that uses the same sat cable number as the device with...
int ShowChannelNamesWithSource
virtual int Compare(const cListObject &ListObject) const
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
virtual ~cNestedItemList()
int AudioLanguages[I18N_MAX_LANGUAGES+1]
bool Load(const char *FileName)
bool ParseLanguages(const char *Value, int *Values)
#define I18N_MAX_LOCALE_LEN
cList< cNestedItem > * subItems
cSetup & operator=(const cSetup &s)
bool Acceptable(in_addr_t Address)
bool Load(const char *FileName)
char NameInstantRecord[NAME_MAX+1]
char OSDTheme[MaxThemeName]
char OSDSkin[MaxSkinName]
char OSDLanguage[I18N_MAX_LOCALE_LEN]
int SubtitleBgTransparency