cutter/src/common/R2Task.h
xarkes ab27e09b91 Splitted Cutter.h and moved everything in core (#1201)
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
2019-02-22 17:50:45 +01:00

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