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"
|
|
|
|
|
2017-04-22 17:51:04 +01:00
|
|
|
namespace Flame
|
2017-04-20 04:22:04 +01:00
|
|
|
{
|
|
|
|
class MULTIMC_LOGIC_EXPORT FileResolvingTask : public Task
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
Q_OBJECT
|
2017-04-20 04:22:04 +01:00
|
|
|
public:
|
2018-07-15 13:51:05 +01:00
|
|
|
explicit FileResolvingTask(Flame::Manifest &toProcess);
|
|
|
|
virtual ~FileResolvingTask() {};
|
2018-06-28 20:34:56 +01:00
|
|
|
|
2018-07-15 13:51:05 +01:00
|
|
|
const Flame::Manifest &getResults() const
|
|
|
|
{
|
|
|
|
return m_toProcess;
|
|
|
|
}
|
2017-04-20 04:22:04 +01:00
|
|
|
|
|
|
|
protected:
|
2018-07-15 13:51:05 +01:00
|
|
|
virtual void executeTask() override;
|
2017-04-20 04:22:04 +01:00
|
|
|
|
|
|
|
protected slots:
|
2018-07-15 13:51:05 +01:00
|
|
|
void netJobFinished();
|
2017-04-20 04:22:04 +01:00
|
|
|
|
|
|
|
private: /* data */
|
2018-07-15 13:51:05 +01:00
|
|
|
Flame::Manifest m_toProcess;
|
|
|
|
QVector<QByteArray> results;
|
|
|
|
NetJobPtr m_dljob;
|
2017-04-20 04:22:04 +01:00
|
|
|
};
|
|
|
|
}
|