pollymc/api/logic/modplatform/flame/FileResolvingTask.h

35 lines
621 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 22:21:04 +05:30
namespace Flame
{
class MULTIMC_LOGIC_EXPORT FileResolvingTask : public Task
{
2018-07-15 18:21:05 +05:30
Q_OBJECT
public:
2018-07-15 18:21:05 +05:30
explicit FileResolvingTask(Flame::Manifest &toProcess);
virtual ~FileResolvingTask() {};
2018-07-15 18:21:05 +05:30
const Flame::Manifest &getResults() const
{
return m_toProcess;
}
protected:
2018-07-15 18:21:05 +05:30
virtual void executeTask() override;
protected slots:
2018-07-15 18:21:05 +05:30
void netJobFinished();
private: /* data */
2018-07-15 18:21:05 +05:30
Flame::Manifest m_toProcess;
QVector<QByteArray> results;
NetJobPtr m_dljob;
};
}