LibreOffice
LibreOffice 6.4 SDK C/C++ API Reference
|
Go to the documentation of this file.
19 #ifndef INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
20 #define INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
25 namespace com {
namespace sun {
namespace star {
namespace security {
class XAccessController; } } } }
26 namespace com {
namespace sun {
namespace star {
namespace uno {
class XComponentContext; } } } }
35 css::uno::Reference< css::security::XAccessController > m_xController;
43 css::uno::Reference< css::uno::XComponentContext >
const & xContext );
49 css::uno::Reference< css::security::XAccessController >
const & xController );
59 { m_xController.clear(); }
65 css::uno::Reference< css::security::XAccessController >
const & SAL_CALL
get()
const
66 {
return m_xController; }
72 css::security::XAccessController * SAL_CALL operator -> ()
const
73 {
return m_xController.get(); }
This String class provides base functionality for C++ like Unicode character array handling.
Definition: ustring.hxx:127
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:65
void checkRuntimePermission(::rtl::OUString const &name)
A com.sun.star.security.RuntimePermission is for runtime permissions.
Definition: Enterable.hxx:27
Helper class for retrieving access controller singleton from component context.
Definition: access_control.hxx:34
void checkSocketPermission(::rtl::OUString const &host, ::rtl::OUString const &actions)
A com.sun.star.connection.SocketPermission represents access to a network via sockets.
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:578
void checkFilePermission(::rtl::OUString const &url, ::rtl::OUString const &actions)
A com.sun.star.io.FilePermission represents access to a file or directory.
void clear()
Clears the access controller reference being used.
Definition: access_control.hxx:58
AccessControl(css::uno::Reference< css::security::XAccessController > const &xController)
Ctor.
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
AccessControl(css::uno::Reference< css::uno::XComponentContext > const &xContext)
Ctor.