MultiMC5/launcher/modplatform/flame/FileResolvingTask.h

33 lines
565 B
C
Raw Normal View History

#pragma once
#include "tasks/Task.h"
#include "net/NetJob.h"
#include "PackManifest.h"
2017-04-22 16:51:04 +00:00
namespace Flame
{
class FileResolvingTask : public Task
{
2018-07-15 12:51:05 +00:00
Q_OBJECT
public:
2018-07-15 12:51:05 +00:00
explicit FileResolvingTask(Flame::Manifest &toProcess);
virtual ~FileResolvingTask() {};
2018-07-15 12:51:05 +00:00
const Flame::Manifest &getResults() const
{
return m_toProcess;
}
protected:
2018-07-15 12:51:05 +00:00
virtual void executeTask() override;
protected slots:
2018-07-15 12:51:05 +00:00
void netJobFinished();
private: /* data */
2018-07-15 12:51:05 +00:00
Flame::Manifest m_toProcess;
QVector<QByteArray> results;
NetJobPtr m_dljob;
};
}