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),
|
2021-12-23 17:07:27 +08:00
|
|
|
mPausing(false),
|
2021-11-01 09:18:23 +08:00
|
|
|
mStop(false),
|
|
|
|
mFilename(filename),
|
|
|
|
mArguments(arguments),
|
|
|
|
mWorkDir(workDir)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void Runner::stop()
|
|
|
|
{
|
|
|
|
mStop = true;
|
2021-12-23 17:07:27 +08:00
|
|
|
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
|
|
|
}
|
|
|
|
|