1 #ifndef DOWNLOAD_H 2 #define DOWNLOAD_H 3 4 #include <QString> 5 #include <QNetworkAccessManager> 6 #include <QTemporaryFile> 7 8 9 class Download : public QObject { 10 Q_OBJECT 11 12 public: 13 Download(); 14 ~Download(); 15 16 QString load(QString); 17 18 private slots: 19 void progress(qint64 bytes_received, qint64 bytes_total); 20 21 private: 22 QNetworkAccessManager *manager; 23 QTemporaryFile *file; 24 }; 25 26 #endif 27 28