LibreOffice Module unotools (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
utl::CloseableComponent Class Reference

is a class which controls lifetime of a UNO component via ->XCloseable::close More...

#include <sharedunocomponent.hxx>

Collaboration diagram for utl::CloseableComponent:
[legend]

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
 
CloseableComponentoperator= (const CloseableComponent &)=delete
 

Private Attributes

::rtl::Reference< CloseableComponentImplm_pImpl
 Our IMPL class. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CloseableComponent() [1/2]

utl::CloseableComponent::CloseableComponent ( const css::uno::Reference< css::uno::XInterface > &  _rxComponent)

constructs a ->CloseableComponent instance

Parameters
_rxComponentthe component whose life time should be controlled by the instance. Must not be <NULL>.

◆ ~CloseableComponent()

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.

◆ CloseableComponent() [2/2]

utl::CloseableComponent::CloseableComponent ( const CloseableComponent )
privatedelete

Member Function Documentation

◆ operator=()

CloseableComponent & utl::CloseableComponent::operator= ( const CloseableComponent )
privatedelete

Member Data Documentation

◆ m_pImpl

::rtl::Reference< CloseableComponentImpl > utl::CloseableComponent::m_pImpl
private

Our IMPL class.

Definition at line 82 of file sharedunocomponent.hxx.

Referenced by ~CloseableComponent().


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