Deskflow 1.25.0.128
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ClientConnection.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2021 Symless Ltd.
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include "common/Enums.h"
11
12#include <QString>
13#include <QWidget>
14
15class QWidget;
16
17namespace deskflow::gui {
18
19class ClientConnection : public QObject
20{
21 Q_OBJECT
22
23public:
24 explicit ClientConnection(QWidget *parent) : m_pParent(parent)
25 {
26 // do nothing
27 }
28
29 void handleLogLine(const QString &line);
30
31Q_SIGNALS:
38 void requestShowError(deskflow::client::ErrorType error, const QString &address);
39
40private:
41 void showMessage(const QString &logLine);
42
43 QWidget *m_pParent;
44 bool m_supressMessage = false;
45};
46
47} // namespace deskflow::gui
ClientConnection(QWidget *parent)
Definition ClientConnection.h:24
void handleLogLine(const QString &line)
Definition ClientConnection.cpp:17
void requestShowError(deskflow::client::ErrorType error, const QString &address)
requestShowError, This signal is emitted when the client connection would like the owning process to ...
ErrorType
Definition Enums.h:16
Definition IServerConfig.h:14