mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
[XSwiftBus] Add hasMultiplayerPlanesAquired() DBus API
This function will return whether X-Plane multiplayer planes have been acquired by XSwiftBus or if not, who else acquired them.
This commit is contained in:
committed by
Klaus Basan
parent
55c2e2e559
commit
49bd38d722
@@ -99,6 +99,13 @@ namespace BlackSimPlugin
|
||||
QList<bool> idents; //!< List of active idents
|
||||
};
|
||||
|
||||
//! Multiplayer Acquire Info
|
||||
struct MultiplayerAcquireInfo
|
||||
{
|
||||
bool hasAcquired; //!< Has XSwiftBus acquired multiplayer planes?
|
||||
QString owner; //!< Name of the plugin having multiplayer planes acquired
|
||||
};
|
||||
|
||||
/*!
|
||||
* Proxy object connected to a real XSwiftBus::CTraffic object via DBus
|
||||
*/
|
||||
@@ -145,6 +152,9 @@ namespace BlackSimPlugin
|
||||
void remoteAircraftAddingFailed(const QString &callsign);
|
||||
|
||||
public slots:
|
||||
//! \copydoc XSwiftBus::CTraffic::acquireMultiplayerPlanes
|
||||
MultiplayerAcquireInfo acquireMultiplayerPlanes();
|
||||
|
||||
//! \copydoc XSwiftBus::CTraffic::initialize
|
||||
bool initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user