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

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

Constructor & Destructor Documentation

◆ ConfigurationListener()

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

References ReadOnly.

◆ ~ConfigurationListener()

virtual comphelper::ConfigurationListener::~ConfigurationListener ( )

Definition at line 79 of file configurationlistener.hxx.

References dispose().

Member Function Documentation

◆ addListener()

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

Listen for the specific property denoted by the listener.

Definition at line 273 of file configuration.cxx.

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

◆ dispose()

void comphelper::ConfigurationListener::dispose ( void  )

Release various circular references.

Definition at line 290 of file configuration.cxx.

◆ disposing()

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

Definition at line 301 of file configuration.cxx.

References dispose().

◆ isDisposed()

bool comphelper::ConfigurationListener::isDisposed ( ) const

Definition at line 100 of file configurationlistener.hxx.

◆ propertyChange()

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

Notify of the property change.

Definition at line 306 of file configuration.cxx.

References comphelper::SolarMutex::get().

◆ removeListener()

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

Stop listening.

Definition at line 280 of file configuration.cxx.

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

Member Data Documentation

◆ maListeners

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

Definition at line 67 of file configurationlistener.hxx.

◆ mbDisposed

bool comphelper::ConfigurationListener::mbDisposed

Definition at line 68 of file configurationlistener.hxx.

◆ mxConfig

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

Definition at line 66 of file configurationlistener.hxx.

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