2017-04-20 08:52:04 +05:30
|
|
|
#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
|
2017-04-20 08:52:04 +05:30
|
|
|
{
|
|
|
|
class MULTIMC_LOGIC_EXPORT FileResolvingTask : public Task
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-04-22 22:21:04 +05:30
|
|
|
explicit FileResolvingTask(Flame::Manifest &toProcess);
|
2018-06-29 01:04:56 +05:30
|
|
|
virtual ~FileResolvingTask() {};
|
|
|
|
|
2017-04-22 22:21:04 +05:30
|
|
|
const Flame::Manifest &getResults() const
|
2017-04-20 08:52:04 +05:30
|
|
|
{
|
|
|
|
return m_toProcess;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void executeTask() override;
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void netJobFinished();
|
|
|
|
|
|
|
|
private: /* data */
|
2017-04-22 22:21:04 +05:30
|
|
|
Flame::Manifest m_toProcess;
|
2017-04-20 08:52:04 +05:30
|
|
|
QVector<QByteArray> results;
|
|
|
|
NetJobPtr m_dljob;
|
|
|
|
};
|
|
|
|
}
|