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

34 lines
692 B
C++

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