| 12345678910111213141516171819202122232425262728293031 |
- #ifndef FILEDOWNLOAD_H
- #define FILEDOWNLOAD_H
- #include <QtCore>
- #include <QtNetwork>
- #include <QNetworkAccessManager>
- #include <QEventLoop>
- #include "configparser.h"
- #include "SNCCore_global.h"
- QT_BEGIN_NAMESPACE
- class QNetworkReply;
- QT_END_NAMESPACE
- #include <QThread>
- class SNCCORESHARED_EXPORT FileDownLoad : public QThread
- {
- Q_OBJECT
- public:
- explicit FileDownLoad(QString url);
- protected:
- void run();
- signals:
- void downloadFinished(QString content);
- public slots:
- void replyFinished(QNetworkReply *reply);
- private:
- QString url;
- QString file_content;
- bool stop;
- };
- #endif // FILEDOWNLOAD_H
|