libkdegames Library API Documentation

KMessageProcess Class Reference

Inheritance diagram for KMessageProcess:

Inheritance graph
[legend]
Collaboration diagram for KMessageProcess:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 348 of file kmessageio.h.


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.

References writeToProcess().

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:
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:08 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003