2014-01-01 23:51:58 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Task.h"
|
2016-10-03 04:25:54 +05:30
|
|
|
#include "multimc_logic_export.h"
|
2014-01-01 23:51:58 +05:30
|
|
|
|
2016-10-03 04:25:54 +05:30
|
|
|
class MULTIMC_LOGIC_EXPORT ThreadTask : public Task
|
2014-01-01 23:51:58 +05:30
|
|
|
{
|
|
|
|
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;
|
|
|
|
};
|