summaryrefslogtreecommitdiff
path: root/cppuhelper/inc/cppuhelper/compbase2.hxx
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2001-05-14 10:58:06 +0000
committerDaniel Boelzle <dbo@openoffice.org>2001-05-14 10:58:06 +0000
commit94efb043e4b6ca43a3b545cd3a05ef7b9fe7f5a9 (patch)
tree2d6b83bb804b1b3b8cfe0a96cec5a5f514ddffb8 /cppuhelper/inc/cppuhelper/compbase2.hxx
parent6c489e0902503ba9dd138b8e0dbaf78110ee713f (diff)
API documentation
Diffstat (limited to 'cppuhelper/inc/cppuhelper/compbase2.hxx')
-rw-r--r--cppuhelper/inc/cppuhelper/compbase2.hxx30
1 files changed, 28 insertions, 2 deletions
diff --git a/cppuhelper/inc/cppuhelper/compbase2.hxx b/cppuhelper/inc/cppuhelper/compbase2.hxx
index bd3f22dd8f09..9d69e369f94d 100644
--- a/cppuhelper/inc/cppuhelper/compbase2.hxx
+++ b/cppuhelper/inc/cppuhelper/compbase2.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: compbase2.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dbo $ $Date: 2001-03-15 15:47:29 $
+ * last change: $Author: dbo $ $Date: 2001-05-14 11:58:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -75,6 +75,19 @@ __DEF_COMPIMPLHELPER( 2 )
namespace cppu
{
+ /** This template class inherits from ::cppu::ImplHelperBaseN<>, com.sun.star.lang.XComponent
+ and ::cppu::OWeakObject, thus delegating life-cycle to that implementation.
+ Use this helper implementing an object, that can be held weakly using the
+ ::cppu::WeakReference<> template class.
+ The template class expects a C++ mutex reference for synchronization in its ctor.
+ The com.sun.star.lang.XComponent implementation fires a final disposing() call
+ to the implementation when the component is to be disposed. So implement disposing()
+ when sub-classing.
+
+ All other virtual functions (inherited from given template parameter interfaces)
+ have to be implemented by sub-classing from the templated class, e.g.
+ class MyImpl : public ::cppu::WeakComponentImplHelperN<> { ... };
+ */
template< class Ifc1, class Ifc2 >
class WeakComponentImplHelper2
: public ::cppu::OWeakObject
@@ -139,6 +152,19 @@ namespace cppu
rBHelper.removeListener( ::getCppuType( &xListener ), xListener );
}
};
+ /** This template class inherits from ::cppu::ImplHelperBaseN<>, com.sun.star.lang.XComponent
+ and ::cppu::OWeakAggObject, thus delegating life-cycle to that implementation.
+ Use this helper implementing an object, that can be held weakly using the
+ ::cppu::WeakReference<> template class and can be aggregated by other objects.
+ The template class expects a C++ mutex reference for synchronization in its ctor.
+ The com.sun.star.lang.XComponent implementation fires a final disposing() call
+ to the implementation when the component is to be disposed. So implement disposing()
+ when sub-classing.
+
+ All other virtual functions (inherited from given template parameter interfaces)
+ have to be implemented by sub-classing from the templated class, e.g.
+ class MyImpl : public ::cppu::WeakAggComponentImplHelperN<> { ... };
+ */
template< class Ifc1, class Ifc2 >
class WeakAggComponentImplHelper2
: public ::cppu::OWeakAggObject