23#ifndef INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
24#define INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
29namespace com {
namespace sun {
namespace star {
namespace security {
class XAccessController; } } } }
30namespace com {
namespace sun {
namespace star {
namespace uno {
class XComponentContext; } } } }
39 css::uno::Reference< css::security::XAccessController > m_xController;
47 css::uno::Reference< css::uno::XComponentContext >
const & xContext );
53 css::uno::Reference< css::security::XAccessController >
const & xController );
60#if defined LIBO_INTERNAL_ONLY
67 { m_xController.clear(); }
73 css::uno::Reference< css::security::XAccessController >
const & SAL_CALL
get()
const
74 {
return m_xController; }
80 css::security::XAccessController * SAL_CALL operator -> ()
const
81 {
return m_xController.get(); }
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition types.h:611
#define CPPUHELPER_DLLPUBLIC
Definition cppuhelperdllapi.h:32
Definition Enterable.hxx:31
This String class provides base functionality for C++ like Unicode character array handling.
Definition ustring.hxx:172
Helper class for retrieving access controller singleton from component context.
Definition access_control.hxx:38
void clear()
Clears the access controller reference being used.
Definition access_control.hxx:66
void checkFilePermission(::rtl::OUString const &url, ::rtl::OUString const &actions)
A com.sun.star.io.FilePermission represents access to a file or directory.
css::uno::Reference< css::security::XAccessController > const & get() const
Returns access to the access controller reference being used.
Definition access_control.hxx:73
AccessControl(css::uno::Reference< css::security::XAccessController > const &xController)
Ctor.
void checkRuntimePermission(::rtl::OUString const &name)
A com.sun.star.security.RuntimePermission is for runtime permissions.
AccessControl(css::uno::Reference< css::uno::XComponentContext > const &xContext)
Ctor.
void checkSocketPermission(::rtl::OUString const &host, ::rtl::OUString const &actions)
A com.sun.star.connection.SocketPermission represents access to a network via sockets.
AccessControl(::cppu::AccessControl const &ac)
Copy ctor.