diff options
author | daniel-Jones <daniel@danieljon.es> | 2016-07-21 19:10:18 +0930 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2016-07-21 19:10:18 +0930 |
commit | b9224cb9de71995b9f89787d47b98f9bbb188d58 (patch) | |
tree | 8d45602c26d6ffc959da8df57d05dbf00bd1e9d5 /file_download.h | |
download | csgo_stats-b9224cb9de71995b9f89787d47b98f9bbb188d58.tar.gz csgo_stats-b9224cb9de71995b9f89787d47b98f9bbb188d58.zip |
first commit, basic program currently
Diffstat (limited to 'file_download.h')
-rw-r--r-- | file_download.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/file_download.h b/file_download.h new file mode 100644 index 0000000..f8e1a94 --- /dev/null +++ b/file_download.h @@ -0,0 +1,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 |