PrismLauncher/api/logic/minecraft/onesix/update/AssetUpdateTask.h
Petr Mrázek e5b4b5d295 GH-1927 Add more specific task status logging
* Tasks are now described by class name and object name (or memory address).
* Tasks starts are logged.
* Aborted tasks are now treated just as the other cases.
2017-07-07 19:46:56 +02:00

27 lines
466 B
C++

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