<html> <head> <title>class OComponentHelper</title> <link rel="stylesheet" type="text/css" href="../../cpp.css"> </head> <body> <div id="adc-cppref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="1" cellspacing="0"> <tr align="center" valign="top"> <td class="navimain"> <a href="../../index.html">Overview</a> </td> <td class="navimain"> <a href="index.html">Namespace</a> </td> <td class="navimainself"> Class </td> <td class="navimain"> <a href="../../index-files/index-1.html">Index</a> </td> <td class="navimain"> <a href="../../help.html">Help</a> </td> </tr> </table> <table class="navisub" cellpadding="0" cellspacing="3"> <tr> <td width="20%"><font size="-2">PUBLIC MEMBERS:</font></td> <td> <font size="-2">CLASSES</font> | <font size="-2">STRUCTS</font> | <font size="-2">UNIONS</font> | <font size="-2">ENUMS</font> | <font size="-2">TYPEDEFS</font> | <a href="#publ_ops"><font size="-2"><b>METHODS</b></font></a> | <font size="-2">STATIC METHODS</font> | <font size="-2">DATA</font> | <font size="-2">STATIC DATA</font></td> </tr> <tr> <td width="20%"><font size="-2">PROTECTED MEMBERS:</font></td> <td> <font size="-2">CLASSES</font> | <font size="-2">STRUCTS</font> | <font size="-2">UNIONS</font> | <font size="-2">ENUMS</font> | <font size="-2">TYPEDEFS</font> | <a href="#prot_ops"><font size="-2"><b>METHODS</b></font></a> | <font size="-2">STATIC METHODS</font> | <font size="-2">DATA</font> | <font size="-2">STATIC DATA</font></td> </tr> </table> <hr> <a href="../../names/index.html" alt="Global Namespace in C++"><font size="+1"><b>::</b></font></a> <a href="index.html" alt="namespace"><font size="+1"><b>cppu</b></font></a><font size="+1"> :: </font><div class="title"><h2>class OComponentHelper</h2> </div><hr> <dl> <dt>Base Classes</dt> <dd><pre style="font-family:monospace;"> <span class="btpubl">com::sun::star::uno::<a href="../../../../common/ref/com/sun/star/uno/XWeak.html">XWeak</a> (public)</span> | +--<span class="btpubl">cppu::<a href="c-OWeakObject.html">OWeakObject</a> (public)</span> | | <span class="btpubl">com::sun::star::uno::<a href="../../../../common/ref/com/sun/star/uno/XAggregation.html">XAggregation</a> (public)</span> | | +----+--<span class="btpubl">cppu::<a href="c-OWeakAggObject.html">OWeakAggObject</a> (public)</span> | | <span class="btpubl">com::sun::star::lang::<a href="../../../../common/ref/com/sun/star/lang/XTypeProvider.html">XTypeProvider</a> (public)</span> | | | | <span class="btpubl">com::sun::star::lang::<a href="../../../../common/ref/com/sun/star/lang/XComponent.html">XComponent</a> (public)</span> | | | +----+----+--<span class="btself">OComponentHelper</span> </pre></dd> </dl> <dl> <dt>Known Derived Classes</dt> <dd>None.</dd> </dl> <br> <table class="flag-table" border="1" cellspacing="0"> <tr> <td width="25%" class="flagname">virtual</td> <td width="25%" class="flagname">abstract</td> <td width="25%" class="flagname">interface</td> <td width="25%" class="flagname">template</td> </tr> <tr> <td class="flagyes">YES</td> <td class="flagyes">YES</td> <td class="flagyes">YES</td> <td class="flagno">NO</td> </tr> </table> <dl> <dt><strong>D E P R E C A T E D</strong></dt> <dt>Description</dt> <dd><pre>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. </pre></dd> <dt class="attention">ATTENTION!</dt> <dd><pre> The life-cycle of the passed mutex reference has to be longer than objects of this class. </pre></dd> </dl> <dl> <dt>File</dt> <dd>component.hxx</dd> </dl> <hr> <dl> <dt class="subtitle"><a name="publ_"><h3>Public Members</h3> </a></dt> <dd><a name="publ_ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%"> <tr class="subtitle"> <td colspan="2"><h4>Methods</h4> </td> </tr> <tr> <td> <br> <a href="OComponentHelper/o.html#OComponentHelper-4155">OComponentHelper</a>( ::osl::Mutex & rMutex ) throw( );</td> <td width="50%"> Constructor. </td> </tr> <tr> <td>virtual <br> <a href="OComponentHelper/o.html#~OComponentHelper-4156">~OComponentHelper</a>( ) throw( ::com::sun::star::uno::RuntimeException );</td> <td width="50%"> Dewstructor. If this object was not disposed previously, object will be disposed manually. </td> </tr> <tr> <td>virtual ::com::sun::star::uno::Any <br> <a href="OComponentHelper/o.html#queryInterface-4157">queryInterface</a>( const ::com::sun::star::uno::Type & rType ) throw( ::com::sun::star::uno::RuntimeException );</td> <td width="50%"> </td> </tr> <tr> <td>virtual ::com::sun::star::uno::Any <br> <a href="OComponentHelper/o.html#queryAggregation-4158">queryAggregation</a>( const ::com::sun::star::uno::Type & rType ) throw( ::com::sun::star::uno::RuntimeException );</td> <td width="50%"> </td> </tr> <tr> <td>virtual void <br> <a href="OComponentHelper/o.html#acquire-4159">acquire</a>( ) throw( );</td> <td width="50%"> </td> </tr> <tr> <td>virtual void <br> <a href="OComponentHelper/o.html#release-4160">release</a>( ) throw( );</td> <td width="50%"> </td> </tr> <tr> <td>virtual ::com::sun::star::uno::Sequence< sal_Int8 > <br> <a href="OComponentHelper/o.html#getImplementationId-4161">getImplementationId</a>( ) throw( ::com::sun::star::uno::RuntimeException ) = 0;</td> <td width="50%"> </td> </tr> <tr> <td>virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > <br> <a href="OComponentHelper/o.html#getTypes-4162">getTypes</a>( ) throw( ::com::sun::star::uno::RuntimeException );</td> <td width="50%"> </td> </tr> <tr> <td>virtual void <br> <a href="OComponentHelper/o.html#dispose-4163">dispose</a>( ) throw( ::com::sun::star::uno::RuntimeException );</td> <td width="50%"> </td> </tr> <tr> <td>virtual void <br> <a href="OComponentHelper/o.html#addEventListener-4164">addEventListener</a>( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener ) throw( ::com::sun::star::uno::RuntimeException );</td> <td width="50%"> </td> </tr> <tr> <td>virtual void <br> <a href="OComponentHelper/o.html#removeEventListener-4165">removeEventListener</a>( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener ) throw( ::com::sun::star::uno::RuntimeException );</td> <td width="50%"> </td> </tr> </table> <hr> </dd> </dl> <dl> <dt class="subtitle"><a name="prot_"><h3>Protected Members</h3> </a></dt> <dd><a name="prot_ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%"> <tr class="subtitle"> <td colspan="2"><h4>Methods</h4> </td> </tr> <tr> <td>virtual void <br> <a href="OComponentHelper/o.html#disposing-4166">disposing</a>( );</td> <td width="50%"> Called in dispose method after the listeners were notified. </td> </tr> </table> <hr> </dd> </dl> <a href="#_top_" class="objchapter">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p> </div> <!-- id="adc-cppref" --> </body> </html>