summaryrefslogtreecommitdiff
path: root/file_download.h
blob: d8ebd374f0aa3db682e0141e2091ba485e8f79dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef FILE_DOWNLOAD_H
#define FILE_DOWNLOAD_H
#include <QString>
#include <QEventLoop>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QFile>
#include "message_box.h"

class file_download
{
public:
    file_download();
    int download_file(QString url, QString save_location);
private:
    QNetworkAccessManager http;
    QEventLoop loop;
    message_box msgbox;
};

#endif // FILE_DOWNLOAD_H