2012-06-10 16:50:54 +00:00
|
|
|
/*
|
2024-09-17 19:00:25 +00:00
|
|
|
* Deskflow -- mouse and keyboard sharing utility
|
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
|
2012-06-10 16:50:54 +00:00
|
|
|
*/
|
|
|
|
|
|
2024-07-22 16:48:02 +00:00
|
|
|
#pragma once
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2024-08-03 00:17:29 +00:00
|
|
|
#include <QMessageLogContext>
|
|
|
|
|
#include <QString>
|
2024-08-08 17:41:59 +00:00
|
|
|
|
|
|
|
|
class QWidget;
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2024-09-17 19:00:25 +00:00
|
|
|
namespace deskflow::gui::messages {
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2024-10-17 18:04:35 +00:00
|
|
|
enum class ClientError
|
|
|
|
|
{
|
|
|
|
|
AlreadyConnected,
|
|
|
|
|
HostnameError,
|
|
|
|
|
GenericError
|
|
|
|
|
};
|
2024-08-08 17:41:59 +00:00
|
|
|
|
2024-10-17 18:04:35 +00:00
|
|
|
enum class NewClientPromptResult
|
|
|
|
|
{
|
|
|
|
|
Add,
|
|
|
|
|
Ignore
|
|
|
|
|
};
|
2024-08-08 17:41:59 +00:00
|
|
|
|
2024-10-17 18:04:35 +00:00
|
|
|
void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg);
|
2024-07-22 16:48:02 +00:00
|
|
|
|
2024-08-09 18:20:10 +00:00
|
|
|
void raiseCriticalDialog();
|
|
|
|
|
|
2024-08-12 15:39:18 +00:00
|
|
|
void showFirstServerStartMessage(QWidget *parent);
|
|
|
|
|
|
2024-10-17 18:04:35 +00:00
|
|
|
void showFirstConnectedMessage(QWidget *parent, bool closeToTray, bool enableService, bool isServer);
|
2024-08-03 00:17:29 +00:00
|
|
|
|
|
|
|
|
void showCloseReminder(QWidget *parent);
|
|
|
|
|
|
2024-10-17 18:04:35 +00:00
|
|
|
void showClientConnectError(QWidget *parent, ClientError error, const QString &address);
|
2024-08-08 17:41:59 +00:00
|
|
|
|
2025-02-17 19:16:20 +00:00
|
|
|
NewClientPromptResult
|
|
|
|
|
showNewClientPrompt(QWidget *parent, const QString &clientName, bool serverRequiresPeerAuth = false);
|
2024-08-08 17:41:59 +00:00
|
|
|
|
2024-08-10 23:58:24 +00:00
|
|
|
bool showClearSettings(QWidget *parent);
|
|
|
|
|
|
2024-08-12 15:39:18 +00:00
|
|
|
void showReadOnlySettings(QWidget *parent, const QString &systemSettingsPath);
|
|
|
|
|
|
2024-09-09 10:18:17 +00:00
|
|
|
void showWaylandLibraryError(QWidget *parent);
|
|
|
|
|
|
2024-09-21 19:57:20 +00:00
|
|
|
bool showUpdateCheckOption(QWidget *parent);
|
|
|
|
|
|
2024-09-17 19:00:25 +00:00
|
|
|
} // namespace deskflow::gui::messages
|