summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/onesix/update/AssetUpdateTask.h
blob: dff725715726e4bdd76d8999487e36dfe20dac7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "tasks/Task.h"
#include "net/NetJob.h"
class OneSixInstance;

class AssetUpdateTask : public Task
{
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;
};