From bd55e01bc4764c5daa84bf46db6978d43898d619 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:26:15 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- src/common/global/process.cpp | 18 +++++++++--------- src/common/global/process.h | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src/common/global') 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 #include #include -class KProcess; +class TDEProcess; #include "global.h" namespace PURL { class Directory; } @@ -57,14 +57,14 @@ signals: protected slots: void exited(); void timeoutSlot(); - virtual void receivedStdout(KProcess*, char *buffer, int len) = 0; - virtual void receivedStderr(KProcess*, char *buffer, int len) = 0; + virtual void receivedStdout(TDEProcess*, char *buffer, int len) = 0; + virtual void receivedStderr(TDEProcess*, char *buffer, int len) = 0; friend State runSynchronously(Base &, RunActions, uint); protected: State _state; - KProcess *_process; + TDEProcess *_process; TQTimer *_timer; TQString _stdout, _stderr; @@ -82,8 +82,8 @@ public: TQString serr() const { return _stderr; } private slots: - virtual void receivedStdout(KProcess *, char *buffer, int len); - virtual void receivedStderr(KProcess *, char *buffer, int len); + virtual void receivedStdout(TDEProcess *, char *buffer, int len); + virtual void receivedStderr(TDEProcess *, char *buffer, int len); }; //---------------------------------------------------------------------------- @@ -95,8 +95,8 @@ public: LineBase(TQObject *parent = 0, const char *name = 0) : Base(parent, name) {} private slots: - virtual void receivedStdout(KProcess *, char *buffer, int len); - virtual void receivedStderr(KProcess *, char *buffer, int len); + virtual void receivedStdout(TDEProcess *, char *buffer, int len); + virtual void receivedStderr(TDEProcess *, char *buffer, int len); private: virtual void addStdoutLine(const TQString &line) = 0; -- cgit v1.2.1