mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
[xswiftbus] Replace QtDBus with a libevent driven C++ wrapper on top of libdbus
QtDBus was the main component of xswiftbus' Qt dependency. This is the first preparation step to get xswiftbus Qt free. The new implementation is based on the low level libdbus library, which was also in use by QtDBus itself. But instead of QtDBus, we use now a thin C++ wrapper. To keep DBus handling async, libevent is used to monitor timeouts and fds.
This commit is contained in:
@@ -85,12 +85,12 @@ namespace BlackSimPlugin
|
||||
//! Emitted if an asynchronous method call caused a DBus error
|
||||
BLACK_NO_RELAY void asyncMethodError(QDBusError error);
|
||||
|
||||
//! \copydoc XSwiftBus::CService::aircraftModelChanged
|
||||
//! Own aircraft model changed
|
||||
void aircraftModelChanged(
|
||||
const QString &path, const QString &filename, const QString &livery,
|
||||
const QString &icao, const QString &modelString, const QString &name, const QString &description);
|
||||
|
||||
//! \copydoc XSwiftBus::CService::airportsInRangeUpdated
|
||||
//! Airports in range are updated
|
||||
void airportsInRangeUpdated(const QStringList &icaoCodes, const QStringList &names, const QList<double> &lats, const QList<double> &lons, const QList<double> &alts);
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -58,11 +58,11 @@ namespace BlackSimPlugin
|
||||
bool isValid() const { return m_dbusInterface->isValid(); }
|
||||
|
||||
signals:
|
||||
//! \copydoc XSwiftBus::CTraffic::simFrame
|
||||
//! Simulator frame
|
||||
//! \remark from simulator to driver
|
||||
void simFrame();
|
||||
|
||||
//! \copydoc XSwiftBus::CTraffic::remoteAircraftData
|
||||
//! Remote aircraft data
|
||||
//! \remark from simulator to driver for elevation and CG
|
||||
void remoteAircraftData(const QString &callsign, double latitudeDeg, double longitudeDeg, double elevationMeters, double modelVerticalOffsetMeters);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user