Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
Logger.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#include <QObject>
10
11namespace deskflow::gui {
12
13class Logger : public QObject
14{
15 Q_OBJECT
16
17public:
18 static Logger *instance()
19 {
20 static Logger m;
21 return &m;
22 }
23
24 void handleMessage(const QtMsgType type, const QString &fileLine, const QString &message);
25
26Q_SIGNALS:
27 void newLine(const QString &line);
28
29private:
30 explicit Logger();
31 ~Logger();
32 void settingChanged(const QString &key);
33 bool m_guiDebug = false;
34};
35
36} // namespace deskflow::gui
static int type
Definition ArchNetworkWinsock.cpp:45
int key
Definition KeySequence.cpp:15
void handleMessage(const QtMsgType type, const QString &fileLine, const QString &message)
Definition Logger.cpp:53
void newLine(const QString &line)
static Logger * instance()
Definition Logger.h:18
Definition IServerConfig.h:14