summaryrefslogtreecommitdiff
path: root/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/parse.h b/parse.h
index 4c4e7a0..d49fa6d 100644
--- a/parse.h
+++ b/parse.h
@@ -17,6 +17,8 @@
class cEPGExecutor;
class cEPGSource;
+class cEPGMappings;
+class cGlobals;
class cParse
{
@@ -25,7 +27,9 @@ class cParse
PARSE_NOERROR=0,
PARSE_XMLTVERR,
PARSE_NOMAPPING,
- PARSE_NOCHANNELID
+ PARSE_NOCHANNELID,
+ PARSE_FETCHERR,
+ PARSE_SQLERR
};
private:
@@ -37,15 +41,16 @@ private:
cEPGMappings *maps;
cXMLTVEvent xevent;
time_t ConvertXMLTVTime2UnixTime(char *xmltvtime);
- bool FetchEvent(xmlNodePtr node);
+ bool FetchEvent(xmlNodePtr node, bool useeptext);
public:
- cParse(const char *EPGFile, const char *EPDir, cEPGSource *Source, cEPGMappings *Maps);
+ cParse(cEPGSource *Source, cGlobals *Global);
~cParse();
int Process(cEPGExecutor &myExecutor, char *buffer, int bufsize);
static void RemoveNonAlphaNumeric(char *String);
static bool FetchSeasonEpisode(iconv_t cEP2ASCII, iconv_t cUTF2ASCII, const char *EPDir,
- const char *Title, const char *ShortText, int &Season,
- int &Episode);
+ const char *Title, const char *ShortText, const char *Description,
+ int &Season, int &Episode, int &EpisodeOverall, char **EPShortText,
+ char **EPTitle);
static void InitLibXML();
static void CleanupLibXML();
};