2011-09-25 19:30:32 +01:00
|
|
|
#ifndef DEBUGENGINE_H
|
|
|
|
#define DEBUGENGINE_H
|
2013-09-15 23:06:25 +02:00
|
|
|
#include <QTextBrowser>
|
|
|
|
#include <QPointer>
|
|
|
|
#include <QMutex>
|
|
|
|
|
|
|
|
class debugengine {
|
|
|
|
// Add all missing constructor etc... to have singleton
|
2011-09-25 19:30:32 +01:00
|
|
|
debugengine();
|
2013-09-15 23:06:25 +02:00
|
|
|
~debugengine();
|
|
|
|
public:
|
|
|
|
static debugengine *getInstance();
|
|
|
|
void setTextEdit(QTextBrowser *textEdit);
|
|
|
|
void writeMessage(const QString &message);
|
|
|
|
void setColor(const QColor &c);
|
|
|
|
QMutex *mut_lock;
|
|
|
|
private:
|
|
|
|
QPointer<QTextBrowser> _textEdit;
|
2011-09-25 19:30:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DEBUGENGINE_H
|