MultiMC5/launcher/minecraft/update/FMLLibrariesTask.h

32 lines
578 B
C
Raw Normal View History

#pragma once
#include "tasks/Task.h"
#include "net/NetJob.h"
#include "minecraft/VersionFilterData.h"
class MinecraftInstance;
class FMLLibrariesTask : public Task
{
2018-07-15 12:51:05 +00:00
Q_OBJECT
public:
2018-07-15 12:51:05 +00:00
FMLLibrariesTask(MinecraftInstance * inst);
virtual ~FMLLibrariesTask() {};
2018-07-15 12:51:05 +00:00
void executeTask() override;
2018-07-15 12:51:05 +00:00
bool canAbort() const override;
private slots:
2018-07-15 12:51:05 +00:00
void fmllibsFinished();
void fmllibsFailed(QString reason);
public slots:
2018-07-15 12:51:05 +00:00
bool abort() override;
private:
2018-07-15 12:51:05 +00:00
MinecraftInstance *m_inst;
NetJobPtr downloadJob;
QList<FMLlib> fmlLibsToProcess;
};