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