Deskflow 1.26.0.418
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 - 2026 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2012 Synergy App 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
13
15
16namespace Ui {
17class SettingsDialog;
18}
19
20class SettingsDialog : public QDialog
21{
22 Q_OBJECT
23
24public:
25 void extracted();
26 SettingsDialog(QWidget *parent, const ServerConfig &serverConfig);
27 ~SettingsDialog() override;
28
29Q_SIGNALS:
31
32protected:
33 void changeEvent(QEvent *e) override;
34
35private:
36 void initConnections() const;
37 void regenCertificates();
38 void browseCertificatePath();
39 void browseLogPath();
40 void setLogToFile(bool logToFile);
41 void accept() override;
42 bool isClientMode() const;
43 void updateTlsControls();
44 void updateTlsControlsEnabled();
45 void resetAllSettings();
46 void updateText();
47
49 void loadFromConfig();
50
52 void updateKeyLengthOnFile(const QString &path);
53
55 void updateControls();
56
58 void updateRequestedKeySize() const;
59
61 void logLevelChanged();
62
67 bool isModified() const;
68
73 bool isDefault() const;
74
78 void resetToDefault();
79
84 void setButtonBoxEnabledButtons() const;
85
86 bool m_interfaceSetOnLoad = false;
87 std::unique_ptr<Ui::SettingsDialog> ui;
88 const ServerConfig &m_serverConfig;
89 SettingsDialogButtonBox *m_buttonBox = nullptr;
90};
Definition ServerConfig.h:25
Definition SettingsDialogButtonBox.h:15
void requestRemoveAllSettings()
~SettingsDialog() override
void changeEvent(QEvent *e) override
Definition SettingsDialog.cpp:88
SettingsDialog(QWidget *parent, const ServerConfig &serverConfig)
Definition SettingsDialog.cpp:27
Definition AboutDialog.h:13