mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 05:56:38 +02:00
38 lines
987 B
C++
38 lines
987 B
C++
//
|
|
// AbstractLoggerInterface.h
|
|
// interface/src
|
|
//
|
|
// Created by Stojce Slavkovski on 12/22/13.
|
|
// Copyright 2013 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_AbstractLoggerInterface_h
|
|
#define hifi_AbstractLoggerInterface_h
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
|
|
class AbstractLoggerInterface : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AbstractLoggerInterface(QObject* parent = NULL) : QObject(parent) {}
|
|
inline bool extraDebugging() { return _extraDebugging; }
|
|
inline void setExtraDebugging(bool debugging) { _extraDebugging = debugging; }
|
|
|
|
virtual void addMessage(const QString&) = 0;
|
|
virtual QString getLogData() = 0;
|
|
virtual void locateLog() = 0;
|
|
|
|
signals:
|
|
void logReceived(QString message);
|
|
|
|
private:
|
|
bool _extraDebugging{ false };
|
|
};
|
|
|
|
#endif // hifi_AbstractLoggerInterface_h
|