PrismLauncher/launcher/minecraft/update/AssetUpdateTask.h

28 lines
551 B
C
Raw Normal View History

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