summaryrefslogtreecommitdiffstats
path: root/api/logic/tasks/ThreadTask.h
blob: 46ce3a365fbf8dc1e6d9790b16e8bb0087ef83a2 (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
#pragma once

#include "Task.h"
#include "multimc_logic_export.h"

class MULTIMC_LOGIC_EXPORT ThreadTask : public Task
{
	Q_OBJECT
public:
	explicit ThreadTask(Task * internal, QObject * parent = nullptr);

protected:
	void executeTask() {};

public slots:
	virtual void start();

private slots:
	void iternal_started();
	void iternal_progress(qint64 current, qint64 total);
	void iternal_succeeded();
	void iternal_failed(QString reason);
	void iternal_status(QString status);
private:
	Task * m_internal;
};