Poco::OSP

class PreferencesEvent

File Information

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

Description

The PreferencesEvent class holds information about a changed property in a Preferences object.

Member Summary

Member Functions: name, newValue, oldValue, operator =, swap

Constructors

PreferencesEvent

PreferencesEvent(
    const PreferencesEvent & event
);

Creates the PreferencesEvent by copying another one.

PreferencesEvent

PreferencesEvent(
    const std::string & name,
    const std::string & oldValue,
    const std::string & newValue
);

Creates the PreferencesEvent.

Destructor

~PreferencesEvent

~PreferencesEvent();

Destroys the PreferencesEvent.

Member Functions

name inline

const std::string & name() const;

Returns the name of the changed property.

newValue inline

const std::string & newValue() const;

Returns the value of the property after the change.

oldValue inline

const std::string & oldValue() const;

Returns the value of the property before the change.

operator =

PreferencesEvent & operator = (
    const PreferencesEvent & event
);

Assignment operator.

swap

void swap(
    PreferencesEvent & event
);

Swaps the event's state with another one.