libkdegames Library API Documentation

KMessageFilePipe Class Reference

Inheritance diagram for KMessageFilePipe:

Inheritance graph
[legend]
Collaboration diagram for KMessageFilePipe:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 386 of file kmessageio.h.


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.

Referenced by KGameProcess::sendSystemMessage().

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 Logo
This file is part of the documentation for libkdegames Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Sep 12 05:18:07 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003