org.kde.koala

Interface KProcessSignals

public interface KProcessSignals

Method Summary
voidprocessExited(KProcess proc)
Emitted after the process has terminated when the process was run in the NotifyOnExit (==default option to start() ) or the Block mode.
voidreceivedStderr(KProcess proc, String buffer, int buflen)
Emitted, when output from the child process has been received on stderr.
voidreceivedStdout(KProcess proc, String buffer, int buflen)
Emitted, when output from the child process has been received on stdout.
voidreceivedStdout(int fd, int[] len)
Emitted when output from the child process has been received on stdout.
voidwroteStdin(KProcess proc)
Emitted after all the data that has been specified by a prior call to writeStdin() has actually been written to the child process.

Method Detail

processExited

public void processExited(KProcess proc)
Emitted after the process has terminated when the process was run in the NotifyOnExit (==default option to start() ) or the Block mode.

Parameters: proc a pointer to the process that has exited

UNKNOWN: Emitted after the process has terminated when the process was run in the NotifyOnExit (==default option to start() ) or the Block mode.

receivedStderr

public void receivedStderr(KProcess proc, String buffer, int buflen)
Emitted, when output from the child process has been received on stderr. To actually get this signal, the Stderr communication link has to be turned on in start(). You should copy the information contained in buffer to your private data structures before returning from the slot.

Parameters: proc a pointer to the process that has received the data buffer The data received. buflen The number of bytes that are available.

UNKNOWN: Emitted, when output from the child process has been received on stderr.

receivedStdout

public void receivedStdout(KProcess proc, String buffer, int buflen)
Emitted, when output from the child process has been received on stdout. To actually get this signal, the Stdout communication link has to be turned on in start().

Parameters: proc a pointer to the process that has received the output buffer The data received. buflen The number of bytes that are available. You should copy the information contained in buffer to your private data structures before returning from the slot. Example:

		     String myBuf = String.fromLatin1(buffer, buflen);
		 

UNKNOWN: Emitted, when output from the child process has been received on stdout.

receivedStdout

public void receivedStdout(int fd, int[] len)
Emitted when output from the child process has been received on stdout. To actually get this signal, the Stdout communication link has to be turned on in start() and the NoRead flag must have been passed. You will need to explicitly call resume() after your call to start() to begin processing data from the child process' stdout. This is to ensure that this signal is not emitted when no one is connected to it, otherwise this signal will not be emitted. The data still has to be read from file descriptor fd.

Parameters: fd the file descriptor that provides the data len the number of bytes that have been read from fd must be written here

UNKNOWN: Emitted when output from the child process has been received on stdout.

wroteStdin

public void wroteStdin(KProcess proc)
Emitted after all the data that has been specified by a prior call to writeStdin() has actually been written to the child process.

Parameters: proc a pointer to the process

UNKNOWN: Emitted after all the data that has been specified by a prior call to writeStdin() has actually been written to the child process.