mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 12:15:26 +00:00
29 lines
538 B
C++
29 lines
538 B
C++
#pragma once
|
|
#include "tasks/Task.h"
|
|
#include "net/NetJob.h"
|
|
class MinecraftInstance;
|
|
|
|
class AssetUpdateTask : public Task
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
AssetUpdateTask(MinecraftInstance * inst);
|
|
virtual ~AssetUpdateTask();
|
|
|
|
void executeTask() override;
|
|
|
|
bool canAbort() const override;
|
|
|
|
private slots:
|
|
void assetIndexFinished();
|
|
void assetIndexFailed(QString reason);
|
|
void assetsFailed(QString reason);
|
|
|
|
public slots:
|
|
bool abort() override;
|
|
|
|
private:
|
|
MinecraftInstance *m_inst;
|
|
NetJobPtr downloadJob;
|
|
};
|