This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
modern-linbo-gui/headers/legacy/linboLogConsole.hh

61 lines
1.7 KiB
C++
Raw Normal View History

/* holds the environmental configuration of our console
Copyright (C) 2010 Martin Oehler <oehler@knopper.net>
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef LINBOLOGCONSOLE_HH
#define LINBOLOGCONSOLE_HH
#include <qstring.h>
#include <qwidget.h>
#include <QTextEdit>
#include <QByteArray>
#include <QColor>
#include <qstringlist.h>
#include "linboGUIImpl.hh"
class linboLogConsole
{
private:
QColor consolefontcolorstdout, consolefontcolorstderr;
QTextEdit* Console;
public:
linboLogConsole( QWidget* parent = 0,
const char* name = 0 );
~linboLogConsole();
// TODO: error handling
void setLinboLogConsole( const QString& new_consolefontcolorstdout,
const QString& new_consolefontcolorstderr,
QTextEdit* new_console );
void writeStdOut( const QByteArray& stdoutdata );
void writeStdOut( const QString& stdoutdata );
void writeStdErr( const QByteArray& stderrdata );
void writeStdErr( const QString& stderrdata );
void writeResult( const int& processRetval,
QProcess::ExitStatus status,
const int& errorstatus );
};
#endif