mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 13:25:27 +00:00
33 lines
521 B
C++
33 lines
521 B
C++
|
|
#ifndef R2TASK_H
|
|
#define R2TASK_H
|
|
|
|
#include "core/Cutter.h"
|
|
|
|
class R2Task: public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
RCoreTask *task;
|
|
|
|
static void taskFinishedCallback(void *user, char *);
|
|
void taskFinished();
|
|
|
|
public:
|
|
explicit R2Task(const QString &cmd, bool transient = true);
|
|
~R2Task();
|
|
|
|
void startTask();
|
|
void breakTask();
|
|
void joinTask();
|
|
|
|
QString getResult();
|
|
QJsonDocument getResultJson();
|
|
const char *getResultRaw();
|
|
|
|
signals:
|
|
void finished();
|
|
};
|
|
|
|
#endif // R2TASK_H
|