1234567891011121314151617181920212223242526272829 |
- #ifndef INCLUDEILEDOWNLOADER_H
- #define INCLUDEILEDOWNLOADER_H
- #include <QObject>
- #include <QByteArray>
- #include <QNetworkAccessManager>
- #include <QNetworkRequest>
- #include <QNetworkReply>
- class FileDownloader : public QObject
- {
- Q_OBJECT
- public:
- explicit FileDownloader(QUrl url, QObject *parent = 0);
- virtual ~FileDownloader();
- QByteArray DownloadedData() const;
- signals:
- void downloaded();
- private slots:
- void FileDownloaded(QNetworkReply* pReply);
- private:
- QNetworkAccessManager m_WebCtrl;
- QByteArray m_DownloadedData;
- };
- #endif // INCLUDEILEDOWNLOADER_H
|