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...
bool isDisposed () const

Private Attributes

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

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 70 of file configurationlistener.hxx.

virtual comphelper::ConfigurationListener::~ConfigurationListener ( )

Definition at line 78 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 237 of file configuration.cxx.

References dispose().

bool comphelper::ConfigurationListener::isDisposed ( ) const

Definition at line 99 of file configurationlistener.hxx.

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

Notify of the property change.

Definition at line 242 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 find(), and comphelper::ConfigurationListenerPropertyBase::maName.

Member Data Documentation

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

Definition at line 66 of file configurationlistener.hxx.

bool comphelper::ConfigurationListener::mbDisposed

Definition at line 67 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: