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

34 lines
692 B
C
Raw Normal View History

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