deskflow/src/lib/common/Enums.h
Nick Bolton 59a4747113 feat(ipc): Unrecognised IPC client, retry messages, and TLS fingerprint
Also adds version checking for IPC server and client
2026-04-07 13:09:29 +01:00

56 lines
986 B
C++

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
* SPDX-FileCopyrightText: (C) 2010 - 2018, 2024 - 2025 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 - 2007 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
#include <QObject>
namespace deskflow::client {
Q_NAMESPACE
enum class ErrorType : uint8_t
{
NoError,
AlreadyConnected,
HostnameError,
GenericError
};
Q_ENUM_NS(ErrorType)
} // namespace deskflow::client
namespace deskflow::core {
Q_NAMESPACE
enum class ProcessState
{
Starting,
Started,
Stopping,
Stopped,
RetryPending
};
Q_ENUM_NS(ProcessState)
enum class ConnectionState
{
Disconnected,
Connecting,
Connected,
Listening
};
Q_ENUM_NS(ConnectionState)
enum class ConnectionRefusal
{
IncompatibleVersion,
AlreadyConnected,
UnknownClient,
ProtocolError
};
Q_ENUM_NS(ConnectionRefusal)
} // namespace deskflow::core