/*************************************************************************** qsconsole.cpp - description ------------------- begin : Wed Jan 16 2002 copyright : (C) 2002 by kamil email : kamil@localhost.localdomain ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "qsconsole.h" QSConsole *QSConsole::m_default_console = NULL; //-------------------------------------------------------------------------// QSConsole::QSConsole() { m_default_console = this; } //-------------------------------------------------------------------------// QSConsole::~QSConsole() { if ( m_default_console == this ) m_default_console = NULL; } //-------------------------------------------------------------------------// void QSConsole::write( const QString& message ) { if ( m_default_console ) m_default_console->appendText( message ); } //-------------------------------------------------------------------------// void QSConsole::appendText( const QString& ) { // lost in space } //-------------------------------------------------------------------------//