UDK 3.2.7 C/C++ API Reference

cppuhelper/weakagg.hxx

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*
00003  * This file is part of the LibreOffice project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * This file incorporates work covered by the following license notice:
00010  *
00011  *   Licensed to the Apache Software Foundation (ASF) under one or more
00012  *   contributor license agreements. See the NOTICE file distributed
00013  *   with this work for additional information regarding copyright
00014  *   ownership. The ASF licenses this file to you under the Apache
00015  *   License, Version 2.0 (the "License"); you may not use this file
00016  *   except in compliance with the License. You may obtain a copy of
00017  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
00018  */
00019 #ifndef _CPPUHELPER_WEAKAGG_HXX_
00020 #define _CPPUHELPER_WEAKAGG_HXX_
00021 
00022 #include <cppuhelper/weak.hxx>
00023 #include <com/sun/star/uno/XAggregation.hpp>
00024 #include "cppuhelperdllapi.h"
00025 
00026 
00027 namespace cppu
00028 {
00029 
00040 class CPPUHELPER_DLLPUBLIC OWeakAggObject
00041     : public ::cppu::OWeakObject
00042     , public ::com::sun::star::uno::XAggregation
00043 {
00044 public:
00047     inline OWeakAggObject() SAL_THROW(())
00048         {}
00049 
00053     virtual void SAL_CALL acquire() throw();
00057     virtual void SAL_CALL release() throw();
00066     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType )
00067         throw(::com::sun::star::uno::RuntimeException);
00068 
00073     virtual void SAL_CALL setDelegator( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & Delegator )
00074         throw(::com::sun::star::uno::RuntimeException);
00080     virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType )
00081         throw(::com::sun::star::uno::RuntimeException);
00082 
00083 protected:
00090     virtual ~OWeakAggObject() SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00091 
00094     ::com::sun::star::uno::WeakReferenceHelper xDelegator;
00095 private:
00096     OWeakAggObject( const OWeakAggObject & rObj ) SAL_THROW(());
00097     OWeakAggObject & operator = ( const OWeakAggObject & rObj ) SAL_THROW(());
00098 };
00099 
00100 }
00101 
00102 #endif
00103 
00104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines