mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
[XSwiftBus] Add getVersionNumber to DBus API
This allows to get the version number of XSwiftBus itself. It maintains the same version as swift (e.g. 0.8.7 without the time stamp) and can be used to compare it for compatibility reasons. ref T394
This commit is contained in:
committed by
Klaus Basan
parent
e959075a56
commit
55c2e2e559
@@ -39,6 +39,11 @@ namespace BlackSimPlugin
|
||||
}
|
||||
}
|
||||
|
||||
QString CXSwiftBusServiceProxy::getVersionNumber()
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<QString>(QLatin1String("getVersionNumber"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::getOwnAircraftSituationData(XPlaneData *o_xplaneData)
|
||||
{
|
||||
QPointer<CXSwiftBusServiceProxy> myself(this);
|
||||
|
||||
@@ -96,6 +96,9 @@ namespace BlackSimPlugin
|
||||
void airportsInRangeUpdated(const QStringList &icaoCodes, const QStringList &names, const QList<double> &lats, const QList<double> &lons, const QList<double> &alts);
|
||||
|
||||
public slots:
|
||||
//! Get XSwiftBus version number
|
||||
QString getVersionNumber();
|
||||
|
||||
//! Get own aircraft situation data
|
||||
void getOwnAircraftSituationData(XPlaneData *o_xplaneData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user