overte/interface/src/AbstractLoggerInterface.h
2015-07-08 22:35:23 -07:00

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