mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11:26:11 +00:00
33 lines
520 B
C
33 lines
520 B
C
|
#ifndef RUNSCRIPTTHREAD_H
|
||
|
#define RUNSCRIPTTHREAD_H
|
||
|
|
||
|
#include "common/AsyncTask.h"
|
||
|
#include "Cutter.h"
|
||
|
|
||
|
class RunScriptTask : public AsyncTask
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit RunScriptTask();
|
||
|
~RunScriptTask();
|
||
|
|
||
|
QString getTitle() override {
|
||
|
return tr("Run Script");
|
||
|
}
|
||
|
|
||
|
void setFileName(const QString &fileName) {
|
||
|
this->fileName = fileName;
|
||
|
}
|
||
|
|
||
|
void interrupt() override;
|
||
|
|
||
|
protected:
|
||
|
void runTask() override;
|
||
|
|
||
|
private:
|
||
|
QString fileName;
|
||
|
};
|
||
|
|
||
|
#endif // RUNSCRIPTTHREAD_H
|