20#ifndef INCLUDED_COMPHELPER_COMPONENTBASE_HXX
21#define INCLUDED_COMPHELPER_COMPONENTBASE_HXX
43 :m_rBHelper( _rBHelper )
44 ,m_bInitialized( false )
56 :m_rBHelper( _rBHelper )
57 ,m_bInitialized( true )
78 void checkInitialized( GuardAccess )
const;
84 ::osl::Mutex&
getMutex() {
return m_rBHelper.rMutex; }
96 static css::uno::Reference< css::uno::XInterface >
bool impl_isDisposed() const
determines whether the instance is already disposed
void checkDisposed(GuardAccess) const
checks whether the component is already disposed, throws a DisposedException if so.
void setInitialized()
marks the instance as initialized
::cppu::OBroadcastHelper & m_rBHelper
::cppu::OBroadcastHelper & getBroadcastHelper()
retrieves the component's broadcast helper
ComponentBase(::cppu::OBroadcastHelper &_rBHelper)
creates a ComponentBase instance
void checkInitialized(GuardAccess) const
checks whether the component is already initialized, throws a NotInitializedException if not.
bool impl_isInitialized_nothrow() const
determines whether the component is already initialized
::osl::Mutex & getMutex()
retrieves the component's mutex
ComponentBase(::cppu::OBroadcastHelper &_rBHelper, NoInitializationNeeded)
creates a ComponentBase instance
~ComponentBase() COVERITY_NOEXCEPT_FALSE
::osl::Mutex & getMutex(GuardAccess)
retrieves the component's mutex
osl::ClearableMutexGuard m_aMutexGuard
@ WithoutInit
allow the method to be called without being initialized
@ Default
allow the method to be called only when being initialized and not being disposed
ComponentMethodGuard(ComponentBase &_rComponent, const MethodType _eType=MethodType::Default)
#define COMPHELPER_DLLPUBLIC
void checkDisposed(bool _bThrow)
::osl::Mutex & getMutex()
helper struct to grant access to selected public methods to the ComponentMethodGuard class