swift
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"
15 
16 namespace Ui
17 {
18  class CSettingsNetworkServersComponent;
19 }
20 namespace swift::gui::components
21 {
24  {
25  Q_OBJECT
26 
27  public:
29  explicit CSettingsNetworkServersComponent(QWidget *parent = nullptr);
30 
33 
34  private:
36  void reloadSettings();
37 
39  void serverSelected(const QModelIndex &index);
40 
42  void alterTrafficServer();
43 
44  QScopedPointer<Ui::CSettingsNetworkServersComponent> ui;
46  this, &CSettingsNetworkServersComponent::reloadSettings
47  };
48  };
49 } // namespace swift::gui::components
50 
51 #endif // SWIFT_GUI_COMPONENTS_SETTINGSNETWORKSERVERSCOMPONENT_H
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.