mirror of
https://github.com/jie65535/DaemonService.git
synced 2024-07-27 19:04:56 +08:00
update
增加手动移出白名单 连续连接移出白名单
This commit is contained in:
26
log.h
Normal file
26
log.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user