diff options
Diffstat (limited to 'src/common/global/process.cpp')
-rw-r--r-- | src/common/global/process.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/global/process.cpp b/src/common/global/process.cpp index 238d336..9dc4761 100644 --- a/src/common/global/process.cpp +++ b/src/common/global/process.cpp @@ -34,10 +34,10 @@ Process::State Process::runSynchronously(Base &process, RunActions actions, uint Process::Base::Base(TQObject *parent, const char *name) : TQObject(parent, name), _state(Stopped) { - _process = new KProcess(this); - connect(_process, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(exited())); - connect(_process, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(receivedStdout(KProcess*, char *, int))); - connect(_process, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), TQT_SLOT(receivedStderr(KProcess*, char *, int))); + _process = new TDEProcess(this); + connect(_process, TQT_SIGNAL(processExited(TDEProcess *)), TQT_SLOT(exited())); + connect(_process, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQT_SLOT(receivedStdout(TDEProcess*, char *, int))); + connect(_process, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), TQT_SLOT(receivedStderr(TDEProcess*, char *, int))); _timer = new TQTimer(this); connect(_timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeoutSlot())); } @@ -82,7 +82,7 @@ bool Process::Base::start(uint timeout) #if defined(NO_KDE) if ( !_process->start() ) { #else - if ( !_process->start(KProcess::NotifyOnExit, KProcess::All) ) { + if ( !_process->start(TDEProcess::NotifyOnExit, TDEProcess::All) ) { #endif _state = StartFailed; return false; @@ -144,20 +144,20 @@ bool Process::Base::isFilteredLine(const TQString &line) } //---------------------------------------------------------------------------- -void Process::StringOutput::receivedStdout(KProcess*, char *data, int len) +void Process::StringOutput::receivedStdout(TDEProcess*, char *data, int len) { _stdout += TQString::fromLatin1(data, len); emit stdoutDataReceived(); } -void Process::StringOutput::receivedStderr(KProcess*, char *data, int len) +void Process::StringOutput::receivedStderr(TDEProcess*, char *data, int len) { _stderr += TQString::fromLatin1(data, len); emit stderrDataReceived(); } //---------------------------------------------------------------------------- -void Process::LineBase::receivedStdout(KProcess*, char *data, int len) +void Process::LineBase::receivedStdout(TDEProcess*, char *data, int len) { for (uint i=0; i<uint(len); i++) { if ( data[i]=='\r' ) continue; @@ -170,7 +170,7 @@ void Process::LineBase::receivedStdout(KProcess*, char *data, int len) emit stdoutDataReceived(); } -void Process::LineBase::receivedStderr(KProcess*, char *data, int len) +void Process::LineBase::receivedStderr(TDEProcess*, char *data, int len) { for (uint i=0; i<uint(len); i++) { if ( data[i]=='\r' ) continue; |