From 79b21d47bce1ee428affc97534cd8b257232a871 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:43:14 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- kioslave/finger/kio_finger.cpp | 22 +++++++++++----------- kioslave/finger/kio_finger.h | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'kioslave/finger') diff --git a/kioslave/finger/kio_finger.cpp b/kioslave/finger/kio_finger.cpp index 356d35c9d..efa4d7cb8 100644 --- a/kioslave/finger/kio_finger.cpp +++ b/kioslave/finger/kio_finger.cpp @@ -121,17 +121,17 @@ void FingerProtocol::get(const KURL& url ) //kdDebug() << "Refresh rate: " << refreshRate << endl; - myKProcess = new KProcess(); - *myKProcess << *myPerlPath << *myFingerPerlScript + myTDEProcess = new TDEProcess(); + *myTDEProcess << *myPerlPath << *myFingerPerlScript << *myFingerPath << *myFingerCSSFile << refreshRate << myURL->host() << myURL->user() ; - connect(myKProcess, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), - this, TQT_SLOT(slotGetStdOutput(KProcess *, char *, int))); - //connect(myKProcess, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), - // this, TQT_SLOT(slotGetStdOutput(KProcess *, char *, int))); + connect(myTDEProcess, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), + this, TQT_SLOT(slotGetStdOutput(TDEProcess *, char *, int))); + //connect(myTDEProcess, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), + // this, TQT_SLOT(slotGetStdOutput(TDEProcess *, char *, int))); - myKProcess->start(KProcess::Block, KProcess::All); + myTDEProcess->start(TDEProcess::Block, TDEProcess::All); data(TQCString(TQString(*myStdStream).local8Bit())); @@ -140,14 +140,14 @@ void FingerProtocol::get(const KURL& url ) //clean up - delete myKProcess; + delete myTDEProcess; } /* ---------------------------------------------------------------------------------- */ -void FingerProtocol::slotGetStdOutput(KProcess* /* p */, char *s, int len) +void FingerProtocol::slotGetStdOutput(TDEProcess* /* p */, char *s, int len) { //kdDebug() << "void FingerProtocol::slotGetStdoutOutput()" << endl; *myStdStream += TQString::fromLocal8Bit(s, len); @@ -172,7 +172,7 @@ void FingerProtocol::getProgramPath() //kdDebug() << "kfingerMainWindow::getProgramPath()" << endl; // Not to sure wether I'm using the right error number here. - schlpbch - - myPerlPath = new TQString(KGlobal::dirs()->findExe("perl")); + myPerlPath = new TQString(TDEGlobal::dirs()->findExe("perl")); if (myPerlPath->isEmpty()) { //kdDebug() << "Perl command not found" << endl; @@ -185,7 +185,7 @@ void FingerProtocol::getProgramPath() //kdDebug() << "Perl command found:" << *myPerlPath << endl; } - myFingerPath = new TQString(KGlobal::dirs()->findExe("finger")); + myFingerPath = new TQString(TDEGlobal::dirs()->findExe("finger")); if ((myFingerPath->isEmpty())) { //kdDebug() << "Finger command not found" << endl; diff --git a/kioslave/finger/kio_finger.h b/kioslave/finger/kio_finger.h index 92366f45d..97c68f8c3 100644 --- a/kioslave/finger/kio_finger.h +++ b/kioslave/finger/kio_finger.h @@ -41,7 +41,7 @@ public: virtual void get(const KURL& url); private slots: - void slotGetStdOutput(KProcess*, char*, int); + void slotGetStdOutput(TDEProcess*, char*, int); private: KURL *myURL; @@ -54,7 +54,7 @@ private: QString *myStdStream; - KProcess *myKProcess; + TDEProcess *myTDEProcess; void getProgramPath(); void parseCommandLine(const KURL& url); -- cgit v1.2.1