summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/flame/FileResolvingTask.h
blob: 006584528793220b706b9bff7de56aa7b9dbed02 (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
26
27
28
29
30
31
32
#pragma once

#include "tasks/Task.h"
#include "net/NetJob.h"
#include "PackManifest.h"

#include "multimc_logic_export.h"

namespace Flame
{
class MULTIMC_LOGIC_EXPORT FileResolvingTask : public Task
{
	Q_OBJECT
public:
	explicit FileResolvingTask(Flame::Manifest &toProcess);
	const Flame::Manifest &getResults() const
	{
		return m_toProcess;
	}

protected:
	virtual void executeTask() override;

protected slots:
	void netJobFinished();

private: /* data */
	Flame::Manifest m_toProcess;
	QVector<QByteArray> results;
	NetJobPtr m_dljob;
};
}