diff options
author | Timothy Pearson <[email protected]> | 2013-01-24 13:43:14 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-24 13:43:14 -0600 |
commit | 79b21d47bce1ee428affc97534cd8b257232a871 (patch) | |
tree | 0df1fa0109d9f2bcef932eda8b5c25b2e06669ed /kioslave/finger | |
parent | 9a898d493f493adbc404f7223043c85f3817472b (diff) | |
download | tdebase-79b21d47bce1ee428affc97534cd8b257232a871.tar.gz tdebase-79b21d47bce1ee428affc97534cd8b257232a871.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kioslave/finger')
-rw-r--r-- | kioslave/finger/kio_finger.cpp | 22 | ||||
-rw-r--r-- | kioslave/finger/kio_finger.h | 4 |
2 files changed, 13 insertions, 13 deletions
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); |