RedPanda-CPP/RedPandaIDE/compiler/runner.cpp

35 lines
498 B
C++
Raw Normal View History

2021-11-01 09:18:23 +08:00
#include "runner.h"
Runner::Runner(const QString &filename, const QString &arguments, const QString &workDir
,QObject *parent) : QThread(parent),
mPausing(false),
2021-11-01 09:18:23 +08:00
mStop(false),
mFilename(filename),
mArguments(arguments),
mWorkDir(workDir)
{
}
void Runner::stop()
{
mStop = true;
doStop();
}
void Runner::doStop()
{
}
bool Runner::pausing() const
{
return mPausing;
}
void Runner::setPausing(bool newCanFinish)
{
mPausing = newCanFinish;
2021-11-01 09:18:23 +08:00
}