00001 #ifndef _XMLTVPARSER_H_
00002 #define _XMLTVPARSER_H_
00003
00004
00005 #include <qvaluelist.h>
00006 #include <qstring.h>
00007 #include <qurl.h>
00008 #include <qdom.h>
00009 #include <qmap.h>
00010
00011 class ProgInfo;
00012 class ChanInfo;
00013
00014 class XMLTVParser
00015 {
00016 public:
00017 XMLTVParser() : isJapan(false) {}
00018
00019 ChanInfo *parseChannel(QDomElement &element, QUrl baseUrl);
00020 ProgInfo *parseProgram(QDomElement &element, int localTimezoneOffset);
00021 bool parseFile(
00022 QString filename, QValueList<ChanInfo> *chanlist,
00023 QMap<QString, QValueList<ProgInfo> > *proglist);
00024
00025
00026 public:
00027 bool isJapan;
00028 };
00029
00030 #endif // _XMLTVPARSER_H_