2017-11-22 17:56:37 +08:00
|
|
|
#ifndef QQTHTTPDOWNLOADPROTOCOL_H
|
|
|
|
#define QQTHTTPDOWNLOADPROTOCOL_H
|
|
|
|
|
2017-11-22 19:22:53 +08:00
|
|
|
#include <qqtwebaccessmanager.h>
|
2017-11-22 17:56:37 +08:00
|
|
|
|
2017-11-22 19:22:53 +08:00
|
|
|
class QQtHttpDownloadWebWorkSession: public QQtWebAccessSession
|
2017-11-22 17:56:37 +08:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-11-22 19:22:53 +08:00
|
|
|
explicit QQtHttpDownloadWebWorkSession(QObject* parent = 0) : QQtWebAccessSession(parent) {}
|
2017-11-22 17:56:37 +08:00
|
|
|
virtual ~QQtHttpDownloadWebWorkSession() {}
|
|
|
|
};
|
|
|
|
|
2017-11-22 19:22:53 +08:00
|
|
|
class QQtHttpDownloadProtocol : public QQtWebAccessManager
|
2017-11-22 17:56:37 +08:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-11-22 19:22:53 +08:00
|
|
|
explicit QQtHttpDownloadProtocol(QObject* parent = nullptr);
|
2017-11-22 17:56:37 +08:00
|
|
|
virtual ~QQtHttpDownloadProtocol() {}
|
|
|
|
|
2017-11-22 19:22:53 +08:00
|
|
|
void sendRequstUrl(QString& url)
|
|
|
|
{
|
2017-11-22 17:56:37 +08:00
|
|
|
m_url = url;
|
|
|
|
|
|
|
|
}
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
private:
|
|
|
|
QString m_url;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QQTHTTPDOWNLOADPROTOCOL_H
|