mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 12:26: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
33 lines
525 B
C++
33 lines
525 B
C++
#ifndef RUNSCRIPTTHREAD_H
|
|
#define RUNSCRIPTTHREAD_H
|
|
|
|
#include "common/AsyncTask.h"
|
|
#include "core/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
|