LibreOffice Module comphelper (master)  1
Public Member Functions | Private Attributes | List of all members
comphelper::ConfigurationListener Class Reference

#include <configurationlistener.hxx>

Inheritance diagram for comphelper::ConfigurationListener:
Collaboration diagram for comphelper::ConfigurationListener:

Public Member Functions

 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. More...
virtual ~ConfigurationListener () override
void addListener (ConfigurationListenerPropertyBase *pListener)
 Listen for the specific property denoted by the listener. More...
void removeListener (ConfigurationListenerPropertyBase *pListener)
 Stop listening. More...
void dispose ()
 Release various circular references. More...
virtual void SAL_CALL disposing (css::lang::EventObject const &) override
virtual void SAL_CALL propertyChange (css::beans::PropertyChangeEvent const &rEvt) override
 Notify of the property change. More...

Private Attributes

css::uno::Reference< css::beans::XPropertySetmxConfig
std::vector< ConfigurationListenerPropertyBase * > maListeners

Detailed Description

Definition at line 62 of file configurationlistener.hxx.

Constructor & Destructor Documentation

comphelper::ConfigurationListener::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.

Definition at line 69 of file configurationlistener.hxx.

virtual comphelper::ConfigurationListener::~ConfigurationListener ( )

Definition at line 76 of file configurationlistener.hxx.

References dispose().

Member Function Documentation

void comphelper::ConfigurationListener::addListener ( ConfigurationListenerPropertyBase pListener)

Listen for the specific property denoted by the listener.

Definition at line 209 of file configuration.cxx.

References comphelper::ConfigurationListenerPropertyBase::maName, and comphelper::ConfigurationListenerPropertyBase::setProperty().

void comphelper::ConfigurationListener::dispose ( void  )

Release various circular references.

Definition at line 226 of file configuration.cxx.

void SAL_CALL comphelper::ConfigurationListener::disposing ( css::lang::EventObject const &  )

Definition at line 236 of file configuration.cxx.

References dispose().

void SAL_CALL comphelper::ConfigurationListener::propertyChange ( css::beans::PropertyChangeEvent const &  rEvt)

Notify of the property change.

Definition at line 241 of file configuration.cxx.

References assert(), and comphelper::SolarMutex::get().

void comphelper::ConfigurationListener::removeListener ( ConfigurationListenerPropertyBase pListener)

Stop listening.

Definition at line 216 of file configuration.cxx.

References comphelper::ConfigurationListenerPropertyBase::maName.

Member Data Documentation

std::vector< ConfigurationListenerPropertyBase * > comphelper::ConfigurationListener::maListeners

Definition at line 66 of file configurationlistener.hxx.

css::uno::Reference< css::beans::XPropertySet > comphelper::ConfigurationListener::mxConfig

Definition at line 65 of file configurationlistener.hxx.

The documentation for this class was generated from the following files: