pollymc/api/logic/minecraft/update/AssetUpdateTask.h

27 lines
475 B
C
Raw Normal View History

#pragma once
#include "tasks/Task.h"
#include "net/NetJob.h"
class MinecraftInstance;
class AssetUpdateTask : public Task
{
Q_OBJECT
public:
AssetUpdateTask(MinecraftInstance * inst);
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;
};