mirror of
https://github.com/rizinorg/cutter
synced 2026-08-11 16:23:06 -04:00
* 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
30 lines
531 B
C++
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
|