org.kde.koala
Interface KBufferedIOSignals


public interface KBufferedIOSignals


Method Summary
 void bytesWritten(int nbytes)
          This signal gets sent whenever bytes are written from the buffer.
 void closed(int state)
          This signal gets sent when the stream is closed.
 

Method Detail

bytesWritten

void bytesWritten(int nbytes)
This signal gets sent whenever bytes are written from the buffer.

Parameters:
nbytes - the number of bytes sent.

closed

void closed(int state)
This signal gets sent when the stream is closed. The state parameter will give the current state, in OR-ed bits:
  • availRead: read buffer contains data to be read
  • dirtyWrite: write buffer wasn't empty when the stream closed
  • involuntary: the stream wasn't closed due to user request (i.e., call to close). Probably remote end closed it
  • delayed: the stream was closed voluntarily by the user, but it happened only after the write buffer was emptied
  • closedNow: the stream was closed voluntarily by the user, by explicitly calling closeNow, which means the write buffer's contents may have been discarded
  • Parameters:
    state - the state (see function description)