mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-05-02 20:49:42 +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;
|
_mode = mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ISettings::clearCache() {
|
||||||
|
_cache.clear();
|
||||||
|
}
|
||||||
|
|
||||||
SettingsSaveMode ISettings::getMode() const {
|
SettingsSaveMode ISettings::getMode() const {
|
||||||
return _mode;
|
return _mode;
|
||||||
}
|
}
|
||||||
|
@ -151,6 +151,10 @@ protected:
|
|||||||
*/
|
*/
|
||||||
virtual void setValueImplementation(const QString key, const QVariant& value) = 0;
|
virtual void setValueImplementation(const QString key, const QVariant& value) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief clearCache This method clear all data from cache.
|
||||||
|
*/
|
||||||
|
void clearCache();
|
||||||
private:
|
private:
|
||||||
SettingsSaveMode _mode = SettingsSaveMode::Auto;
|
SettingsSaveMode _mode = SettingsSaveMode::Auto;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user