Poco::OSP

class Preferences

Library: OSP
Package: PreferencesService
Header: Poco/OSP/Preferences.h

Description

Preferences objects are used by bundles to access their stored preferences.

Inheritance

Direct Base Classes: Poco::Util::AbstractConfiguration

All Base Classes: Poco::RefCountedObject, Poco::Util::AbstractConfiguration

Member Summary

Member Functions: enumerate, getRaw, save, setRaw

Inherited Functions: createView, duplicate, enumerate, expand, getBool, getDouble, getInt, getRaw, getRawString, getString, hasOption, hasProperty, keys, parseBool, parseInt, referenceCount, release, setBool, setDouble, setInt, setRaw, setString

Types

ConstPtr

typedef const Ptr ConstPtr;

Ptr

typedef Poco::AutoPtr < Preferences > Ptr;

Constructors

Preferences

Preferences(
    const std::string & path
);

Creates the Preferences, using the given path.

Destructor

~Preferences protected virtual

~Preferences();

Member Functions

save

void save();

Saves the preferences to the file system.

enumerate protected virtual

void enumerate(
    const std::string & key,
    Keys & range
) const;

See also: Poco::Util::AbstractConfiguration::enumerate()

getRaw protected virtual

bool getRaw(
    const std::string & key,
    std::string & value
) const;

See also: Poco::Util::AbstractConfiguration::getRaw()

setRaw protected virtual

void setRaw(
    const std::string & key,
    const std::string & value
);

See also: Poco::Util::AbstractConfiguration::setRaw()

Variables

propertyChanged

Poco::BasicEvent < PreferencesEvent > propertyChanged;

Fired whenever a property is about to be changed.