swift
xswiftbusconfigwriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_SIMULATION_XPLANE_XSWIFTBUSCONFIGWRITER_H
7 #define SWIFT_MISC_SIMULATION_XPLANE_XSWIFTBUSCONFIGWRITER_H
8 
9 #include <QObject>
10 
11 #include "misc/swiftmiscexport.h"
12 
13 namespace swift::misc::simulation::xplane
14 {
17  {
18  Q_OBJECT
19 
20  public:
22  CXSwiftBusConfigWriter(QObject *parent = nullptr);
23 
25  void setDBusAddress(const QString &dBusAddress);
26 
28  void setDebugMode(bool on);
29 
31  void setTcasEnabled(bool on);
32 
34  void updateInAllXPlaneVersions();
35 
37  void updateInXPlane9();
38 
40  void updateInXPlane10();
41 
43  void updateInXPlane11();
44 
46  void writeTo(const QString &filePath);
47 
48  private:
49  QString m_dbusMode = "p2p";
50  QString m_dbusAddress = "127.0.0.1";
51  QString m_dbusPort = "45001";
52  bool m_debug = false;
53  bool m_tcas = true;
54  };
55 } // namespace swift::misc::simulation::xplane
56 
57 #endif // SWIFT_MISC_SIMULATION_XPLANE_XSWIFTBUSCONFIGWRITER_H
#define SWIFT_MISC_EXPORT
Export a class or function from the library.