Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Examples  

QSConsole Class Reference

Sink for text messages generated by the library. More...

#include <qsconsole.h>

List of all members.

Public Methods

 QSConsole ()
virtual ~QSConsole ()

Static Public Methods

void write (const QString &message)

Protected Methods

virtual void appendText (const QString &message)=0

Static Protected Attributes

QSConsole * m_default_console

Detailed Description

Sink for text messages generated by the library.

You will have to reimplement this class if you want to receive text messages from this library. Notice a little trick - if you create an object of this class a static pointer is set to this object. in the constructor.


Constructor & Destructor Documentation


Constructor. Calls m_default_console = this.

virtual QSConsole::~QSConsole   [virtual]

Destructor. Calls if ( m_default_console == this ) m_default_console = NULL.

Member Function Documentation

virtual void QSConsole::appendText const QString &    message [protected, pure virtual]

You have to reimplement this function in your own custom console.

void QSConsole::write const QString &    message [static]

Use this function to write text to the default console

Member Data Documentation

QSConsole* QSConsole::m_default_console [static, protected]

Pointer to the default console. It is auto set when you creates an console object.

The documentation for this class was generated from the following file:
Generated on Mon Mar 18 19:16:40 2002 for KMatplot library by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002