mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Ref T709 Encapsulate the CSettingsProvider pointer in a CSettingsAware base class.
This commit is contained in:
@@ -39,5 +39,19 @@ namespace XSwiftBus
|
||||
m_pluginSettings = settings;
|
||||
}
|
||||
|
||||
CSettingsAware::CSettingsAware(CSettingsProvider *provider) : m_provider(provider)
|
||||
{
|
||||
// void
|
||||
}
|
||||
|
||||
CSettings CSettingsAware::getSettings() const
|
||||
{
|
||||
return m_provider->getSettings();
|
||||
}
|
||||
|
||||
void CSettingsAware::setSettings(const CSettings &settings)
|
||||
{
|
||||
m_provider->setSettings(settings);
|
||||
}
|
||||
} // ns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user