20 #include "kpipeprocess.h"
22 KPipeProcess::KPipeProcess(
const TQString& cmd,
int mode)
30 KPipeProcess::~KPipeProcess()
35 bool KPipeProcess::open(
const TQString& cmd,
int mode)
40 if (mode != IO_ReadOnly && mode != IO_WriteOnly)
44 m_pipe = popen(cmd.latin1(),(mode == IO_WriteOnly ?
"w" :
"r"));
46 if (!TQFile::open(mode,m_pipe))
48 return (m_pipe != NULL);
51 void KPipeProcess::close()