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