summaryrefslogtreecommitdiffstats
path: root/kpackage/procbuf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpackage/procbuf.cpp')
-rw-r--r--kpackage/procbuf.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kpackage/procbuf.cpp b/kpackage/procbuf.cpp
index 568e651..8da355a 100644
--- a/kpackage/procbuf.cpp
+++ b/kpackage/procbuf.cpp
@@ -60,19 +60,19 @@ procbuf::~procbuf()
void procbuf::setup(TQString cmd)
{
buf.truncate(0);
- proc = new KProcess();
- connect(proc, TQT_SIGNAL( receivedStdout(KProcess *, char *, int)),
- this, TQT_SLOT(slotReadInfo(KProcess *, char *, int)));
- connect(proc, TQT_SIGNAL( receivedStderr(KProcess *, char *, int)),
- this, TQT_SLOT(slotReadInfo(KProcess *, char *, int)));
- connect(proc, TQT_SIGNAL( processExited(KProcess *)),
- this, TQT_SLOT(slotExited(KProcess *)));
+ proc = new TDEProcess();
+ connect(proc, TQT_SIGNAL( receivedStdout(TDEProcess *, char *, int)),
+ this, TQT_SLOT(slotReadInfo(TDEProcess *, char *, int)));
+ connect(proc, TQT_SIGNAL( receivedStderr(TDEProcess *, char *, int)),
+ this, TQT_SLOT(slotReadInfo(TDEProcess *, char *, int)));
+ connect(proc, TQT_SIGNAL( processExited(TDEProcess *)),
+ this, TQT_SLOT(slotExited(TDEProcess *)));
proc->clearArguments();
*proc << cmd;
command = cmd;
}
-void procbuf::slotReadInfo(KProcess *, char *buffer, int buflen)
+void procbuf::slotReadInfo(TDEProcess *, char *buffer, int buflen)
{
char last;
@@ -88,7 +88,7 @@ void procbuf::slotReadInfo(KProcess *, char *buffer, int buflen)
}
}
-void procbuf::slotExited(KProcess *)
+void procbuf::slotExited(TDEProcess *)
{
if (m) {
m->terminate();
@@ -115,8 +115,8 @@ int procbuf::start (TQString msg, bool errorDlg,
timed = true;
}
- if (!proc->start(!msg.isNull() ? KProcess::NotifyOnExit : KProcess::Block,
- KProcess::All)) {
+ if (!proc->start(!msg.isNull() ? TDEProcess::NotifyOnExit : TDEProcess::Block,
+ TDEProcess::All)) {
if (errorDlg) {
KpMsgE(i18n("Kprocess Failure"),TRUE);
}