AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
access_control.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 #ifndef INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
4 #define INCLUDED_CPPUHELPER_ACCESS_CONTROL_HXX
5 
8 
9 namespace com { namespace sun { namespace star { namespace security { class XAccessController; } } } }
10 namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
11 
12 namespace cppu
13 {
14 
18 {
19  css::uno::Reference< css::security::XAccessController > m_xController;
20 
21 public:
27  css::uno::Reference< css::uno::XComponentContext > const & xContext );
33  css::uno::Reference< css::security::XAccessController > const & xController );
38  AccessControl( ::cppu::AccessControl const & ac );
39 
40 #if defined LIBO_INTERNAL_ONLY
41  AccessControl & operator =(AccessControl const &) = default; // avoid deprecation warnings
42 #endif
43 
46  void SAL_CALL clear()
47  { m_xController.clear(); }
48 
53  css::uno::Reference< css::security::XAccessController > const & SAL_CALL get() const
54  { return m_xController; }
55 
60  css::security::XAccessController * SAL_CALL operator -> () const
61  { return m_xController.get(); }
62 
63 
70  void SAL_CALL checkRuntimePermission(
71  ::rtl::OUString const & name );
72 
79  void SAL_CALL checkFilePermission(
80  ::rtl::OUString const & url,
81  ::rtl::OUString const & actions );
82 
90  void SAL_CALL checkSocketPermission(
91  ::rtl::OUString const & host,
92  ::rtl::OUString const & actions );
93 };
94 
95 }
96 
97 #endif
98 
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:182
Helper class for retrieving access controller singleton from component context.
Definition: access_control.hxx:17
void clear()
Clears the access controller reference being used.
Definition: access_control.hxx:46
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:567
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:12