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