forked from Sepanta/console-emulator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
376 B
25 lines
376 B
#ifndef TESTLOGGER_H
|
|
#define TESTLOGGER_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "model/Logger.h"
|
|
|
|
class TestLogger : public QObject, public Logger
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QString message;
|
|
|
|
void log(QString message) override
|
|
{
|
|
this->message = message;
|
|
emit isCalled();
|
|
}
|
|
|
|
signals:
|
|
void isCalled();
|
|
};
|
|
|
|
#endif //TESTLOGGER_H
|
|
|