2017-04-20 03:22:04 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "tasks/Task.h"
|
|
|
|
#include "net/NetJob.h"
|
|
|
|
#include "PackManifest.h"
|
|
|
|
|
2017-04-22 16:51:04 +00:00
|
|
|
namespace Flame
|
2017-04-20 03:22:04 +00:00
|
|
|
{
|
2021-07-25 17:11:59 +00:00
|
|
|
class FileResolvingTask : public Task
|
2017-04-20 03:22:04 +00:00
|
|
|
{
|
2018-07-15 12:51:05 +00:00
|
|
|
Q_OBJECT
|
2017-04-20 03:22:04 +00:00
|
|
|
public:
|
2018-07-15 12:51:05 +00:00
|
|
|
explicit FileResolvingTask(Flame::Manifest &toProcess);
|
|
|
|
virtual ~FileResolvingTask() {};
|
2018-06-28 19:34:56 +00:00
|
|
|
|
2018-07-15 12:51:05 +00:00
|
|
|
const Flame::Manifest &getResults() const
|
|
|
|
{
|
|
|
|
return m_toProcess;
|
|
|
|
}
|
2017-04-20 03:22:04 +00:00
|
|
|
|
|
|
|
protected:
|
2018-07-15 12:51:05 +00:00
|
|
|
virtual void executeTask() override;
|
2017-04-20 03:22:04 +00:00
|
|
|
|
|
|
|
protected slots:
|
2018-07-15 12:51:05 +00:00
|
|
|
void netJobFinished();
|
2017-04-20 03:22:04 +00:00
|
|
|
|
|
|
|
private: /* data */
|
2018-07-15 12:51:05 +00:00
|
|
|
Flame::Manifest m_toProcess;
|
|
|
|
QVector<QByteArray> results;
|
|
|
|
NetJobPtr m_dljob;
|
2017-04-20 03:22:04 +00:00
|
|
|
};
|
|
|
|
}
|