19 #ifndef _CPPUHELPER_ACCESS_CONTROL_HXX_
20 #define _CPPUHELPER_ACCESS_CONTROL_HXX_
22 #include <com/sun/star/uno/XComponentContext.hpp>
23 #include <com/sun/star/security/XAccessController.hpp>
43 ::com::sun::star::uno::XComponentContext >
const & xContext )
44 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
51 ::com::sun::star::security::XAccessController >
const & xController )
52 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
58 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
63 { m_xController.clear(); }
69 inline ::com::sun::star::uno::Reference<
70 ::com::sun::star::security::XAccessController >
const & SAL_CALL
get()
const SAL_THROW(())
71 {
return m_xController; }
77 inline ::com::sun::star::security::XAccessController * SAL_CALL operator -> () const
SAL_THROW(())
78 {
return m_xController.get(); }
87 void SAL_CALL checkRuntimePermission(
89 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
97 void SAL_CALL checkFilePermission(
100 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
109 void SAL_CALL checkSocketPermission(
112 SAL_THROW( (::com::sun::star::uno::RuntimeException) );