summaryrefslogtreecommitdiffstats
path: root/src/common/nokde/nokde_kprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/nokde/nokde_kprocess.cpp')
-rw-r--r--src/common/nokde/nokde_kprocess.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/common/nokde/nokde_kprocess.cpp b/src/common/nokde/nokde_kprocess.cpp
index 8bbb711..ee3e35b 100644
--- a/src/common/nokde/nokde_kprocess.cpp
+++ b/src/common/nokde/nokde_kprocess.cpp
@@ -11,7 +11,7 @@
# include <signal.h>
#endif
-KProcess::KProcess(TQObject *parent, const char *name)
+TDEProcess::TDEProcess(TQObject *parent, const char *name)
: TQObject(parent, name)
{
_process = new Q3Process(this);
@@ -20,7 +20,7 @@ KProcess::KProcess(TQObject *parent, const char *name)
connect(_process, TQT_SIGNAL(readyReadStderr()), TQT_SLOT(readyReadStderrSlot()));
}
-bool KProcess::start()
+bool TDEProcess::start()
{
_process->setArguments(_arguments);
TQStringList env;
@@ -31,26 +31,26 @@ bool KProcess::start()
return _process->start(env.isEmpty() ? 0 : &env);
}
-void KProcess::processExitedSlot()
+void TDEProcess::processExitedSlot()
{
readyReadStdoutSlot();
readyReadStderrSlot();
emit processExited(this);
}
-void KProcess::readyReadStdoutSlot()
+void TDEProcess::readyReadStdoutSlot()
{
TQByteArray a = _process->readStdout();
emit receivedStdout(this, a.data(), a.count());
}
-void KProcess::readyReadStderrSlot()
+void TDEProcess::readyReadStderrSlot()
{
TQByteArray a = _process->readStderr();
emit receivedStderr(this, a.data(), a.count());
}
-bool KProcess::writeStdin(const char *buffer, int len)
+bool TDEProcess::writeStdin(const char *buffer, int len)
{
#if [[[TQT_VERSION IS DEPRECATED]]]<0x040000
TQByteArray a;
@@ -62,13 +62,13 @@ bool KProcess::writeStdin(const char *buffer, int len)
return true;
}
-bool KProcess::kill()
+bool TDEProcess::kill()
{
_process->kill();
return true;
}
-bool KProcess::kill(int n)
+bool TDEProcess::kill(int n)
{
#if defined(Q_OS_UNIX)
return ( ::kill(_process->processIdentifier(), n)!=-1 );
@@ -78,22 +78,22 @@ bool KProcess::kill(int n)
#endif
}
-int KProcess::exitStatus() const
+int TDEProcess::exitStatus() const
{
return _process->exitStatus();
}
-bool KProcess::isRunning() const
+bool TDEProcess::isRunning() const
{
return _process->isRunning();
}
-void KProcess::setWorkingDirectory(const TQDir &dir)
+void TDEProcess::setWorkingDirectory(const TQDir &dir)
{
return _process->setWorkingDirectory(dir);
}
-void KProcess::setUseShell(bool useShell)
+void TDEProcess::setUseShell(bool useShell)
{
// ### TODO: just issue "/bin/sh" "-c" "command"
Q_ASSERT(false);