summaryrefslogtreecommitdiffstats
path: root/kpackage/kpPty.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:58 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:58 -0600
commit5f444a9ea966b68991cef44d2711378ef9ff406d (patch)
tree07f06257228437d61e24ef7ebe530d365c4ee54c /kpackage/kpPty.cpp
parent91f62a5883c34899da0137e71f74ceb5c17fc799 (diff)
downloadtdeadmin-5f444a9ea966b68991cef44d2711378ef9ff406d.tar.gz
tdeadmin-5f444a9ea966b68991cef44d2711378ef9ff406d.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kpackage/kpPty.cpp')
-rw-r--r--kpackage/kpPty.cpp20
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;
}