blob: f8e1a9447d881d75e9e37703bed911ac4a52ace6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef FILE_DOWNLOAD_H
#define FILE_DOWNLOAD_H
#include <QString>
#include <QEventLoop>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QFile>
class file_download
{
public:
file_download();
int download_file(QString url, QString save_location);
private:
QNetworkAccessManager http;
QEventLoop loop;
};
#endif // FILE_DOWNLOAD_H
|