2016-08-14 06:03:31 +05:30
|
|
|
#pragma once
|
|
|
|
#include "tasks/Task.h"
|
|
|
|
#include "net/NetJob.h"
|
2017-07-24 12:31:37 +05:30
|
|
|
class MinecraftInstance;
|
2016-08-14 06:03:31 +05:30
|
|
|
|
|
|
|
class LibrariesTask : public Task
|
|
|
|
{
|
2017-07-07 23:16:56 +05:30
|
|
|
Q_OBJECT
|
2016-08-14 06:03:31 +05:30
|
|
|
public:
|
2017-07-24 12:31:37 +05:30
|
|
|
LibrariesTask(MinecraftInstance * inst);
|
2016-08-14 06:03:31 +05:30
|
|
|
|
|
|
|
void executeTask() override;
|
|
|
|
|
|
|
|
bool canAbort() const override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void jarlibFailed(QString reason);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
bool abort() override;
|
|
|
|
|
|
|
|
private:
|
2017-07-24 12:31:37 +05:30
|
|
|
MinecraftInstance *m_inst;
|
2016-08-14 06:03:31 +05:30
|
|
|
NetJobPtr downloadJob;
|
|
|
|
};
|