10#ifndef INCLUDED_COMPHELPER_CONFIGURATIONLISTENER_HXX
11#define INCLUDED_COMPHELPER_CONFIGURATIONLISTENER_HXX
15#include <com/sun/star/beans/XPropertySet.hpp>
16#include <com/sun/star/beans/XPropertyChangeListener.hpp>
27class ConfigurationListener;
44 virtual void setProperty(
const css::uno::Any &aProperty)
override
55 const OUString &rProp );
66 css::uno::Reference< css::beans::XPropertySet >
mxConfig;
67 std::vector< ConfigurationListenerPropertyBase * >
maListeners;
72 css::uno::Reference< css::uno::XComponentContext >
75 css::
uno::UNO_QUERY_THROW )
94 virtual void SAL_CALL disposing(css::lang::EventObject
const &)
override;
97 virtual void SAL_CALL propertyChange(
98 css::beans::PropertyChangeEvent
const &rEvt )
override;
virtual ~ConfigurationListenerPropertyBase()
rtl::Reference< ConfigurationListener > mxListener
virtual void setProperty(const css::uno::Any &aProperty)=0
Access to this class must be protected by the SolarMutex.
virtual ~ConfigurationListenerProperty() override
ConfigurationListenerProperty(const rtl::Reference< ConfigurationListener > &xListener, const OUString &rProp)
Provide a mirror of the configmgr's version of this property for the lifecycle of this property.
virtual void setProperty(const css::uno::Any &aProperty) override
css::uno::Reference< css::beans::XPropertySet > mxConfig
std::vector< ConfigurationListenerPropertyBase * > maListeners
ConfigurationListener(const OUString &rPath, css::uno::Reference< css::uno::XComponentContext > const &xContext=comphelper::getProcessComponentContext())
Public health warning, you -must- dispose this if you use it.
virtual ~ConfigurationListener() override
#define COMPHELPER_DLLPUBLIC
Reference< script::XScriptListener > mxListener
void addListener(const InterfaceRef &xObject, const css::uno::Reference< css::lang::XEventListener > &xListener)
void removeListener(const InterfaceRef &xObject, const css::uno::Reference< css::lang::XEventListener > &xListener)
Reference< XComponentContext > getProcessComponentContext()
This function gets the process service factory's default component context.
EConfigurationModes
specify all possible modes, which can be used to open a configuration access.