PrismLauncher/launcher/minecraft/update/FMLLibrariesTask.h

30 lines
589 B
C
Raw Normal View History

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