2016-08-14 01:33:31 +01:00
|
|
|
#pragma once
|
|
|
|
#include "tasks/Task.h"
|
|
|
|
#include "net/NetJob.h"
|
2018-03-31 16:36:04 +01:00
|
|
|
#include "minecraft/VersionFilterData.h"
|
|
|
|
|
2017-07-24 08:01:37 +01:00
|
|
|
class MinecraftInstance;
|
2016-08-14 01:33:31 +01:00
|
|
|
|
|
|
|
class FMLLibrariesTask : public Task
|
|
|
|
{
|
2017-07-07 18:46:56 +01:00
|
|
|
Q_OBJECT
|
2016-08-14 01:33:31 +01:00
|
|
|
public:
|
2017-07-24 08:01:37 +01:00
|
|
|
FMLLibrariesTask(MinecraftInstance * inst);
|
2018-06-28 20:34:56 +01:00
|
|
|
virtual ~FMLLibrariesTask() {};
|
2016-08-14 01:33:31 +01:00
|
|
|
|
|
|
|
void executeTask() override;
|
|
|
|
|
|
|
|
bool canAbort() const override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void fmllibsFinished();
|
|
|
|
void fmllibsFailed(QString reason);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
bool abort() override;
|
|
|
|
|
|
|
|
private:
|
2017-07-24 08:01:37 +01:00
|
|
|
MinecraftInstance *m_inst;
|
2016-08-14 01:33:31 +01:00
|
|
|
NetJobPtr downloadJob;
|
|
|
|
QList<FMLlib> fmlLibsToProcess;
|
|
|
|
};
|
|
|
|
|