cutter/src/common/RunScriptTask.h
Premade 1e6782de48
Refactor code to match new style (#3612)
* Refactor code to match coding style
* NULL to nullptr
* clang format 16
* Remove unused header
* Fix ordering of headers
* QtResImporter: Don't ignore return value of file.open()
* Add missing memory header
* GraphGridLayout: Remove <ranges>
* GraphGridLayout: no views::reverse
* Fix typos
* Console widget cmd fix
2026-05-21 14:26:49 +05:00

30 lines
531 B
C++

#ifndef RUNSCRIPTTASK_H
#define RUNSCRIPTTASK_H
#include "common/AsyncTask.h"
/**
* @brief Async task for running rizin scripts
*/
class RunScriptTask : public AsyncTask
{
Q_OBJECT
public:
explicit RunScriptTask();
~RunScriptTask();
QString getTitle() const override { return tr("Run Script"); }
void setFileName(const QString &fileName) { this->fileName = fileName; }
void interrupt() override;
protected:
void runTask() override;
private:
QString fileName;
};
#endif // RUNSCRIPTTASK_H