KMessageProcess Class Reference
Inheritance diagram for KMessageProcess:

Detailed Description
Definition at line 348 of file kmessageio.h.
Public Slots | |
void | slotReceivedStdout (KProcess *proc, char *buffer, int buflen) |
void | slotReceivedStderr (KProcess *proc, char *buffer, int buflen) |
void | slotProcessExited (KProcess *p) |
void | slotWroteStdin (KProcess *p) |
Public Member Functions | |
KMessageProcess (QObject *parent, QString file) | |
~KMessageProcess () | |
bool | isConnected () const |
void | send (const QByteArray &msg) |
void | writeToProcess () |
bool | isNetwork () const |
virtual int | rtti () const |
Member Function Documentation
bool KMessageProcess::isConnected | ( | ) | const [virtual] |
This method returns the status of the object, whether it is already (or still) connected to another KMessageIO object or not.
This is a pure virtual method, so it has to be implemented in a subclass of KMessageIO.
Reimplemented from KMessageIO.
Definition at line 264 of file kmessageio.cpp.
void KMessageProcess::send | ( | const QByteArray & | msg | ) | [virtual] |
This slot sends the data block in /e msg to the connected object, that will emit /e received().
For a concrete class, you have to subclass /e KMessageIO and overwrite this method. In the subclass, implement this method as an ordinary method, not as a slot! (Otherwise another slot would be defined. It would work, but uses more memory and time.) See /e KMessageSocket for an example implementation.
Implements KMessageIO.
Definition at line 270 of file kmessageio.cpp.
bool KMessageProcess::isNetwork | ( | ) | const [inline, virtual] |
- Returns:
- FALSE as this is no network IO.
Reimplemented from KMessageIO.
Definition at line 362 of file kmessageio.h.
virtual int KMessageProcess::rtti | ( | ) | const [inline, virtual] |
The runtime idendifcation.
Reimplemented from KMessageIO.
Definition at line 367 of file kmessageio.h.
The documentation for this class was generated from the following files: