mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 12:56:11 +00:00
ab27e09b91
Sometimes it is not necessary to include the whole Cutter.h file Hence, it's been splitted so you can include only what you require E.g. #include "core/CutterCommon.h" to have access to the common types
32 lines
486 B
C++
32 lines
486 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();
|
|
const char *getResultRaw();
|
|
|
|
signals:
|
|
void finished();
|
|
};
|
|
|
|
#endif // R2TASK_H
|