pollymc/launcher/minecraft/update/FMLLibrariesTask.h

32 lines
580 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 18:21:05 +05:30
Q_OBJECT
public:
2018-07-15 18:21:05 +05:30
FMLLibrariesTask(MinecraftInstance * inst);
virtual ~FMLLibrariesTask() {};
2018-07-15 18:21:05 +05:30
void executeTask() override;
2018-07-15 18:21:05 +05:30
bool canAbort() const override;
private slots:
2018-07-15 18:21:05 +05:30
void fmllibsFinished();
void fmllibsFailed(QString reason);
public slots:
2018-07-15 18:21:05 +05:30
bool abort() override;
private:
2018-07-15 18:21:05 +05:30
MinecraftInstance *m_inst;
NetJob::Ptr downloadJob;
2018-07-15 18:21:05 +05:30
QList<FMLlib> fmlLibsToProcess;
};