diff options
author | Michele Calgaro <[email protected]> | 2024-12-01 22:25:19 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-12-01 22:35:33 +0900 |
commit | bdb1b502083e00fe5929f9ca4204bfaa87f15263 (patch) | |
tree | 9da2763c23135af429a077af5e6d95950e4464cd /tdecore/tests/kprocesstest.h | |
parent | ae2d6f00fb611d1831928a8a57ddd67bc03a38a1 (diff) | |
download | tdelibs-bdb1b502083e00fe5929f9ca4204bfaa87f15263.tar.gz tdelibs-bdb1b502083e00fe5929f9ca4204bfaa87f15263.zip |
Rename kprocess.{h,cpp} to tdeprocess.{h.cpp}.
Add temporary kprocess.h to keep things building.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdecore/tests/kprocesstest.h')
-rw-r--r-- | tdecore/tests/kprocesstest.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tdecore/tests/kprocesstest.h b/tdecore/tests/kprocesstest.h deleted file mode 100644 index 4bd4ab71e..000000000 --- a/tdecore/tests/kprocesstest.h +++ /dev/null @@ -1,50 +0,0 @@ -// -// DUMMY -- A dummy class with a slot to demonstrate TDEProcess signals -// -// version 0.2, Aug 2nd 1997 -// -// (C) Christian Czezatke -// - - -#ifndef __DUMMY_H__ -#define __DUMMY_H__ - -#include <stdio.h> -#include <tqobject.h> -#include "kprocess.h" - -class Dummy : public TQObject -{ - TQ_OBJECT - - public slots: - void printMessage(TDEProcess *proc) - { - printf("Process %d exited!\n", (int)proc->getPid()); - } - - void gotOutput(TDEProcess*, char *buffer, int len) - { - char result[1025]; // this is ugly since it relys on the internal buffer size of TDEProcess, - memcpy(result, buffer, len); // NEVER do that in your own application... ;-) - result[len] = '\0'; - printf("OUTPUT>>%s", result); - } - - void outputDone(TDEProcess *proc) - /* - Slot Procedure for the "sort" example. -- If it is indicated that the "sort" command has - absorbed all its input, we send an "EOF" to it to indicate that there is no more - data to be processed. - */ - { - proc->closeStdin(); - } - -}; - -#endif - - |