RedPanda-CPP/RedPandaIDE/compiler/runner.h

28 lines
486 B
C
Raw Normal View History

2021-11-01 09:18:23 +08:00
#ifndef RUNNER_H
#define RUNNER_H
#include <QThread>
class Runner : public QThread
{
Q_OBJECT
public:
explicit Runner(const QString& filename, const QString& arguments, const QString& workDir, QObject *parent = nullptr);
signals:
void started();
void terminated();
void runErrorOccurred(const QString& reason);
public slots:
void stop();
protected:
bool mStop;
QString mFilename;
QString mArguments;
QString mWorkDir;
};
#endif // RUNNER_H