Files
RRJClient/Core/externalexecuter.cpp
semenov 0c805708ef ref: change initialize logic
*complete without change animation
2025-08-14 15:40:46 +03:00

40 lines
836 B
C++

#include "externalexecuter.h"
void ExternalExecuter::callApp()
{
QProcess *myProcess = new QProcess(this);
QStringList args;
args << "1";
myProcess->start(programPath,args);
myProcess->waitForStarted();
QCoreApplication::exit();
}
bool ExternalExecuter::findApp()
{
QString localPath = QDir::currentPath() + applicationFolderName;
QDirIterator iterator(localPath,QDirIterator::Subdirectories);
while(iterator.hasNext()){
iterator.next();
if(iterator.fileInfo().fileName() == applicationEXEName){
programPath = iterator.fileInfo().absoluteFilePath();
return true;
}
}
return false;
}
bool ExternalExecuter::getIsAutoStart() const
{
return isAutoStart;
}
void ExternalExecuter::setIsAutoStart(bool value)
{
isAutoStart = value;
}