Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_SECURITY_RUNTIMEPERMISSION_HPP
2 : : #define INCLUDED_COM_SUN_STAR_SECURITY_RUNTIMEPERMISSION_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/security/RuntimePermission.hdl"
7 : :
8 : : #include "com/sun/star/uno/Type.hxx"
9 : : #include "cppu/unotype.hxx"
10 : : #include "osl/mutex.hxx"
11 : : #include "rtl/ustring.h"
12 : : #include "rtl/ustring.hxx"
13 : : #include "rtl/instance.hxx"
14 : : #include "sal/types.h"
15 : : #include "typelib/typeclass.h"
16 : : #include "typelib/typedescription.h"
17 : :
18 : : namespace com { namespace sun { namespace star { namespace security {
19 : :
20 : : inline RuntimePermission::RuntimePermission() SAL_THROW(())
21 : : : Name()
22 : : {
23 : : }
24 : :
25 : 0 : inline RuntimePermission::RuntimePermission(const ::rtl::OUString& Name_) SAL_THROW(())
26 : 0 : : Name(Name_)
27 : : {
28 : 0 : }
29 : :
30 : : } } } }
31 : :
32 : : namespace com { namespace sun { namespace star { namespace security { namespace detail {
33 : :
34 : : struct theRuntimePermissionType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theRuntimePermissionType >
35 : : {
36 : 0 : ::com::sun::star::uno::Type * operator()() const
37 : : {
38 [ # # ]: 0 : ::rtl::OUString the_name(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.security.RuntimePermission"));
39 [ # # ]: 0 : ::rtl::OUString the_tname0(RTL_CONSTASCII_USTRINGPARAM("string"));
40 [ # # ]: 0 : ::rtl::OUString the_name0(RTL_CONSTASCII_USTRINGPARAM("Name"));
41 : : ::typelib_StructMember_Init the_members[] = {
42 : 0 : { { typelib_TypeClass_STRING, the_tname0.pData, the_name0.pData }, false } };
43 : 0 : ::typelib_TypeDescription * the_newType = 0;
44 : 0 : ::typelib_typedescription_newStruct(&the_newType, the_name.pData, 0, 1, the_members);
45 : 0 : ::typelib_typedescription_register(&the_newType);
46 : 0 : ::typelib_typedescription_release(the_newType);
47 : 0 : return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
48 : : }
49 : : };
50 : : } } } } }
51 : :
52 : : namespace com { namespace sun { namespace star { namespace security {
53 : :
54 : 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::security::RuntimePermission const *) {
55 : 0 : return *detail::theRuntimePermissionType::get();
56 : : }
57 : :
58 : : } } } }
59 : :
60 : 0 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::security::RuntimePermission const *) SAL_THROW(()) {
61 : 0 : return ::cppu::UnoType< ::com::sun::star::security::RuntimePermission >::get();
62 : : }
63 : :
64 : : #endif // INCLUDED_COM_SUN_STAR_SECURITY_RUNTIMEPERMISSION_HPP
|