pollymc/api/logic/minecraft/update/FMLLibrariesTask.h

29 lines
470 B
C
Raw Normal View History

#pragma once
#include "tasks/Task.h"
#include "net/NetJob.h"
class MinecraftInstance;
class FMLLibrariesTask : public Task
{
Q_OBJECT
public:
FMLLibrariesTask(MinecraftInstance * inst);
void executeTask() override;
bool canAbort() const override;
private slots:
void fmllibsFinished();
void fmllibsFailed(QString reason);
public slots:
bool abort() override;
private:
MinecraftInstance *m_inst;
NetJobPtr downloadJob;
QList<FMLlib> fmlLibsToProcess;
};