xref: /aoo41x/main/dbaccess/source/core/inc/veto.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef DBACCESS_VETO_HXX
29 #define DBACCESS_VETO_HXX
30 
31 /** === begin UNO includes === **/
32 #ifndef _COM_SUN_STAR_UTIL_XVETO_HPP_
33 #include <com/sun/star/util/XVeto.hpp>
34 #endif
35 /** === end UNO includes === **/
36 
37 #ifndef _CPPUHELPER_IMPLBASE1_HXX_
38 #include <cppuhelper/implbase1.hxx>
39 #endif
40 
41 //........................................................................
42 namespace dbaccess
43 {
44 //........................................................................
45 
46 	//====================================================================
47 	//= Veto
48 	//====================================================================
49     typedef ::cppu::WeakImplHelper1 <   ::com::sun::star::util::XVeto
50                                     >   Veto_Base;
51     /** implements ::com::sun::star::util::XVeto
52     */
53     class Veto : public Veto_Base
54 	{
55     private:
56         const ::rtl::OUString               m_sReason;
57         const ::com::sun::star::uno::Any    m_aDetails;
58 
59     public:
60         Veto( const ::rtl::OUString& _rReason, const ::com::sun::star::uno::Any& _rDetails );
61 
62         virtual ::rtl::OUString SAL_CALL getReason() throw (::com::sun::star::uno::RuntimeException);
63         virtual ::com::sun::star::uno::Any SAL_CALL getDetails() throw (::com::sun::star::uno::RuntimeException);
64 
65     protected:
66         ~Veto();
67 
68     private:
69         Veto();                         // never implemented
70         Veto( const Veto& );            // never implemented
71         Veto& operator=( const Veto& ); // never implemented
72 	};
73 
74 //........................................................................
75 } // namespace dbaccess
76 //........................................................................
77 
78 #endif // DBACCESS_VETO_HXX
79 
80