LibreOffice Module unotools (master) 1
|
is a class which controls lifetime of a UNO component via ->XCloseable::close More...
#include <sharedunocomponent.hxx>
Public Member Functions | |
CloseableComponent (const css::uno::Reference< css::uno::XInterface > &_rxComponent) | |
constructs a ->CloseableComponent instance More... | |
~CloseableComponent () | |
destroys resources associated with this instance, and disposes the component More... | |
Private Member Functions | |
CloseableComponent (const CloseableComponent &)=delete | |
CloseableComponent & | operator= (const CloseableComponent &)=delete |
Private Attributes | |
::rtl::Reference< CloseableComponentImpl > | m_pImpl |
Our IMPL class. More... | |
is a class which controls lifetime of a UNO component via ->XCloseable::close
You'll usually never use this class directly, but only as parameter for a ->SharedUNOComponent class.
Definition at line 77 of file sharedunocomponent.hxx.
utl::CloseableComponent::CloseableComponent | ( | const css::uno::Reference< css::uno::XInterface > & | _rxComponent | ) |
constructs a ->CloseableComponent instance
_rxComponent | the component whose life time should be controlled by the instance. Must not be <NULL>. |
utl::CloseableComponent::~CloseableComponent | ( | ) |
destroys resources associated with this instance, and disposes the component
The component is queried for ->XCloseable (which must be supported), and ->XCloseable::close is invoked, with delivering the ownership. If the invocation fails with a ->CloseVetoException, this is ignored, since in this case the vetoing instance took the ownership.
Any other failure will be reported in a debug version via assertion mechanisms, and silenced in release builds.
Definition at line 191 of file sharedunocomponent.cxx.
References m_pImpl.
|
privatedelete |
|
privatedelete |
|
private |
Our IMPL class.
Definition at line 82 of file sharedunocomponent.hxx.
Referenced by ~CloseableComponent().