-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcstdjsonparser.h
60 lines (54 loc) · 2.62 KB
/
cstdjsonparser.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
/*------------------------------ Information ---------------------------*//**
*
* $HeadURL$
*
* @file cstdjsonparser.h
*
* @author Jo2003
*
* @date 15.04.2013
*
* $Id$
*
*///------------------------- (c) 2013 by Jo2003 --------------------------
#ifndef __20130415_CSTDJSONPARSER_H
#define __20130415_CSTDJSONPARSER_H
#include <QDateTime>
#include <QtJson>
#include <QVariantMap>
#include "defdef.h"
#include "cparser.h"
#include "capiparser.h"
//---------------------------------------------------------------------------
//! \class CStdJsonParser
//! \date 15.04.2013
//! \author Jo2003
//! \brief parser for iptv api with json responses
//---------------------------------------------------------------------------
class CStdJsonParser : public CApiParser
{
Q_OBJECT
public:
CStdJsonParser(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 parseStrStd(const QString &sResp, cparser::QStrStdMap& strStdMap, QString& curr);
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 parseBitrates(const QString& sResp, cparser::QBitratesMap& mRates, 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 parseError (const QString& sResp, QString& sMsg, int& eCode);
virtual int parseVodLang(const QString &sResp, QVodLangMap &lMap);
virtual int parseService(const QString &sResp, cparser::ServiceSettings &servset);
virtual int parseSpeedTestData (const QString& resp, QSpeedDataVector& spdData);
virtual int parseIviInfo (const QString& resp, cparser::SIviInfo& iviInfo);
};
#endif // __20130415_CSTDJSONPARSER_H