Deskflow 1.25.0.128
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
15namespace Ui {
16class SettingsDialog;
17}
18
19class SettingsDialog : public QDialog
20{
21 using IServerConfig = deskflow::gui::IServerConfig;
22 using CoreProcess = deskflow::gui::CoreProcess;
23
24 Q_OBJECT
25
26public:
27 void extracted();
28 SettingsDialog(QWidget *parent, const IServerConfig &serverConfig, const CoreProcess &coreProcess);
29 ~SettingsDialog() override;
30
31Q_SIGNALS:
32 void shown();
33
34protected:
35 void changeEvent(QEvent *e) override;
36
37private:
38 void initConnections() const;
39 void regenCertificates();
40 void browseCertificatePath();
41 void browseLogPath();
42 void setLogToFile(bool logToFile);
43 void accept() override;
44 void showEvent(QShowEvent *event) override;
45 bool isClientMode() const;
46 void updateTlsControls();
47 void updateTlsControlsEnabled();
48 void showReadOnlyMessage();
49 void updateText();
50
52 void loadFromConfig();
53
55 void updateKeyLengthOnFile(const QString &path);
56
58 void updateControls();
59
61 void updateRequestedKeySize() const;
62
64 void logLevelChanged();
65
66 std::unique_ptr<Ui::SettingsDialog> ui;
67 const IServerConfig &m_serverConfig;
68 const CoreProcess &m_coreProcess;
69};
SettingsDialog(QWidget *parent, const IServerConfig &serverConfig, const CoreProcess &coreProcess)
Definition SettingsDialog.cpp:26
~SettingsDialog() override
void changeEvent(QEvent *e) override
Definition SettingsDialog.cpp:73
Definition CoreProcess.h:26
Definition IServerConfig.h:18
Definition AboutDialog.h:13