2016-08-14 06:03:31 +05:30
|
|
|
#pragma once
|
|
|
|
#include "tasks/Task.h"
|
|
|
|
#include "net/NetJob.h"
|
|
|
|
class OneSixInstance;
|
|
|
|
|
|
|
|
class FMLLibrariesTask : public Task
|
|
|
|
{
|
2017-07-07 23:16:56 +05:30
|
|
|
Q_OBJECT
|
2016-08-14 06:03:31 +05:30
|
|
|
public:
|
|
|
|
FMLLibrariesTask(OneSixInstance * inst);
|
|
|
|
|
|
|
|
void executeTask() override;
|
|
|
|
|
|
|
|
bool canAbort() const override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void fmllibsFinished();
|
|
|
|
void fmllibsFailed(QString reason);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
bool abort() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
OneSixInstance *m_inst;
|
|
|
|
NetJobPtr downloadJob;
|
|
|
|
QList<FMLlib> fmlLibsToProcess;
|
|
|
|
};
|
|
|
|
|