2024-09-09 10:18:17 +00:00
|
|
|
/*
|
2024-09-17 19:00:25 +00:00
|
|
|
* Deskflow -- mouse and keyboard sharing utility
|
2025-11-05 20:45:56 +00:00
|
|
|
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
|
2025-01-24 00:11:17 +00:00
|
|
|
* SPDX-FileCopyrightText: (C) 2024 Symless Ltd.
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
2024-09-09 10:18:17 +00:00
|
|
|
*/
|
|
|
|
|
|
2024-10-06 13:03:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
2024-09-09 10:18:17 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
2024-09-17 19:00:25 +00:00
|
|
|
namespace deskflow::gui::core {
|
2024-09-09 10:18:17 +00:00
|
|
|
|
2024-10-17 18:04:35 +00:00
|
|
|
class WaylandWarnings
|
|
|
|
|
{
|
2024-09-09 10:18:17 +00:00
|
|
|
public:
|
2025-05-10 02:49:41 +00:00
|
|
|
explicit WaylandWarnings() = default;
|
2024-09-09 10:18:17 +00:00
|
|
|
|
2025-11-05 20:45:56 +00:00
|
|
|
void showOnce(QWidget *parent);
|
2024-09-09 10:18:17 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool m_errorShown{false};
|
2025-11-05 20:45:56 +00:00
|
|
|
|
|
|
|
|
#if WINAPI_LIBEI
|
|
|
|
|
const bool m_hasEi = true;
|
|
|
|
|
#else
|
|
|
|
|
const bool m_hasEi = false;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if WINAPI_LIBPORTAL
|
|
|
|
|
const bool m_hasPortal = true;
|
|
|
|
|
#else
|
|
|
|
|
const bool m_hasPortal = false;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if HAVE_LIBPORTAL_INPUTCAPTURE
|
|
|
|
|
const bool m_hasPortalInputCapture = true;
|
|
|
|
|
#else
|
|
|
|
|
const bool m_hasPortalInputCapture = false;
|
|
|
|
|
#endif
|
2024-09-09 10:18:17 +00:00
|
|
|
};
|
|
|
|
|
|
2024-09-17 19:00:25 +00:00
|
|
|
} // namespace deskflow::gui::core
|