Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
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
12
#include "
gui/config/ServerConfig.h
"
13
14
class
SettingsDialogButtonBox
;
15
16
namespace
Ui
{
17
class
SettingsDialog;
18
}
19
20
class
SettingsDialog
:
public
QDialog
21
{
22
Q_OBJECT
23
24
public
:
25
void
extracted
();
26
SettingsDialog
(QWidget *parent,
const
ServerConfig
&serverConfig);
27
~SettingsDialog
()
override
;
28
29
Q_SIGNALS:
30
void
requestRemoveAllSettings
();
31
32
protected
:
33
void
changeEvent
(QEvent *e)
override
;
34
35
private
:
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
};
ServerConfig.h
ServerConfig
Definition
ServerConfig.h:25
SettingsDialogButtonBox
Definition
SettingsDialogButtonBox.h:15
SettingsDialog::extracted
void extracted()
SettingsDialog::requestRemoveAllSettings
void requestRemoveAllSettings()
SettingsDialog::~SettingsDialog
~SettingsDialog() override
SettingsDialog::changeEvent
void changeEvent(QEvent *e) override
Definition
SettingsDialog.cpp:88
SettingsDialog::SettingsDialog
SettingsDialog(QWidget *parent, const ServerConfig &serverConfig)
Definition
SettingsDialog.cpp:27
Ui
Definition
AboutDialog.h:13
src
lib
gui
dialogs
SettingsDialog.h
Generated by
1.18.0