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.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/util/blockingkprocess.cpp b/lib/util/blockingkprocess.cpp
index f0d6e6c3..9c9d9130 100644
--- a/lib/util/blockingkprocess.cpp
+++ b/lib/util/blockingkprocess.cpp
@@ -11,10 +11,10 @@
#include "blockingkprocess.h"
-#include <qapplication.h>
-#include <qtimer.h>
+#include <tqapplication.h>
+#include <tqtimer.h>
-BlockingKProcess::BlockingKProcess(QObject *parent, const char *name)
+BlockingKProcess::BlockingKProcess(TQObject *parent, const char *name)
: KProcess(parent, name)
{
m_stdOut = "";
@@ -22,12 +22,12 @@ BlockingKProcess::BlockingKProcess(QObject *parent, const char *name)
m_timeoutValue = 60;
m_timer = 0L;
- connect(this, SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, SLOT(slotReceivedStdOut(KProcess *, char *, int)));
- connect(this, SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, SLOT(slotReceivedStdErr(KProcess *, char *, int)));
- connect(this, SIGNAL(processExited(KProcess *)),
- this, SLOT(slotProcessExited(KProcess *)));
+ 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 *)));
}
BlockingKProcess::BlockingKProcess()
@@ -37,12 +37,12 @@ BlockingKProcess::BlockingKProcess()
m_stdErr = "";
m_timeoutValue = 60;
m_timer = 0L;
- connect(this, SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, SLOT(slotReceivedStdOut(KProcess *, char *, int)));
- connect(this, SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, SLOT(slotReceivedStdErr(KProcess *, char *, int)));
- connect(this, SIGNAL(processExited(KProcess *)),
- this, SLOT(slotProcessExited(KProcess *)));
+ 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 *)));
}
@@ -54,8 +54,8 @@ bool BlockingKProcess::start(RunMode runmode, Communication comm)
if (KProcess::start(runmode, comm))
{
m_timeout = false;
- m_timer = new QTimer();
- connect(m_timer, SIGNAL(timeout()), this, SLOT(slotTimeOut()));
+ m_timer = new TQTimer();
+ connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeOut()));
m_timer->start(m_timeoutValue*1000, true);
enter_loop();
delete m_timer;
@@ -68,12 +68,12 @@ bool BlockingKProcess::start(RunMode runmode, Communication comm)
void BlockingKProcess::slotReceivedStdOut(KProcess *, char *buffer, int buflen)
{
- m_stdOut += QString::fromLatin1(buffer, buflen);
+ m_stdOut += TQString::fromLatin1(buffer, buflen);
}
void BlockingKProcess::slotReceivedStdErr(KProcess *, char *buffer, int buflen)
{
- m_stdErr += QString::fromLatin1(buffer, buflen);
+ m_stdErr += TQString::fromLatin1(buffer, buflen);
}
void BlockingKProcess::slotProcessExited(KProcess *)
@@ -89,13 +89,13 @@ void BlockingKProcess::slotTimeOut()
}
-void qt_enter_modal( QWidget *widget );
-void qt_leave_modal( QWidget *widget );
+void qt_enter_modal( TQWidget *widget );
+void qt_leave_modal( TQWidget *widget );
void BlockingKProcess::enter_loop()
{
- QWidget dummy(0,0,WType_Dialog | WShowModal);
- dummy.setFocusPolicy( QWidget::NoFocus );
+ TQWidget dummy(0,0,WType_Dialog | WShowModal);
+ dummy.setFocusPolicy( TQWidget::NoFocus );
qt_enter_modal(&dummy);
qApp->enter_loop();
qt_leave_modal(&dummy);