From bdb1b502083e00fe5929f9ca4204bfaa87f15263 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 1 Dec 2024 22:25:19 +0900 Subject: Rename kprocess.{h,cpp} to tdeprocess.{h.cpp}. Add temporary kprocess.h to keep things building. Signed-off-by: Michele Calgaro --- tdecore/tests/kprocesstest.h | 50 -------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 tdecore/tests/kprocesstest.h (limited to 'tdecore/tests/kprocesstest.h') 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 -// e9025461@student.tuwien.ac.at -// - - -#ifndef __DUMMY_H__ -#define __DUMMY_H__ - -#include -#include -#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 - - -- cgit v1.2.1