process.cpp
author insilmaril
Tue, 06 May 2008 11:16:40 +0000
changeset 702 a02d84c2d0ac
parent 429 69a4c16bd85b
child 825 1ad892c1a709
permissions -rw-r--r--
Moved demos to /usr/share/vym/demos
     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 }