2 // DUMMY -- A dummy class with a slot to demonstrate K3Process signals
4 // version 0.2, Aug 2nd 1997
6 // Copyright 1997 Christian Czezatke <e9025461@student.tuwien.ac.at>
14 #include <QtCore/QObject>
17 class Dummy
: public QObject
22 void printMessage(K3Process
*proc
)
24 printf("Process %d exited!\n", (int)proc
->pid());
27 void gotOutput(K3ProcIO
*proc
)
31 int result
= proc
->readln(line
);
32 if (result
== -1) return;
33 printf("OUTPUT>> [%d] '%s'\n", result
, qPrintable(line
));