summaryrefslogtreecommitdiffstats
path: root/application/handlers/WebResourceHandler.h
blob: 54bef6a1bbe1b9c88dbe3e50bbda0c53c2d9c7f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
};