From b48d063954c93bc6c35c2d07fce1530a7ce355d7 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Sat, 9 Jul 2011 21:04:13 +0200 Subject: 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) --- xmltv2vdr.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'xmltv2vdr.h') 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 {}; @@ -105,6 +121,7 @@ private: bool epgsourceexists(const char *name); int exectime; time_t exectime_t,last_exectime_t; + char *confdir; public: int ExecTime() { -- cgit v1.2.3