KMessageFilePipe Class Reference

Inheritance diagram for KMessageFilePipe:

KMessageIO List of all members.

Detailed Description

Definition at line 386 of file kmessageio.h.


Public Member Functions

 KMessageFilePipe (QObject *parent, QFile *readFile, QFile *writeFile)
 ~KMessageFilePipe ()
bool isConnected () const
void send (const QByteArray &msg)
void exec ()
bool isNetwork () const
virtual int rtti () const

Member Function Documentation

bool KMessageFilePipe::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 412 of file kmessageio.cpp.

void KMessageFilePipe::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 417 of file kmessageio.cpp.

bool KMessageFilePipe::isNetwork (  )  const [inline, virtual]

Returns:
FALSE as this is no network IO.

Reimplemented from KMessageIO.

Definition at line 400 of file kmessageio.h.

virtual int KMessageFilePipe::rtti (  )  const [inline, virtual]

The runtime idendifcation.

Reimplemented from KMessageIO.

Definition at line 405 of file kmessageio.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys