summaryrefslogtreecommitdiffstats
path: root/lib/util/blockingkprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/blockingkprocess.cpp')
-rw-r--r--lib/util/blockingkprocess.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/lib/util/blockingkprocess.cpp b/lib/util/blockingkprocess.cpp
index aef4fb1f..b88b0cad 100644
--- a/lib/util/blockingkprocess.cpp
+++ b/lib/util/blockingkprocess.cpp
@@ -14,44 +14,44 @@
#include <tqapplication.h>
#include <tqtimer.h>
-BlockingKProcess::BlockingKProcess(TQObject *parent, const char *name)
- : KProcess(parent, name)
+BlockingTDEProcess::BlockingTDEProcess(TQObject *parent, const char *name)
+ : TDEProcess(parent, name)
{
m_stdOut = "";
m_stdErr = "";
m_timeoutValue = 60;
m_timer = 0L;
- connect(this, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, TQT_SLOT(slotReceivedStdOut(KProcess *, char *, int)));
- connect(this, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, TQT_SLOT(slotReceivedStdErr(KProcess *, char *, int)));
- connect(this, TQT_SIGNAL(processExited(KProcess *)),
- this, TQT_SLOT(slotProcessExited(KProcess *)));
+ connect(this, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ this, TQT_SLOT(slotReceivedStdOut(TDEProcess *, char *, int)));
+ connect(this, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this, TQT_SLOT(slotReceivedStdErr(TDEProcess *, char *, int)));
+ connect(this, TQT_SIGNAL(processExited(TDEProcess *)),
+ this, TQT_SLOT(slotProcessExited(TDEProcess *)));
}
-BlockingKProcess::BlockingKProcess()
- : KProcess()
+BlockingTDEProcess::BlockingTDEProcess()
+ : TDEProcess()
{
m_stdOut = "";
m_stdErr = "";
m_timeoutValue = 60;
m_timer = 0L;
- connect(this, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, TQT_SLOT(slotReceivedStdOut(KProcess *, char *, int)));
- connect(this, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, TQT_SLOT(slotReceivedStdErr(KProcess *, char *, int)));
- connect(this, TQT_SIGNAL(processExited(KProcess *)),
- this, TQT_SLOT(slotProcessExited(KProcess *)));
+ connect(this, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ this, TQT_SLOT(slotReceivedStdOut(TDEProcess *, char *, int)));
+ connect(this, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this, TQT_SLOT(slotReceivedStdErr(TDEProcess *, char *, int)));
+ connect(this, TQT_SIGNAL(processExited(TDEProcess *)),
+ this, TQT_SLOT(slotProcessExited(TDEProcess *)));
}
-BlockingKProcess::~BlockingKProcess()
+BlockingTDEProcess::~BlockingTDEProcess()
{
}
-bool BlockingKProcess::start(RunMode runmode, Communication comm)
+bool BlockingTDEProcess::start(RunMode runmode, Communication comm)
{
- if (KProcess::start(runmode, comm))
+ if (TDEProcess::start(runmode, comm))
{
m_timeout = false;
m_timer = new TQTimer();
@@ -66,22 +66,22 @@ bool BlockingKProcess::start(RunMode runmode, Communication comm)
}
-void BlockingKProcess::slotReceivedStdOut(KProcess *, char *buffer, int buflen)
+void BlockingTDEProcess::slotReceivedStdOut(TDEProcess *, char *buffer, int buflen)
{
m_stdOut += TQString::fromLatin1(buffer, buflen);
}
-void BlockingKProcess::slotReceivedStdErr(KProcess *, char *buffer, int buflen)
+void BlockingTDEProcess::slotReceivedStdErr(TDEProcess *, char *buffer, int buflen)
{
m_stdErr += TQString::fromLatin1(buffer, buflen);
}
-void BlockingKProcess::slotProcessExited(KProcess *)
+void BlockingTDEProcess::slotProcessExited(TDEProcess *)
{
tqApp->exit_loop();
}
-void BlockingKProcess::slotTimeOut()
+void BlockingTDEProcess::slotTimeOut()
{
m_timeout = true;
kill();
@@ -92,7 +92,7 @@ void BlockingKProcess::slotTimeOut()
void tqt_enter_modal( TQWidget *widget );
void tqt_leave_modal( TQWidget *widget );
-void BlockingKProcess::enter_loop()
+void BlockingTDEProcess::enter_loop()
{
TQWidget dummy(0,0,WType_Dialog | WShowModal);
dummy.setFocusPolicy( TQ_NoFocus );