DaemonService/log.h
筱傑 6a70501baa
update
增加手动移出白名单
连续连接移出白名单
2019-01-12 10:40:27 +08:00

27 lines
457 B
C++

#ifndef LOG_H
#define LOG_H
#include <QObject>
class Log : public QObject
{
Q_OBJECT
public:
static Log& instance()
{
static Log obj;
return obj;
}
void append(QString msg);
signals:
void appendEvent(QString msg);
private:
explicit Log(QObject *parent = nullptr)
: QObject(parent) { }
Log(const Log&) = delete;
Log& operator=(const Log&) = delete;
};
#endif // LOG_H