cutter/src/common/RunScriptTask.h

29 lines
501 B
C
Raw Normal View History

#ifndef RUNSCRIPTTHREAD_H
#define RUNSCRIPTTHREAD_H
#include "common/AsyncTask.h"
#include "core/Cutter.h"
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"); }
2021-01-24 14:50:13 +00:00
void setFileName(const QString &fileName) { this->fileName = fileName; }
void interrupt() override;
protected:
void runTask() override;
private:
QString fileName;
};
#endif // RUNSCRIPTTHREAD_H