swift
settingsxswiftbuscomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2017 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_SETTINGSXSWIFTBUSCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_SETTINGSXSWIFTBUSCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
12 #include "gui/swiftguiexport.h"
13 #include "misc/logcategories.h"
14 #include "misc/settingscache.h"
16 
17 namespace Ui
18 {
19  class CSettingsXSwiftBusComponent;
20 }
21 namespace swift::gui::components
22 {
27  {
28  Q_OBJECT
29 
30  public:
32  static const QStringList &getLogCategories();
33 
35  explicit CSettingsXSwiftBusComponent(QWidget *parent = nullptr);
36 
38  virtual ~CSettingsXSwiftBusComponent() override;
39 
40  private:
41  QScopedPointer<Ui::CSettingsXSwiftBusComponent> ui;
43 
44  void resetServer();
45  void saveServer();
46  };
47 } // namespace swift::gui::components
48 #endif // SWIFT_GUI_COMPONENTS_SETTINGSXSWIFTBUSCOMPONENT_H
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.