22#include <com/sun/star/uno/XComponentContext.hpp>
23#include <rtl/ustring.hxx>
59 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
62 css::uno::Reference< css::uno::XInterface >
m_xConfig;
75 ConfigAccess( css::uno::Reference< css::uno::XComponentContext > xContext,
83 const css::uno::Reference< css::uno::XInterface >&
cfg();
implements a simple configuration access @descr Sometimes it's better to have direct config access in...
void open(EOpenMode eMode)
open the configuration access in the specified mode @descr We set the opened configuration access as ...
css::uno::Reference< css::uno::XInterface > m_xConfig
hold an opened configuration alive
EOpenMode m_eMode
represent the current open mode
css::uno::Reference< css::uno::XComponentContext > m_xContext
reference to the uno service manager It's necessary to instantiate own needed services.
EOpenMode getMode() const
return the internal mode of this instance @descr May be the outside user need any information about s...
void close()
close the internal opened configuration access and flush all changes @descr It checks,...
~ConfigAccess()
last chance to close an open configuration access point @descr In case our user forgot to close this ...
OUString m_sRoot
knows the root of the opened config access point
const css::uno::Reference< css::uno::XInterface > & cfg()
provides an access to the internal wrapped configuration access @descr It's not allowed to safe this ...
EOpenMode
represent the possible modes of the internal wrapped configuration access
@ E_READONLY
config access is open for reading only
@ E_CLOSED
config isn't used yet
@ E_READWRITE
config access is open for reading/writing data
ConfigAccess(css::uno::Reference< css::uno::XComponentContext > xContext, OUString sRoot)
open the configuration of this job @descr We open the configuration of this job only.