2016-08-14 00:33:31 +00:00
|
|
|
#pragma once
|
|
|
|
#include "tasks/Task.h"
|
|
|
|
#include "net/NetJob.h"
|
|
|
|
class OneSixInstance;
|
|
|
|
|
|
|
|
class LibrariesTask : public Task
|
|
|
|
{
|
2017-07-07 17:46:56 +00:00
|
|
|
Q_OBJECT
|
2016-08-14 00:33:31 +00:00
|
|
|
public:
|
|
|
|
LibrariesTask(OneSixInstance * inst);
|
|
|
|
|
|
|
|
void executeTask() override;
|
|
|
|
|
|
|
|
bool canAbort() const override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void jarlibFailed(QString reason);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
bool abort() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
OneSixInstance *m_inst;
|
|
|
|
NetJobPtr downloadJob;
|
|
|
|
};
|