summaryrefslogtreecommitdiff
path: root/file_download.h
diff options
context:
space:
mode:
Diffstat (limited to 'file_download.h')
-rw-r--r--file_download.h19
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