19 #ifndef INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
20 #define INCLUDED_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) );
Helper class retriving access controller singleton from component context.
Definition: access_control.hxx:32
Definition: Enterable.hxx:26
#define SAL_THROW(x)
Exception specification documentation.
Definition: types.h:361
AccessControl(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const &xContext) SAL_THROW((AccessControl(::com::sun::star::uno::Reference< ::com::sun::star::security::XAccessController > const &xController) SAL_THROW((AccessControl(::cppu::AccessControl const &ac) SAL_THROW((void clear() SAL_THROW(())
Ctor.
Definition: access_control.hxx:62
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82