summaryrefslogtreecommitdiffstats
path: root/tdecore/tests/kprociotest.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
commite16866e072f94410321d70daedbcb855ea878cac (patch)
treeee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /tdecore/tests/kprociotest.h
parenta58c20c1a7593631a1b50213c805507ebc16adaf (diff)
downloadtdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz
tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'tdecore/tests/kprociotest.h')
-rw-r--r--tdecore/tests/kprociotest.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/tdecore/tests/kprociotest.h b/tdecore/tests/kprociotest.h
new file mode 100644
index 000000000..9f948e644
--- /dev/null
+++ b/tdecore/tests/kprociotest.h
@@ -0,0 +1,42 @@
+//
+// DUMMY -- A dummy class with a slot to demonstrate KProcess signals
+//
+// version 0.2, Aug 2nd 1997
+//
+// (C) Christian Czezatke
+// e9025461@student.tuwien.ac.at
+//
+
+
+#ifndef __DUMMY_H__
+#define __DUMMY_H__
+
+#include <stdio.h>
+#include <tqobject.h>
+#include "kprocio.h"
+
+class Dummy : public TQObject
+{
+ Q_OBJECT
+
+ public slots:
+ void printMessage(KProcess *proc)
+ {
+ printf("Process %d exited!\n", (int)proc->getPid());
+ }
+
+ void gotOutput(KProcIO*proc)
+ {
+ TQString line;
+ while(true) {
+ int result = proc->readln(line);
+ if (result == -1) return;
+ printf("OUTPUT>> [%d] '%s'\n", result, line.latin1());
+ }
+ }
+
+};
+
+#endif
+
+