Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which supports weak mechanism to be held weakly (supporting css::uno::XWeak through cppu::OWeakAggObject).
More...
|
virtual css::uno::Any | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE throw (css::uno::RuntimeException, std::exception) |
|
virtual css::uno::Any | queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE throw (css::uno::RuntimeException, std::exception) |
|
virtual void | acquire () SAL_OVERRIDE throw () |
| If a delegator is set, then the delegators gets acquired. More...
|
|
virtual void | release () SAL_OVERRIDE throw () |
| If a delegator is set, then the delegators gets released. More...
|
|
virtual css::uno::Sequence< css::uno::Type > | getTypes () SAL_OVERRIDE throw (css::uno::RuntimeException, std::exception) |
|
virtual css::uno::Sequence< sal_Int8 > | getImplementationId () SAL_OVERRIDE throw (css::uno::RuntimeException, std::exception) |
|
| OWeakAggObject () |
| Constructor. More...
|
|
virtual css::uno::Any | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE throw (css::uno::RuntimeException, std::exception) |
| If a delegator is set, then the delegator is queried for the demanded interface. More...
|
|
virtual void | setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE throw (css::uno::RuntimeException, std::exception) |
| Set the delegator. More...
|
|
virtual css::uno::Any | queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE throw (css::uno::RuntimeException, std::exception) |
| Called by the delegator or queryInterface. More...
|
|
| OWeakObject () |
| Default Constructor. More...
|
|
| OWeakObject (const OWeakObject &rObj) |
| Dummy copy constructor. More...
|
|
OWeakObject & | operator= (const OWeakObject &) |
| Dummy assignment operator. More...
|
|
virtual css::uno::Reference< css::uno::XAdapter > | queryAdapter () SAL_OVERRIDE throw (css::uno::RuntimeException, std::exception) |
| XWeak::queryAdapter() implementation. More...
|
|
| operator css::uno::Reference< css::uno::XInterface > () |
| Cast operator to XInterface reference. More...
|
|
template<class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6>
class cppu::WeakAggImplHelper6< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6 >
Implementation helper implementing interfaces css::lang::XTypeProvider and css::uno::XInterface which supports weak mechanism to be held weakly (supporting css::uno::XWeak through cppu::OWeakAggObject).
In addition, it supports also aggregation meaning object of this class can be aggregated (css::uno::XAggregation through cppu::OWeakAggObject). If a delegator is set (this object is aggregated), then incoming queryInterface() calls are delegated to the delegator object. If the delegator does not support the demanded interface, it calls queryAggregation() on its aggregated objects.
- Derive:
Inherit from this class giving your interface(s) to be implemented as template argument(s). Your sub class defines method implementations for these interface(s).
template<class Ifc1 , class Ifc2 , class Ifc3 , class Ifc4 , class Ifc5 , class Ifc6 >
template<class Ifc1 , class Ifc2 , class Ifc3 , class Ifc4 , class Ifc5 , class Ifc6 >