19 #ifndef TEXT_LOGGER_HH_
20 #define TEXT_LOGGER_HH_
29 #include <QTextStream>
31 namespace ost{
namespace gui{
39 TextLogger( FILE * fileHandle, QIODevice::OpenMode openMode = QIODevice::ReadWrite );
40 TextLogger( QString *
String, QIODevice::OpenMode openMode = QIODevice::ReadWrite );
41 TextLogger(
const QByteArray & array, QIODevice::OpenMode openMode = QIODevice::ReadOnly );
43 void SetCodeLogging(
bool flag);
44 void SetOutputLogging(
bool flag);
45 void SetErrorLogging(
bool flag);
46 bool GetCodeLogging();
47 bool GetOutputLogging();
48 bool GetErrorLogging();
51 void AppendCode(
const QString& text);
52 void AppendOutput(
unsigned int id,
const QString& text);
#define DLLEXPORT_OST_GUI