sneedmc/application/handlers/WebResourceHandler.h
2015-09-27 22:31:52 +02:00

24 lines
423 B
C++

#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);
};