Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_CONNECTION_SOCKETPERMISSION_HPP
2 : : #define INCLUDED_COM_SUN_STAR_CONNECTION_SOCKETPERMISSION_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/connection/SocketPermission.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 connection {
19 : :
20 : : inline SocketPermission::SocketPermission() SAL_THROW(())
21 : : : Host()
22 : : , Actions()
23 : : {
24 : : }
25 : :
26 : : inline SocketPermission::SocketPermission(const ::rtl::OUString& Host_, const ::rtl::OUString& Actions_) SAL_THROW(())
27 : : : Host(Host_)
28 : : , Actions(Actions_)
29 : : {
30 : : }
31 : :
32 : : } } } }
33 : :
34 : : namespace com { namespace sun { namespace star { namespace connection { namespace detail {
35 : :
36 : : struct theSocketPermissionType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theSocketPermissionType >
37 : : {
38 : 0 : ::com::sun::star::uno::Type * operator()() const
39 : : {
40 [ # # ]: 0 : ::rtl::OUString the_name(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.connection.SocketPermission"));
41 [ # # ]: 0 : ::rtl::OUString the_tname0(RTL_CONSTASCII_USTRINGPARAM("string"));
42 [ # # ]: 0 : ::rtl::OUString the_name0(RTL_CONSTASCII_USTRINGPARAM("Host"));
43 [ # # ]: 0 : ::rtl::OUString the_name1(RTL_CONSTASCII_USTRINGPARAM("Actions"));
44 : : ::typelib_StructMember_Init the_members[] = {
45 : : { { typelib_TypeClass_STRING, the_tname0.pData, the_name0.pData }, false },
46 : 0 : { { typelib_TypeClass_STRING, the_tname0.pData, the_name1.pData }, false } };
47 : 0 : ::typelib_TypeDescription * the_newType = 0;
48 : 0 : ::typelib_typedescription_newStruct(&the_newType, the_name.pData, 0, 2, the_members);
49 : 0 : ::typelib_typedescription_register(&the_newType);
50 : 0 : ::typelib_typedescription_release(the_newType);
51 : 0 : return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
52 : : }
53 : : };
54 : : } } } } }
55 : :
56 : : namespace com { namespace sun { namespace star { namespace connection {
57 : :
58 : 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::connection::SocketPermission const *) {
59 : 0 : return *detail::theSocketPermissionType::get();
60 : : }
61 : :
62 : : } } } }
63 : :
64 : 0 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::connection::SocketPermission const *) SAL_THROW(()) {
65 : 0 : return ::cppu::UnoType< ::com::sun::star::connection::SocketPermission >::get();
66 : : }
67 : :
68 : : #endif // INCLUDED_COM_SUN_STAR_CONNECTION_SOCKETPERMISSION_HPP
|