process.cpp
author insilmaril
Mon, 14 Dec 2009 10:17:55 +0000
changeset 817 b486ffd0fa11
parent 429 69a4c16bd85b
child 825 1ad892c1a709
permissions -rw-r--r--
Bugfix for relinking mainbranches
     1 #include "process.h"
     2 
     3 /////////////////////////////////////////////////////////////////
     4 // Process
     5 /////////////////////////////////////////////////////////////////
     6 Process::Process()
     7 {
     8 	connect( this, SIGNAL(readyReadStandardError()),
     9 			 this, SLOT(readProcErrout()) );
    10 	connect( this, SIGNAL(readyReadStandardOutput()),
    11 			 this, SLOT(readProcStdout()) );
    12 	clear();		 
    13 }
    14 
    15 Process::~Process()
    16 {
    17 }
    18 
    19 void Process::clear()
    20 {
    21 	errOut="";
    22 	stdOut="";
    23 }
    24 
    25 void Process::readProcErrout()
    26 {
    27 	errOut+=readAllStandardError();
    28 }
    29 
    30 void Process::readProcStdout()
    31 {
    32 	stdOut+=readAllStandardOutput();
    33 }
    34 
    35 QString Process::getErrout()
    36 {
    37 	return errOut;
    38 }
    39 
    40 QString Process::getStdout()
    41 {
    42 	return stdOut;
    43 }