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