Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
SettingsDialog.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2012 Symless Ltd.
5 * SPDX-FileCopyrightText: (C) 2008 Volker Lanz <vl@fidra.de>
6 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7 */
8
9#pragma once
10#include <QDialog>
11
14#include "gui/tls/TlsUtility.h"
16
17namespace Ui {
18class SettingsDialog;
19}
20
21class SettingsDialog : public QDialog
22{
23 using IServerConfig = deskflow::gui::IServerConfig;
24 using CoreProcess = deskflow::gui::CoreProcess;
25
26 Q_OBJECT
27
28public:
29 void extracted();
30 SettingsDialog(QWidget *parent, const IServerConfig &serverConfig, const CoreProcess &coreProcess);
31 ~SettingsDialog() override;
32
33Q_SIGNALS:
34 void shown();
35
36private:
37 void initConnections() const;
38 void regenCertificates();
39 void browseCertificatePath();
40 void browseLogPath();
41 void setLogToFile(bool logToFile);
42 void accept() override;
43 void showEvent(QShowEvent *event) override;
44 bool isClientMode() const;
45 void updateTlsControls();
46 void updateTlsControlsEnabled();
47 void showReadOnlyMessage();
48
50 void loadFromConfig();
51
53 void updateKeyLengthOnFile(const QString &path);
54
56 void updateControls();
57
59 void updateRequestedKeySize() const;
60
61 std::unique_ptr<Ui::SettingsDialog> ui;
62 const IServerConfig &m_serverConfig;
63 const CoreProcess &m_coreProcess;
64 deskflow::gui::TlsUtility m_tlsUtility;
65};
SettingsDialog(QWidget *parent, const IServerConfig &serverConfig, const CoreProcess &coreProcess)
Definition SettingsDialog.cpp:24
~SettingsDialog() override
Definition CoreProcess.h:30
Definition IServerConfig.h:17
Definition TlsUtility.h:16
Definition AboutDialog.h:13