49 #include <Carbon/Carbon.h>
57 QObject::connect(
this, SIGNAL(
error(QProcess::ProcessError)),
58 this, SLOT(
onError(QProcess::ProcessError)));
61 QObject::connect(
this, SIGNAL(readyReadStandardError()),
63 QObject::connect(
this, SIGNAL(readyReadStandardOutput()),
71 QString output = QString(readAllStandardError());
72 foreach (QString line, output.split(
"\n")) {
81 QString output = QString(readAllStandardOutput());
82 foreach (QString line, output.split(
"\n")) {
93 QString commandLine = QString(
"\"%1\" %2").arg(app).arg(args);
96 vNotice(
"Launching helper process with command line '%1'")
99 QProcess::start(commandLine, QIODevice::ReadOnly | QIODevice::Text);
111 vNotice(
"Launching helper process '%1' with arguments '%2'").arg(app)
115 QProcess::start(app, args, QIODevice::ReadOnly | QIODevice::Text);
123 if (error == QProcess::FailedToStart) {
134 return state() == NotRunning;
140 #if defined(Q_WS_MAC)
141 if(state() != QProcess::Running)
144 ProcessSerialNumber psn;
148 st = GetProcessForPID(pid(), &psn);
149 QCoreApplication::processEvents();
150 }
while(st == procNotFound and state() == QProcess::Running);
152 if(st != procNotFound)
153 SetFrontProcess(&psn);