swift
dbusserveraddressselector.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_DBUSSERVERADDRESSSELECTOR_H
7 #define SWIFT_GUI_COMPONENTS_DBUSSERVERADDRESSSELECTOR_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
12 #include "gui/swiftguiexport.h"
13 
14 namespace Ui
15 {
16  class CDBusServerAddressSelector;
17 }
18 namespace swift::gui::components
19 {
22  {
23  Q_OBJECT
24 
25  public:
27  explicit CDBusServerAddressSelector(QWidget *parent = nullptr);
28 
30  virtual ~CDBusServerAddressSelector() override;
31 
33  QString getP2PAddress() const;
34 
36  QString getDBusAddress() const;
37 
39  QStringList getDBusCmdLineArgs() const;
40 
42  bool isP2P() const;
43 
45  void setDefaultP2PAddress(const QString &address);
46 
48  void set(const QString &dBus);
49 
51  void setSystemDBusVisible(bool visible);
52 
54  void setP2PDBusVisible(bool visible);
55 
57  void setForXSwiftBus();
58 
59  signals:
62 
63  private:
64  QScopedPointer<Ui::CDBusServerAddressSelector> ui;
65 
67  void onRadioButtonReleased();
68  };
69 } // namespace swift::gui::components
70 #endif // SWIFT_GUI_COMPONENTS_DBUSSERVERADDRESSSELECTOR_H
Select DBus address such as session P2P, ...
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.