23 #ifndef INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
24 #define INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
29 namespace com {
namespace sun {
namespace star {
namespace security {
class XAccessController; } } } }
30 namespace 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 );
63 { m_xController.clear(); }
69 css::uno::Reference< css::security::XAccessController >
const & SAL_CALL
get()
const
70 {
return m_xController; }
76 css::security::XAccessController * SAL_CALL operator -> ()
const
77 {
return m_xController.get(); }
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:587
#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:203
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:62
void checkFilePermission(::rtl::OUString const &url, ::rtl::OUString const &actions)
A com.sun.star.io.FilePermission represents access to a file or directory.
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.
css::uno::Reference< css::security::XAccessController > const & get() const
Returns access to the access controller reference being used.
Definition: access_control.hxx:69