diff options
Diffstat (limited to 'kpackage/kpPty.cpp')
-rw-r--r-- | kpackage/kpPty.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kpackage/kpPty.cpp b/kpackage/kpPty.cpp index 23eb15f..e442130 100644 --- a/kpackage/kpPty.cpp +++ b/kpackage/kpPty.cpp @@ -61,14 +61,14 @@ kpKProcIO::~kpKProcIO() bool kpKProcIO::sstart (RunMode runmode) { - connect (this, TQT_SIGNAL (receivedStdout (KProcess *, char *, int)), - this, TQT_SLOT (received (KProcess *, char *, int))); + connect (this, TQT_SIGNAL (receivedStdout (TDEProcess *, char *, int)), + this, TQT_SLOT (received (TDEProcess *, char *, int))); - connect (this, TQT_SIGNAL (wroteStdin(KProcess *)), - this, TQT_SLOT (sent (KProcess *))); + connect (this, TQT_SIGNAL (wroteStdin(TDEProcess *)), + this, TQT_SLOT (sent (TDEProcess *))); - return KProcess::start (runmode,( KProcess::Communication) ( KProcess::Stdin | KProcess::Stdout)); + return TDEProcess::start (runmode,( TDEProcess::Communication) ( TDEProcess::Stdin | TDEProcess::Stdout)); } ////////////////////////////////////////////////////////////////////////////// @@ -76,11 +76,11 @@ bool kpKProcIO::sstart (RunMode runmode) kpPty::kpPty() : TQObject() { pty = new kpKProcIO(); - pty->setUsePty(KProcess::All, false); + pty->setUsePty(TDEProcess::All, false); connect(pty, TQT_SIGNAL(readReady(KProcIO *)), this, TQT_SLOT(readLines())); - connect(pty, TQT_SIGNAL(processExited(KProcess *)), this, + connect(pty, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(done())); pty->pty()->setWinSize(0,80); tm = new TQTimer(this); @@ -166,7 +166,7 @@ bool kpPty::startSession(bool needRoot) passMsg = i18n("The action you requested needs root privileges. Please enter your SUDO password.\n"); startSudo(); } - pty->sstart(KProcess::NotifyOnExit); + pty->sstart(TDEProcess::NotifyOnExit); RESTART: tm->start(6*1000, TRUE); @@ -289,7 +289,7 @@ TQStringList kpPty::run(const TQString &cmd, bool inLoop, bool needRoot) pty->resetAll(); breakUpCmd(cmd); pty->setEnvironment("TERM", "dumb"); - if (!pty->sstart(KProcess::NotifyOnExit)) { + if (!pty->sstart(TDEProcess::NotifyOnExit)) { kdDebug() << " kpPty::run execute=0\n"; return 0; } @@ -322,7 +322,7 @@ void kpPty::close() { pty->closeAll(); while(pty->isRunning()) { - KProcessController::theKProcessController->waitForProcessExit(1); + TDEProcessController::theTDEProcessController->waitForProcessExit(1); } inSession = false; } |