// // C++ Implementation: k9process // // Description: // // // Author: Jean-Michel PETIT , (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // #include "k9process.h" #include #include #include k9Process::k9Process(TQObject *parent, const char *name) : TDEProcess(parent, name),m_waitSync(false) { connect(this,TQT_SIGNAL(processExited( TDEProcess* )),this,TQT_SLOT(slotProcessExited( TDEProcess* ))); } k9Process::~k9Process() { } void k9Process::sync() { m_waitSync=true; TQApplication::eventLoop()->enterLoop(); } void k9Process::slotProcessExited( TDEProcess * proc) { if (m_waitSync) { TQApplication::eventLoop()->exitLoop(); m_waitSync=false; } } const TQString & k9Process::debug() { m_debug=""; for (int i=0;i