summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/curse/FileResolvingTask.h
blob: a9357bfb0493b0c468c06608018bfc97a1dc95d5 (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 Curse
{
class MULTIMC_LOGIC_EXPORT FileResolvingTask : public Task
{
	Q_OBJECT
public:
	explicit FileResolvingTask(Curse::Manifest &toProcess);
	const Curse::Manifest &getResults() const
	{
		return m_toProcess;
	}

protected:
	virtual void executeTask() override;

protected slots:
	void netJobFinished();

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