summaryrefslogtreecommitdiffstats
path: root/application/handlers/WebResourceHandler.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-27 22:31:52 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-27 22:31:52 +0200
commit33c3850b40aba095b056738448c235190aeb1aab (patch)
tree7f38782803ffeb20b10f6394840302fc35460cc9 /application/handlers/WebResourceHandler.h
parent271ad9e4fdb4f003abd33b59ca9cadfb5bab9823 (diff)
downloadMultiMC-33c3850b40aba095b056738448c235190aeb1aab.tar
MultiMC-33c3850b40aba095b056738448c235190aeb1aab.tar.gz
MultiMC-33c3850b40aba095b056738448c235190aeb1aab.tar.lz
MultiMC-33c3850b40aba095b056738448c235190aeb1aab.tar.xz
MultiMC-33c3850b40aba095b056738448c235190aeb1aab.zip
NOISSUE add missing files
Diffstat (limited to 'application/handlers/WebResourceHandler.h')
-rw-r--r--application/handlers/WebResourceHandler.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/application/handlers/WebResourceHandler.h b/application/handlers/WebResourceHandler.h
new file mode 100644
index 00000000..54bef6a1
--- /dev/null
+++ b/application/handlers/WebResourceHandler.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <QObject>
+#include <resources/ResourceHandler.h>
+
+class NetJob;
+
+class WebResourceHandler : public QObject, public ResourceHandler
+{
+public:
+ explicit WebResourceHandler(const QString &url);
+
+private slots:
+ void succeeded();
+ void progress(qint64 current, qint64 total);
+
+private:
+ static QMap<QString, NetJob *> m_activeDownloads;
+
+ QString m_url;
+
+ void setResultFromFile(const QString &file);
+};