Library: OSP
Package: PreferencesService
Header: Poco/OSP/Preferences.h
Preferences objects are used by bundles to access their stored preferences.
Direct Base Classes: Poco::Util::AbstractConfiguration
All Base Classes: Poco::RefCountedObject, Poco::Util::AbstractConfiguration
Member Functions: enumerate, getRaw, removeRaw, save, setRaw
Inherited Functions: createView, duplicate, enumerate, expand, getBool, getDouble, getInt, getRaw, getRawString, getString, has, hasOption, hasProperty, keys, parseBool, parseInt, referenceCount, release, remove, removeRaw, setBool, setDouble, setInt, setRaw, setRawWithEvent, setString
typedef Poco::AutoPtr < Preferences > Ptr;
Preferences(
const std::string & path
);
Creates the Preferences, using the given path.
~Preferences();
void save();
Saves the preferences to the file system.
void enumerate(
const std::string & key,
Keys & range
) const;
bool getRaw(
const std::string & key,
std::string & value
) const;
void removeRaw(
const std::string & key
);
void setRaw(
const std::string & key,
const std::string & value
);
Poco::BasicEvent < PreferencesEvent > propertyChanged;
Fired whenever a property is about to be changed.