2017-04-20 04:22:04 +01:00
|
|
|
#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:
|
2017-04-21 21:23:31 +01:00
|
|
|
explicit FileResolvingTask(Curse::Manifest &toProcess);
|
|
|
|
const Curse::Manifest &getResults() const
|
2017-04-20 04:22:04 +01:00
|
|
|
{
|
|
|
|
return m_toProcess;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void executeTask() override;
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void netJobFinished();
|
|
|
|
|
|
|
|
private: /* data */
|
2017-04-21 21:23:31 +01:00
|
|
|
Curse::Manifest m_toProcess;
|
2017-04-20 04:22:04 +01:00
|
|
|
QVector<QByteArray> results;
|
|
|
|
NetJobPtr m_dljob;
|
|
|
|
};
|
|
|
|
}
|