[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:
Klaus Basan
2020-03-18 23:15:43 +01:00
committed by Mat Sutcliffe
parent 80e97f749f
commit fd3ad207bd
6 changed files with 80 additions and 1 deletions

View File

@@ -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;
};