28 #ifndef _CPPUHELPER_ACCESS_CONTROL_HXX_
29 #define _CPPUHELPER_ACCESS_CONTROL_HXX_
31 #include <com/sun/star/uno/XComponentContext.hpp>
32 #include <com/sun/star/security/XAccessController.hpp>
52 ::com::sun::star::uno::XComponentContext >
const & xContext )
53 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
60 ::com::sun::star::security::XAccessController >
const & xController )
61 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
67 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
72 { m_xController.clear(); }
78 inline ::com::sun::star::uno::Reference<
79 ::com::sun::star::security::XAccessController >
const & SAL_CALL
get()
const SAL_THROW(())
80 {
return m_xController; }
86 inline ::com::sun::star::security::XAccessController * SAL_CALL operator -> () const
SAL_THROW(())
87 {
return m_xController.get(); }
96 void SAL_CALL checkRuntimePermission(
98 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
106 void SAL_CALL checkFilePermission(
109 SAL_THROW( (::com::sun::star::uno::RuntimeException) );
118 void SAL_CALL checkSocketPermission(
121 SAL_THROW( (::com::sun::star::uno::RuntimeException) );