mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-28 15:18:21 +00:00
34 lines
675 B
C++
34 lines
675 B
C++
#pragma once
|
|
|
|
#include "tasks/Task.h"
|
|
#include "net/NetJob.h"
|
|
#include "PackManifest.h"
|
|
|
|
namespace Flame
|
|
{
|
|
class FileResolvingTask : public Task
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FileResolvingTask(shared_qobject_ptr<QNetworkAccessManager> network, Flame::Manifest &toProcess);
|
|
virtual ~FileResolvingTask() {};
|
|
|
|
const Flame::Manifest &getResults() const
|
|
{
|
|
return m_toProcess;
|
|
}
|
|
|
|
protected:
|
|
virtual void executeTask() override;
|
|
|
|
protected slots:
|
|
void netJobFinished();
|
|
|
|
private: /* data */
|
|
shared_qobject_ptr<QNetworkAccessManager> m_network;
|
|
Flame::Manifest m_toProcess;
|
|
QVector<QByteArray> results;
|
|
NetJob::Ptr m_dljob;
|
|
};
|
|
}
|