1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/examples/qqthttpdownload/qqtqtiowebpageparser.h

43 lines
859 B
C
Raw Normal View History

2017-11-23 19:12:48 +08:00
#ifndef QQTQTIOWEBPROTOCOL_H
#define QQTQTIOWEBPROTOCOL_H
#include <QObject>
#include <qqtwebaccessmanager.h>
#include <QDomDocument>
class QQtQtIOWebUrlSession: public QQtWebAccessSession
{
Q_OBJECT
public:
explicit QQtQtIOWebUrlSession ( QObject* parent = 0 ) :
QQtWebAccessSession ( parent ) {
url1 = "";
url2 = "";
}
virtual ~QQtQtIOWebUrlSession() {}
QString url1;
QString url2;
};
class QQtQtIOWebPageParser : public QQtWebAccessManager
{
Q_OBJECT
public:
explicit QQtQtIOWebPageParser ( QObject* parent = nullptr );
void sendRequest ( QString url1 = "", QString url2 = "" );
signals:
public slots:
private slots:
void replyFinished ( QQtWebAccessSession* session );
private:
QString m_baseUrl;
QString m_xmlfile;
QDomDocument m_doc;
};
#endif // QQTQTIOWEBPROTOCOL_H