process.cpp
author insilmaril
Wed, 20 Jun 2007 11:58:47 +0000
changeset 525 a4df85cb3fe9
parent 429 69a4c16bd85b
child 825 1ad892c1a709
permissions -rw-r--r--
Added center function
     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 }