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