2019-01-28 13:37:20 +00:00
|
|
|
#ifndef RUNSCRIPTTHREAD_H
|
|
|
|
#define RUNSCRIPTTHREAD_H
|
|
|
|
|
|
|
|
#include "common/AsyncTask.h"
|
2019-02-22 16:50:45 +00:00
|
|
|
#include "core/Cutter.h"
|
2019-01-28 13:37:20 +00:00
|
|
|
|
|
|
|
class RunScriptTask : public AsyncTask
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit RunScriptTask();
|
|
|
|
~RunScriptTask();
|
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
QString getTitle() override { return tr("Run Script"); }
|
2019-01-28 13:37:20 +00:00
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
void setFileName(const QString &fileName) { this->fileName = fileName; }
|
2019-01-28 13:37:20 +00:00
|
|
|
|
|
|
|
void interrupt() override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void runTask() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString fileName;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RUNSCRIPTTHREAD_H
|