2016-08-14 01:33:31 +01:00
|
|
|
#pragma once
|
|
|
|
#include "net/NetJob.h"
|
2023-08-14 17:16:53 +01:00
|
|
|
#include "tasks/Task.h"
|
2017-07-24 08:01:37 +01:00
|
|
|
class MinecraftInstance;
|
2016-08-14 01:33:31 +01:00
|
|
|
|
2023-08-14 17:16:53 +01:00
|
|
|
class LibrariesTask : public Task {
|
2017-07-07 18:46:56 +01:00
|
|
|
Q_OBJECT
|
2023-08-14 17:16:53 +01:00
|
|
|
public:
|
|
|
|
LibrariesTask(MinecraftInstance* inst);
|
|
|
|
virtual ~LibrariesTask(){};
|
2016-08-14 01:33:31 +01:00
|
|
|
|
|
|
|
void executeTask() override;
|
|
|
|
|
|
|
|
bool canAbort() const override;
|
|
|
|
|
2023-08-14 17:16:53 +01:00
|
|
|
private slots:
|
2016-08-14 01:33:31 +01:00
|
|
|
void jarlibFailed(QString reason);
|
|
|
|
|
2023-08-14 17:16:53 +01:00
|
|
|
public slots:
|
2016-08-14 01:33:31 +01:00
|
|
|
bool abort() override;
|
|
|
|
|
2023-08-14 17:16:53 +01:00
|
|
|
private:
|
|
|
|
MinecraftInstance* m_inst;
|
2021-11-21 22:21:12 +00:00
|
|
|
NetJob::Ptr downloadJob;
|
2016-08-14 01:33:31 +01:00
|
|
|
};
|