PrismLauncher/launcher/minecraft/update/LibrariesTask.h

27 lines
461 B
C
Raw Normal View History

#pragma once
#include "tasks/Task.h"
#include "net/NetJob.h"
class MinecraftInstance;
class LibrariesTask : public Task
{
2018-07-15 13:51:05 +01:00
Q_OBJECT
public:
2018-07-15 13:51:05 +01:00
LibrariesTask(MinecraftInstance * inst);
virtual ~LibrariesTask() {};
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 jarlibFailed(QString reason);
public slots:
2018-07-15 13:51:05 +01:00
bool abort() override;
private:
2018-07-15 13:51:05 +01:00
MinecraftInstance *m_inst;
NetJobPtr downloadJob;
};