Init commit

This commit is contained in:
semenov
2024-08-14 10:02:09 +03:00
parent 1870d26468
commit c00efe0177
41 changed files with 2051 additions and 0 deletions

37
Core/externalexecuter.cpp Normal file
View File

@@ -0,0 +1,37 @@
#include "externalexecuter.h"
ExternalExecuter::ExternalExecuter()
{
}
ExternalExecuter::~ExternalExecuter()
{
}
void ExternalExecuter::CallApp()
{
QProcess myProcess(this);
QStringList args;
args << "1";
myProcess.start(programPath,args);
myProcess.waitForFinished(-1);
}
void ExternalExecuter::FindApp()
{
QString localPath = QDir::currentPath() + "/Application";
QDirIterator iterator(localPath,QDirIterator::Subdirectories);
while(iterator.hasNext()){
iterator.next();
if(iterator.fileInfo().fileName() == "RRJ.exe"){
programPath = iterator.fileInfo().absoluteFilePath();
qDebug() << "Bin found: " << programPath;
}
}
}