InMemorySettings.h header
#include <ew/app/InMemorySettings.h>
Namespace ew::app
InMemorySettings class
class ew::app::InMemorySettings
A non-persistent Settings implementation backed by an in-memory map. Used in tests and as a default before a persistent (OS-backed) store is configured.
Members
std::optional< QString > ew::app::InMemorySettings::value(QStringView key) const override
Returns the value stored for key, or std::nullopt if none is set.
void ew::app::InMemorySettings::setValue(QStringView key, const QString &value) override
Stores value under key, replacing any existing value.
bool ew::app::InMemorySettings::contains(QStringView key) const override
Returns true if a value is stored for key.
void ew::app::InMemorySettings::remove(QStringView key) override
Removes the value stored for key, if any.