PrismLauncher/api/logic/minecraft/curse/FileResolvingTask.h
2017-04-21 22:23:31 +02:00

33 lines
547 B
C++

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