UDK 3.2.7 C/C++ API Reference
|
Deprecated. More...
#include <component.hxx>
Public Member Functions | |
OComponentHelper (::osl::Mutex &rMutex) throw () | |
Constructor. | |
virtual | ~OComponentHelper () throw (::com::sun::star::uno::RuntimeException) |
Destructor. | |
virtual ::com::sun::star::uno::Any | queryInterface (::com::sun::star::uno::Type const &rType) throw (::com::sun::star::uno::RuntimeException) |
If a delegator is set, then the delegator is queried for the demanded interface. | |
virtual ::com::sun::star::uno::Any | queryAggregation (::com::sun::star::uno::Type const &rType) throw (::com::sun::star::uno::RuntimeException) |
Called by the delegator or queryInterface. | |
virtual void | acquire () throw () |
If a delegator is set, then the delegators gets acquired. | |
virtual void | release () throw () |
If a delegator is set, then the delegators gets released. | |
virtual ::com::sun::star::uno::Sequence < sal_Int8 > | getImplementationId ()=0 throw (::com::sun::star::uno::RuntimeException) |
virtual ::com::sun::star::uno::Sequence < ::com::sun::star::uno::Type > | getTypes () throw (::com::sun::star::uno::RuntimeException) |
virtual void | dispose () throw (::com::sun::star::uno::RuntimeException) |
virtual void | addEventListener (const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > &aListener) throw (::com::sun::star::uno::RuntimeException) |
virtual void | removeEventListener (const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > &aListener) throw (::com::sun::star::uno::RuntimeException) |
Protected Member Functions | |
virtual void | disposing () |
Called in dispose method after the listeners were notified. |
Deprecated.
Helper for implementing ::com::sun::star::lang::XComponent. Upon disposing objects of this class, sub-classes receive a disposing() call. Objects of this class can be held weakly, i.e. by a com::sun::star::uno::WeakReference. Object of this class can be aggregated, i.e. incoming queryInterface() calls are delegated.
cppu::OComponentHelper::OComponentHelper | ( | ::osl::Mutex & | rMutex | ) | throw () |
Constructor.
rMutex | the mutex used to protect multi-threaded access; lifetime must be longer than the lifetime of this object. |
virtual cppu::OComponentHelper::~OComponentHelper | ( | ) | throw (::com::sun::star::uno::RuntimeException) [virtual] |
Destructor.
If this object was not disposed previously, object will be disposed manually.
virtual void cppu::OComponentHelper::acquire | ( | ) | throw () [virtual] |
If a delegator is set, then the delegators gets acquired.
Otherwise call is delegated to base class cppu::OWeakObject.
Reimplemented from cppu::OWeakAggObject.
virtual void cppu::OComponentHelper::addEventListener | ( | const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & | aListener | ) | throw (::com::sun::star::uno::RuntimeException) [virtual] |
virtual void cppu::OComponentHelper::dispose | ( | ) | throw (::com::sun::star::uno::RuntimeException) [virtual] |
virtual void cppu::OComponentHelper::disposing | ( | ) | [protected, virtual] |
Called in dispose method after the listeners were notified.
virtual ::com::sun::star::uno::Sequence< sal_Int8 > cppu::OComponentHelper::getImplementationId | ( | ) | throw (::com::sun::star::uno::RuntimeException) [pure virtual] |
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > cppu::OComponentHelper::getTypes | ( | ) | throw (::com::sun::star::uno::RuntimeException) |
virtual ::com::sun::star::uno::Any cppu::OComponentHelper::queryAggregation | ( | ::com::sun::star::uno::Type const & | rType | ) | throw (::com::sun::star::uno::RuntimeException) |
Called by the delegator or queryInterface.
Re-implement this method instead of queryInterface.
Reimplemented from cppu::OWeakAggObject.
virtual ::com::sun::star::uno::Any cppu::OComponentHelper::queryInterface | ( | ::com::sun::star::uno::Type const & | rType | ) | throw (::com::sun::star::uno::RuntimeException) |
If a delegator is set, then the delegator is queried for the demanded interface.
If the delegator cannot provide the demanded interface, it calls queryAggregation() on its aggregated objects.
rType | demanded interface type |
Reimplemented from cppu::OWeakAggObject.
virtual void cppu::OComponentHelper::release | ( | ) | throw () [virtual] |
If a delegator is set, then the delegators gets released.
Otherwise call is delegated to base class cppu::OWeakObject.
Reimplemented from cppu::OWeakAggObject.
virtual void cppu::OComponentHelper::removeEventListener | ( | const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & | aListener | ) | throw (::com::sun::star::uno::RuntimeException) [virtual] |