org.kde.koala
Interface KProcessSignals


public interface KProcessSignals


Method Summary
 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.
 void receivedStderr(KProcess proc, java.lang.String buffer, int buflen)
          Emitted, when output from the child process has been received on stderr.
 void receivedStdout(int fd, int[] len)
          Emitted when output from the child process has been received on stdout.
 void receivedStdout(KProcess proc, java.lang.String buffer, int buflen)
          Emitted, when output from the child process has been received on stdout.
 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.
 

Method Detail

processExited

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

receivedStdout

void receivedStdout(KProcess proc,
                    java.lang.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);
                 

receivedStdout

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

receivedStderr

void receivedStderr(KProcess proc,
                    java.lang.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.

wroteStdin

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