summaryrefslogtreecommitdiffstats
path: root/kpackage/procbuf.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/procbuf.cpp
parent91f62a5883c34899da0137e71f74ceb5c17fc799 (diff)
downloadtdeadmin-5f444a9ea966b68991cef44d2711378ef9ff406d.tar.gz
tdeadmin-5f444a9ea966b68991cef44d2711378ef9ff406d.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
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);
}