diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-07-09 21:04:13 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-07-09 21:04:13 +0200 |
commit | b48d063954c93bc6c35c2d07fce1530a7ce355d7 (patch) | |
tree | 5d0a4a4317bf1a4b9ffb988d2e2e8d823e8425b0 /xmltv2vdr.h | |
parent | 0fcdd46b05f096c0ab226db31ea4378efd1f446c (diff) | |
download | vdr-plugin-xmltv2vdr-b48d063954c93bc6c35c2d07fce1530a7ce355d7.tar.gz vdr-plugin-xmltv2vdr-b48d063954c93bc6c35c2d07fce1530a7ce355d7.tar.bz2 |
Configfiles are now stored in /var/lib/epgsources (grabber) and ConfigDir (plugin)
Added ability to copy and reset channel settings
Added input field for pin
Grabbers get now called with arguments (channellist)
Diffstat (limited to 'xmltv2vdr.h')
-rw-r--r-- | xmltv2vdr.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/xmltv2vdr.h b/xmltv2vdr.h index 3287a6a..1b63eab 100644 --- a/xmltv2vdr.h +++ b/xmltv2vdr.h @@ -46,15 +46,18 @@ class cEPGSource : public cListObject { private: const char *name; + const char *confdir; + const char *pin; cParse *parse; bool ready2parse; bool pipe; + bool needpin; int daysinadvance; int daysmax; bool ReadConfig(); cEPGChannels channels; public: - cEPGSource(const char *Name,cEPGMappings *Maps,cTEXTMappings *Texts); + cEPGSource(const char *Name,const char *ConfDir,cEPGMappings *Maps,cTEXTMappings *Texts); ~cEPGSource(); int Execute(); void Store(void); @@ -71,14 +74,27 @@ public: { return daysinadvance; } + bool NeedPin() + { + return needpin; + } const char *Name() { return name; } + const char *Pin() + { + return pin; + } void ChangeDaysInAdvance(int NewDaysInAdvance) { daysinadvance=NewDaysInAdvance; } + void ChangePin(const char *NewPin) + { + if (pin) free((void *) pin); + pin=strdup(NewPin); + } }; class cEPGSources : public cList<cEPGSource> {}; @@ -105,6 +121,7 @@ private: bool epgsourceexists(const char *name); int exectime; time_t exectime_t,last_exectime_t; + char *confdir; public: int ExecTime() { |