Deskflow 1.26.0.134
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
13
14namespace Ui {
15class SettingsDialog;
16}
17
18class SettingsDialog : public QDialog
19{
20 Q_OBJECT
21
22public:
23 void extracted();
24 SettingsDialog(QWidget *parent, const ServerConfig &serverConfig);
25 ~SettingsDialog() override;
26
27Q_SIGNALS:
28 void shown();
29
30protected:
31 void changeEvent(QEvent *e) override;
32
33private:
34 void initConnections() const;
35 void regenCertificates();
36 void browseCertificatePath();
37 void browseLogPath();
38 void setLogToFile(bool logToFile);
39 void accept() override;
40 void showEvent(QShowEvent *event) override;
41 bool isClientMode() const;
42 void updateTlsControls();
43 void updateTlsControlsEnabled();
44 void showReadOnlyMessage();
45 void updateText();
46
48 void loadFromConfig();
49
51 void updateKeyLengthOnFile(const QString &path);
52
54 void updateControls();
55
57 void updateRequestedKeySize() const;
58
60 void logLevelChanged();
61
66 bool isModified() const;
67
72 bool isDefault() const;
73
77 void resetToDefault();
78
83 void setButtonBoxEnabledButtons() const;
84
85 bool m_interfaceSetOnLoad = false;
86 std::unique_ptr<Ui::SettingsDialog> ui;
87 const ServerConfig &m_serverConfig;
88};
Definition ServerConfig.h:34
~SettingsDialog() override
void changeEvent(QEvent *e) override
Definition SettingsDialog.cpp:81
SettingsDialog(QWidget *parent, const ServerConfig &serverConfig)
Definition SettingsDialog.cpp:26
Definition AboutDialog.h:13