summaryrefslogtreecommitdiffstats
path: root/application/handlers/WebResourceHandler.h
diff options
context:
space:
mode:
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);
+};