Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_SECURITY_ACCESSCONTROLEXCEPTION_HPP
2 : : #define INCLUDED_COM_SUN_STAR_SECURITY_ACCESSCONTROLEXCEPTION_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/security/AccessControlException.hdl"
7 : :
8 : : #include "com/sun/star/uno/SecurityException.hpp"
9 : : #include "com/sun/star/uno/Any.hxx"
10 : : #include "com/sun/star/uno/Type.hxx"
11 : : #include "cppu/unotype.hxx"
12 : : #include "osl/mutex.hxx"
13 : : #include "rtl/instance.hxx"
14 : :
15 : : namespace com { namespace sun { namespace star { namespace security {
16 : :
17 : : inline AccessControlException::AccessControlException() SAL_THROW(())
18 : : : ::com::sun::star::uno::SecurityException()
19 : : , LackingPermission()
20 : : { }
21 : :
22 : 0 : inline AccessControlException::AccessControlException(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context_, const ::com::sun::star::uno::Any& LackingPermission_) SAL_THROW(())
23 : : : ::com::sun::star::uno::SecurityException(Message_, Context_)
24 : 0 : , LackingPermission(LackingPermission_)
25 : 0 : { }
26 : :
27 : : AccessControlException::AccessControlException(AccessControlException const & the_other): ::com::sun::star::uno::SecurityException(the_other), LackingPermission(the_other.LackingPermission) {}
28 : :
29 : 0 : AccessControlException::~AccessControlException() {}
30 : :
31 : : AccessControlException & AccessControlException::operator =(AccessControlException const & the_other) {
32 : : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
33 : : ::com::sun::star::uno::SecurityException::operator =(the_other);
34 : : LackingPermission = the_other.LackingPermission;
35 : : return *this;
36 : : }
37 : :
38 : : } } } }
39 : :
40 : : namespace com { namespace sun { namespace star { namespace security {
41 : :
42 : 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::security::AccessControlException const *) {
43 : : static typelib_TypeDescriptionReference * the_type = 0;
44 [ # # ]: 0 : if ( !the_type )
45 : : {
46 [ # # ]: 0 : const ::com::sun::star::uno::Type& rBaseType = ::cppu::UnoType< const ::com::sun::star::uno::SecurityException >::get();
47 : :
48 : : typelib_TypeDescriptionReference * aMemberRefs[1];
49 : 0 : const ::com::sun::star::uno::Type& rMemberType_any = ::cppu::UnoType< ::com::sun::star::uno::Any >::get();
50 : 0 : aMemberRefs[0] = rMemberType_any.getTypeLibType();
51 : :
52 : 0 : typelib_static_compound_type_init( &the_type, typelib_TypeClass_EXCEPTION, "com.sun.star.security.AccessControlException", rBaseType.getTypeLibType(), 1, aMemberRefs );
53 : : }
54 : 0 : return * reinterpret_cast< const ::com::sun::star::uno::Type * >( &the_type );
55 : : }
56 : :
57 : : } } } }
58 : :
59 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::security::AccessControlException const *) SAL_THROW(()) {
60 : : return ::cppu::UnoType< ::com::sun::star::security::AccessControlException >::get();
61 : : }
62 : :
63 : : #endif // INCLUDED_COM_SUN_STAR_SECURITY_ACCESSCONTROLEXCEPTION_HPP
|