swift
src
gui
components
settingsnetworkserverscomponent.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6
#ifndef SWIFT_GUI_COMPONENTS_SETTINGSNETWORKSERVERSCOMPONENT_H
7
#define SWIFT_GUI_COMPONENTS_SETTINGSNETWORKSERVERSCOMPONENT_H
8
9
#include <QFrame>
10
#include <QObject>
11
#include <QScopedPointer>
12
13
#include "
gui/swiftguiexport.h
"
14
#include "
misc/network/settings/serversettings.h
"
15
16
namespace
Ui
17
{
18
class
CSettingsNetworkServersComponent;
19
}
20
namespace
swift::gui::components
21
{
23
class
SWIFT_GUI_EXPORT
CSettingsNetworkServersComponent
:
public
QFrame
24
{
25
Q_OBJECT
26
27
public
:
29
explicit
CSettingsNetworkServersComponent
(
QWidget
*parent =
nullptr
);
30
32
virtual
~
CSettingsNetworkServersComponent
();
33
34
private
:
36
void
reloadSettings();
37
39
void
serverSelected(
const
QModelIndex
&index);
40
42
void
alterTrafficServer();
43
44
QScopedPointer<Ui::CSettingsNetworkServersComponent>
ui;
45
swift::misc::CSetting<swift::misc::network::settings::TTrafficServers>
m_trafficNetworkServers {
46
this
, &CSettingsNetworkServersComponent::reloadSettings
47
};
48
};
49
}
// namespace swift::gui::components
50
51
#endif
// SWIFT_GUI_COMPONENTS_SETTINGSNETWORKSERVERSCOMPONENT_H
swift::gui::components::CSettingsNetworkServersComponent
Settings for network servers.
Definition:
settingsnetworkserverscomponent.h:24
swift::misc::CSetting< swift::misc::network::settings::TTrafficServers >
swift::gui::components
High level reusable GUI components.
Definition:
aboutdialog.cpp:13
QFrame
QModelIndex
QScopedPointer< Ui::CSettingsNetworkServersComponent >
QWidget
serversettings.h
swiftguiexport.h
SWIFT_GUI_EXPORT
#define SWIFT_GUI_EXPORT
Export a class or function from the library.
Definition:
swiftguiexport.h:19
Generated on Wed Sep 3 2025 21:41:18 for swift by
1.9.1