Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ServerMessage.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2021 Symless Ltd.
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#include <QString>
10
11namespace deskflow::gui {
12
14{
15 QString m_message;
16 QString m_clientName;
17
18public:
19 explicit ServerMessage(const QString &message);
20
21 bool isNewClientMessage() const;
22 bool isExitMessage() const;
23 bool isConnectedMessage() const;
24 bool isDisconnectedMessage() const;
25
26 const QString &getClientName() const;
27
28private:
29 QString parseClientName(const QString &line) const;
30};
31
32} // namespace deskflow::gui
bool isExitMessage() const
Definition ServerMessage.cpp:21
ServerMessage(const QString &message)
Definition ServerMessage.cpp:11
bool isConnectedMessage() const
Definition ServerMessage.cpp:26
const QString & getClientName() const
Definition ServerMessage.cpp:36
bool isDisconnectedMessage() const
Definition ServerMessage.cpp:31
bool isNewClientMessage() const
Definition ServerMessage.cpp:16
Definition IServerConfig.h:14