-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcrodnoeparser.h
65 lines (56 loc) · 2.44 KB
/
crodnoeparser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*=============================================================================\
| $HeadURL$
|
| Author: Jo2003
|
| last changed by: $Author$
|
| Begin: 19.03.2013
|
| $Id$
|
\=============================================================================*/
#ifndef __20130319_CRODNOEPARSER_H
#define __20130319_CRODNOEPARSER_H
#include <QXmlStreamReader>
#include <QRegExp>
#include <QDateTime>
#include <QStringList>
#include "defdef.h"
#include "cparser.h"
#include "capixmlparser.h"
/********************************************************************\
| Class: CRodnoeParser
| Date: 19.03.2013
| Author: Jo2003
| Description: parser for iptv sent xml content
|
\********************************************************************/
class CRodnoeParser : public CApiXmlParser
{
Q_OBJECT
public:
CRodnoeParser(QObject * parent = 0);
// new functions for use with API ...
virtual int parseCookie (const QString &sResp, QString &sCookie, cparser::SAccountInfo &sInf);
virtual int parseChannelList (const QString &sResp, QVector<cparser::SChan> &chanList);
virtual int parseEpg (const QString &sResp, QVector<cparser::SEpg> &epgList);
virtual int parseSetting(const QString& sResp, const QString &sName, QVector<int>& vValues, int& iActVal);
virtual int parseSServersLogin (const QString& sResp, QVector<cparser::SSrv>& vSrv, QString& sActIp);
virtual int parseVodList (const QString& sResp, QVector<cparser::SVodVideo>& vVodList, cparser::SGenreInfo &gInfo);
virtual int parseUrl (const QString& sResp, QString& sUrl);
virtual int parseVodUrls (const QString& sResp, QStringList& sUrls);
virtual int parseVideoInfo (const QString& sResp, cparser::SVodVideo &vidInfo);
virtual int parseGenres (const QString& sResp, QVector<cparser::SGenre>& vGenres);
virtual int parseVodManager (const QString& sResp, QVector<cparser::SVodRate>& vRates);
virtual int parseEpgCurrent (const QString& sResp, QCurrentMap ¤tEpg);
virtual int parseAStreams (const QString& sResp, QStringList &sl);
protected:
virtual int parseGroups (QXmlStreamReader &xml, QVector<cparser::SChan> &chanList);
virtual int parseChannels(QXmlStreamReader &xml, QVector<cparser::SChan> &chanList);
virtual int parseStreamParams (QXmlStreamReader &xml, QVector<cparser::STimeShift>& vTs);
private:
QString sImgTmplTv;
QString sImgTmplRadio;
};
#endif // __20130319_CRODNOEPARSER_H