PrismLauncher/api/logic/minecraft/flame/FileResolvingTask.h

33 lines
547 B
C
Raw Normal View History

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