13 #include <arpa/inet.h> 25 #define VDRVERSION "2.4.1" 26 #define VDRVERSNUM 20401 // Version * 10000 + Major * 100 + Minor 30 #define APIVERSION "2.4.1" 31 #define APIVERSNUM 20401 // 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 72 #define STANDARD_NORDIG 2 82 bool Parse(
const char *s);
120 bool Load(
const char *
FileName = NULL,
bool AllowComments =
false,
bool MustExist =
false)
128 bool result = !MustExist;
137 while ((s = ReadLine.
Read(f)) != NULL) {
140 char *p = strchr(s,
'#');
164 fprintf(stderr,
"vdr: error while reading '%s'\n",
fileName);
170 T *l = (T *)this->
First();
213 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);
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 * Get(const char *Name, const char *Plugin=NULL)
bool Parse(FILE *f, cList< cNestedItem > *List, int &Line)
cConfig(const char *NeedsLocking=NULL)
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 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
char SVDRPDefaultHost[HOST_NAME_MAX]
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)
int AdaptiveSkipAlternate
int SubtitleFgTransparency
bool Parse(const char *Name, const char *Value)
bool FromString(const char *s)
const char * Text(void) const
char FontOsd[MAXFONTNAME]
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]
cList< cNestedItem > * SubItems(void)
bool Accepts(in_addr_t Address)
cNestedItem(const char *Text, bool WithSubItems=false)
const T * First(void) const
Returns the first element in this list, or NULL if the list is empty.
char SVDRPHostName[HOST_NAME_MAX]
void StoreLanguages(const char *Name, int *Values)
char FontFix[MAXFONTNAME]
int ShowChannelNamesWithSource
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