mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-29 19:24:40 +00:00
added clear cache method to isettings interface
This commit is contained in:
parent
bf0283a8c2
commit
2464bf55cf
@ -17,6 +17,10 @@ ISettings::ISettings(SettingsSaveMode mode) {
|
||||
_mode = mode;
|
||||
}
|
||||
|
||||
void ISettings::clearCache() {
|
||||
_cache.clear();
|
||||
}
|
||||
|
||||
SettingsSaveMode ISettings::getMode() const {
|
||||
return _mode;
|
||||
}
|
||||
|
@ -151,6 +151,10 @@ protected:
|
||||
*/
|
||||
virtual void setValueImplementation(const QString key, const QVariant& value) = 0;
|
||||
|
||||
/**
|
||||
* @brief clearCache This method clear all data from cache.
|
||||
*/
|
||||
void clearCache();
|
||||
private:
|
||||
SettingsSaveMode _mode = SettingsSaveMode::Auto;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user