2018-07-22 13:04:13 +00:00
|
|
|
|
|
|
|
#ifndef R2TASK_H
|
|
|
|
#define R2TASK_H
|
|
|
|
|
2019-02-22 16:50:45 +00:00
|
|
|
#include "core/Cutter.h"
|
2018-07-22 13:04:13 +00:00
|
|
|
|
|
|
|
class R2Task: public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private:
|
|
|
|
RCoreTask *task;
|
|
|
|
|
|
|
|
static void taskFinishedCallback(void *user, char *);
|
|
|
|
void taskFinished();
|
|
|
|
|
|
|
|
public:
|
2018-11-11 09:40:42 +00:00
|
|
|
explicit R2Task(const QString &cmd, bool transient = true);
|
2018-07-22 13:04:13 +00:00
|
|
|
~R2Task();
|
|
|
|
|
|
|
|
void startTask();
|
|
|
|
void breakTask();
|
|
|
|
void joinTask();
|
|
|
|
|
|
|
|
QString getResult();
|
|
|
|
const char *getResultRaw();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void finished();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // R2TASK_H
|