xref: /aoo41x/main/dbaccess/source/core/inc/veto.hxx (revision 2e2212a7)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef DBACCESS_VETO_HXX
25 #define DBACCESS_VETO_HXX
26 
27 /** === begin UNO includes === **/
28 #ifndef _COM_SUN_STAR_UTIL_XVETO_HPP_
29 #include <com/sun/star/util/XVeto.hpp>
30 #endif
31 /** === end UNO includes === **/
32 
33 #ifndef _CPPUHELPER_IMPLBASE1_HXX_
34 #include <cppuhelper/implbase1.hxx>
35 #endif
36 
37 //........................................................................
38 namespace dbaccess
39 {
40 //........................................................................
41 
42 	//====================================================================
43 	//= Veto
44 	//====================================================================
45     typedef ::cppu::WeakImplHelper1 <   ::com::sun::star::util::XVeto
46                                     >   Veto_Base;
47     /** implements ::com::sun::star::util::XVeto
48     */
49     class Veto : public Veto_Base
50 	{
51     private:
52         const ::rtl::OUString               m_sReason;
53         const ::com::sun::star::uno::Any    m_aDetails;
54 
55     public:
56         Veto( const ::rtl::OUString& _rReason, const ::com::sun::star::uno::Any& _rDetails );
57 
58         virtual ::rtl::OUString SAL_CALL getReason() throw (::com::sun::star::uno::RuntimeException);
59         virtual ::com::sun::star::uno::Any SAL_CALL getDetails() throw (::com::sun::star::uno::RuntimeException);
60 
61     protected:
62         ~Veto();
63 
64     private:
65         Veto();                         // never implemented
66         Veto( const Veto& );            // never implemented
67         Veto& operator=( const Veto& ); // never implemented
68 	};
69 
70 //........................................................................
71 } // namespace dbaccess
72 //........................................................................
73 
74 #endif // DBACCESS_VETO_HXX
75 
76