Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
WaylandWarnings.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
4 * SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include <QWidget>
11
12namespace deskflow::gui::core {
13
15{
16public:
17 explicit WaylandWarnings() = default;
18
19 void showOnce(QWidget *parent);
20
21private:
22 bool m_errorShown{false};
23
24#if WINAPI_LIBEI
25 const bool m_hasEi = true;
26#else
27 const bool m_hasEi = false;
28#endif
29
30#if WINAPI_LIBPORTAL
31 const bool m_hasPortal = true;
32#else
33 const bool m_hasPortal = false;
34#endif
35
36#if HAVE_LIBPORTAL_INPUTCAPTURE
37 const bool m_hasPortalInputCapture = true;
38#else
39 const bool m_hasPortalInputCapture = false;
40#endif
41};
42
43} // namespace deskflow::gui::core
void showOnce(QWidget *parent)
Definition WaylandWarnings.cpp:15
Definition WaylandWarnings.cpp:13