mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-22 13:15:39 +08:00
[XSwiftBus] Allow to write an updated xswiftbus.conf file
In a distributed core/UI swift we need to write on XPlane side
This commit is contained in:
committed by
Mat Sutcliffe
parent
80e97f749f
commit
fd3ad207bd
@@ -45,6 +45,9 @@ namespace XSwiftBus
|
||||
//! Get settings from xswiftbus.conf (needed during plugin initialization)
|
||||
virtual const CConfig &getConfig() const = 0;
|
||||
|
||||
//! Write a config file with these new values
|
||||
virtual bool writeConfig(bool tcas, bool debug) = 0;
|
||||
|
||||
protected:
|
||||
//! Destructor
|
||||
~CSettingsProvider() = default;
|
||||
@@ -73,6 +76,9 @@ namespace XSwiftBus
|
||||
//! \copydoc CSettingsProvider::getConfig
|
||||
const CConfig &getConfig() const;
|
||||
|
||||
//! \copydoc CSettingsProvider::writeConfig
|
||||
bool writeConfig(bool tcas, bool debug);
|
||||
|
||||
private:
|
||||
CSettingsProvider *m_provider = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user