CallApplication::CallApplication()
{
connect(&process, SIGNAL(readyReadStandardError()), this, SLOT(updateError()));
connect(&process,
SIGNAL(finished
(int,
QProcess::ExitStatus)),
this,
SLOT(processFinished
(int,
QProcess::ExitStatus)));
connect(&process,
SIGNAL(error
(QProcess::ProcessError)),
this,
SLOT(processError
(QProcess::ProcessError)));
}
void CallApplication::performApplication()
{
emit error(); //this is working correctly, signal connected into clientsocket.cpp
}
void CallApplication
::processFinished(int exitCode,
QProcess::ExitStatus exitStatus
) {
if (exitStatus
== QProcess::CrashExit) { } else if (exitCode != 0) {
emit error("Qprocess ended"); //it dosen't work, neither the signals emit into processError, signal connected into clientsocket.cpp
}
}