X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=vymprocess.cpp;fp=vymprocess.cpp;h=0000000000000000000000000000000000000000;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=1b866687c7fde38c2af6a71b3aee1bfdfa32dc1e;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/vymprocess.cpp b/vymprocess.cpp deleted file mode 100644 index 1b86668..0000000 --- a/vymprocess.cpp +++ /dev/null @@ -1,83 +0,0 @@ -#include "vymprocess.h" -#include - -#include -#include - -extern bool debug; - -///////////////////////////////////////////////////////////////// -// Process -///////////////////////////////////////////////////////////////// -VymProcess::VymProcess() -{ - connect( this, SIGNAL(readyReadStandardError()), - this, SLOT(readProcErrout()) ); - connect( this, SIGNAL(readyReadStandardOutput()), - this, SLOT(readProcStdout()) ); - clear(); -} - -VymProcess::~VymProcess() -{ -} - -void VymProcess::clear() -{ - errOut=""; - stdOut=""; -} - -void VymProcess::runScript(QString spath, QString fpath) -{ - spath.replace ("%f",fpath); - QStringList args=spath.split (' '); - spath=args.takeFirst(); - - if (debug) - qDebug()<<"Process::runScript : " + spath+" "+args.join(" "); - - start (spath,args); - if (!waitForStarted() ) - { - QMessageBox::critical( 0, tr( "Critical Error" ), - tr("Could not start %1").arg(spath) ); - } else - { - if (!waitForFinished()) - QMessageBox::critical( 0, tr( "Critical Error" ), - tr("%1 didn't exit normally").arg(spath) + - getErrout() ); - // else - // if (exitStatus()>0) showOutput=true; - - } - /* TODO output for Process::runScript - qDebug()<