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

29 lines
538 B
C
Raw Normal View History

#pragma once
#include "tasks/Task.h"
#include "net/NetJob.h"
class MinecraftInstance;
class AssetUpdateTask : public Task
{
2018-07-15 18:21:05 +05:30
Q_OBJECT
public:
2018-07-15 18:21:05 +05:30
AssetUpdateTask(MinecraftInstance * inst);
virtual ~AssetUpdateTask();
2018-07-15 18:21:05 +05:30
void executeTask() override;
2018-07-15 18:21:05 +05:30
bool canAbort() const override;
private slots:
2018-07-15 18:21:05 +05:30
void assetIndexFinished();
void assetIndexFailed(QString reason);
void assetsFailed(QString reason);
public slots:
2018-07-15 18:21:05 +05:30
bool abort() override;
private:
2018-07-15 18:21:05 +05:30
MinecraftInstance *m_inst;
NetJobPtr downloadJob;
};