mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 13:35:34 +08:00
Ref T709, send XSwiftBusSettings when driver is connected
* send from swift -> XPlane side * also send if settings on swift side are updated
This commit is contained in:
committed by
Mat Sutcliffe
parent
42eb5477ec
commit
f2bf038501
@@ -225,11 +225,14 @@ namespace BlackSimPlugin
|
||||
|
||||
//! Send/receive settings @{
|
||||
bool sendXSwiftBusSettings();
|
||||
bool receiveXSwiftBusSettings();
|
||||
BlackMisc::Simulation::Settings::CXSwiftBusSettings receiveXSwiftBusSettings(bool &ok);
|
||||
//! @}
|
||||
|
||||
//! Settings have changed
|
||||
void onXSwiftBusSettingsChanged();
|
||||
|
||||
DBusMode m_dbusMode;
|
||||
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TXSwiftBusSettings> m_xSwiftBusServerSettings { this };
|
||||
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TXSwiftBusSettings> m_xSwiftBusServerSettings { this, &CSimulatorXPlane::onXSwiftBusSettingsChanged };
|
||||
static constexpr qint64 TimeoutAdding = 10000;
|
||||
QDBusConnection m_dBusConnection { "default" };
|
||||
QDBusServiceWatcher *m_watcher { nullptr };
|
||||
|
||||
Reference in New Issue
Block a user