AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
weakagg.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 #ifndef INCLUDED_CPPUHELPER_WEAKAGG_HXX
4 #define INCLUDED_CPPUHELPER_WEAKAGG_HXX
5 
6 #include "cppuhelper/weak.hxx"
7 #include "cppuhelper/weakref.hxx"
8 #include "com/sun/star/uno/XAggregation.hpp"
10 
11 
12 namespace cppu
13 {
14 
26  : public ::cppu::OWeakObject
27  , public css::uno::XAggregation
28 {
29 public:
33  {}
34 
38  virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE;
42  virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE;
51  virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) SAL_OVERRIDE;
52 
57  virtual void SAL_CALL setDelegator( const css::uno::Reference< css::uno::XInterface > & Delegator ) SAL_OVERRIDE;
63  virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) SAL_OVERRIDE;
64 
65 protected:
72  virtual ~OWeakAggObject() SAL_OVERRIDE;
73 
76  css::uno::WeakReferenceHelper xDelegator;
77 private:
79  OWeakAggObject & operator = ( const OWeakAggObject & rObj )
80  SAL_DELETED_FUNCTION;
81 };
82 
83 }
84 
85 #endif
86 
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class to implement a UNO object supporting weak references, i.e.
Definition: weakagg.hxx:25
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:12
css::uno::Any queryInterface(const css::uno::Type &rType, Interface1 *p1)
Compares demanded type to given template argument types.
Definition: queryinterface.hxx:23
OWeakAggObject()
Constructor.
Definition: weakagg.hxx:32
#define SAL_NOEXCEPT
Macro for C++11 &quot;noexcept&quot; vs.
Definition: types.h:396
#define SAL_OVERRIDE
C++11 &quot;override&quot; feature.
Definition: types.h:371
Base class to implement a UNO object supporting weak references, i.e.
Definition: weak.hxx:27
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:358