PrismLauncher/launcher/minecraft/update/AssetUpdateTask.h
Sefa Eyeoglu 91ba4cf75e
chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-08-14 18:16:53 +02:00

28 lines
551 B
C++

#pragma once
#include "net/NetJob.h"
#include "tasks/Task.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;
NetJob::Ptr downloadJob;
};