process.cpp
author insilmaril
Mon, 19 Feb 2007 12:01:52 +0000
changeset 429 69a4c16bd85b
parent 414 bc23a0157a39
child 825 1ad892c1a709
permissions -rw-r--r--
1.8.67 Bugfixes
     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 }