process.cpp
author insilmaril
Sat Feb 24 12:32:53 2007 +0000 (2007-02-24)
changeset 431 c2ffbc9b832d
parent 414 bc23a0157a39
child 825 1ad892c1a709
permissions -rw-r--r--
bak
     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 }