LibreOffice Module comphelper (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
comphelper::detail::ConfigurationWrapper Class Reference

#include <configuration.hxx>

Public Member Functions

bool isReadOnly (OUString const &path) const
 
css::uno::Any getPropertyValue (OUString const &path) const
 
css::uno::Any getLocalizedPropertyValue (std::u16string_view path) const
 
css::uno::Reference< css::container::XHierarchicalNameAccess > getGroupReadOnly (OUString const &path) const
 
css::uno::Reference< css::container::XNameAccess > getSetReadOnly (OUString const &path) const
 
std::shared_ptr< ConfigurationChangescreateChanges () const
 

Static Public Member Functions

static ConfigurationWrapper const & get ()
 
static void setPropertyValue (std::shared_ptr< ConfigurationChanges > const &batch, OUString const &path, css::uno::Any const &value)
 
static void setLocalizedPropertyValue (std::shared_ptr< ConfigurationChanges > const &batch, OUString const &path, css::uno::Any const &value)
 
static css::uno::Reference< css::container::XHierarchicalNameReplace > getGroupReadWrite (std::shared_ptr< ConfigurationChanges > const &batch, OUString const &path)
 
static css::uno::Reference< css::container::XNameContainer > getSetReadWrite (std::shared_ptr< ConfigurationChanges > const &batch, OUString const &path)
 

Private Member Functions

SAL_DLLPRIVATE ConfigurationWrapper ()
 
SAL_DLLPRIVATE ~ConfigurationWrapper ()
 
 ConfigurationWrapper (const ConfigurationWrapper &)=delete
 
ConfigurationWrapperoperator= (const ConfigurationWrapper &)=delete
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > context_
 
css::uno::Reference< css::configuration::XReadWriteAccess > access_
 
std::mutex maMutex
 
bool mbDisposed
 
std::unordered_map< OUString, css::uno::Any > maPropertyCache
 
css::uno::Reference< css::util::XChangesNotifier > maNotifier
 
css::uno::Reference< css::util::XChangesListener > maListener
 

Friends

class ConfigurationChangesListener
 

Detailed Description

Definition at line 91 of file configuration.hxx.

Constructor & Destructor Documentation

◆ ConfigurationWrapper() [1/2]

comphelper::detail::ConfigurationWrapper::ConfigurationWrapper ( )
explicitprivate

◆ ~ConfigurationWrapper()

comphelper::detail::ConfigurationWrapper::~ConfigurationWrapper ( )
private

Definition at line 165 of file configuration.cxx.

◆ ConfigurationWrapper() [2/2]

comphelper::detail::ConfigurationWrapper::ConfigurationWrapper ( const ConfigurationWrapper )
privatedelete

Member Function Documentation

◆ createChanges()

std::shared_ptr< comphelper::ConfigurationChanges > comphelper::detail::ConfigurationWrapper::createChanges ( ) const

Definition at line 268 of file configuration.cxx.

References context_.

Referenced by comphelper::ConfigurationChanges::create().

◆ get()

comphelper::detail::ConfigurationWrapper const & comphelper::detail::ConfigurationWrapper::get ( )
static

◆ getGroupReadOnly()

css::uno::Reference< css::container::XHierarchicalNameAccess > comphelper::detail::ConfigurationWrapper::getGroupReadOnly ( OUString const &  path) const

Definition at line 228 of file configuration.cxx.

References context_.

Referenced by comphelper::ConfigurationGroup< T >::get().

◆ getGroupReadWrite()

css::uno::Reference< css::container::XHierarchicalNameReplace > comphelper::detail::ConfigurationWrapper::getGroupReadWrite ( std::shared_ptr< ConfigurationChanges > const &  batch,
OUString const &  path 
)
static

Definition at line 239 of file configuration.cxx.

Referenced by comphelper::ConfigurationGroup< T >::get().

◆ getLocalizedPropertyValue()

css::uno::Any comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue ( std::u16string_view  path) const

Definition at line 212 of file configuration.cxx.

References access_, and context_.

◆ getPropertyValue()

css::uno::Any comphelper::detail::ConfigurationWrapper::getPropertyValue ( OUString const &  path) const

Definition at line 181 of file configuration.cxx.

References access_, idx, and maMutex.

◆ getSetReadOnly()

css::uno::Reference< css::container::XNameAccess > comphelper::detail::ConfigurationWrapper::getSetReadOnly ( OUString const &  path) const

Definition at line 248 of file configuration.cxx.

References context_.

Referenced by comphelper::ConfigurationSet< T >::get().

◆ getSetReadWrite()

css::uno::Reference< css::container::XNameContainer > comphelper::detail::ConfigurationWrapper::getSetReadWrite ( std::shared_ptr< ConfigurationChanges > const &  batch,
OUString const &  path 
)
static

Definition at line 259 of file configuration.cxx.

Referenced by comphelper::ConfigurationSet< T >::get().

◆ isReadOnly()

bool comphelper::detail::ConfigurationWrapper::isReadOnly ( OUString const &  path) const

Definition at line 172 of file configuration.cxx.

References access_.

Referenced by comphelper::ConfigurationProperty< T, U >::isReadOnly().

◆ operator=()

ConfigurationWrapper & comphelper::detail::ConfigurationWrapper::operator= ( const ConfigurationWrapper )
privatedelete

◆ setLocalizedPropertyValue()

void comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue ( std::shared_ptr< ConfigurationChanges > const &  batch,
OUString const &  path,
css::uno::Any const &  value 
)
static

Definition at line 219 of file configuration.cxx.

References value.

Referenced by comphelper::ConfigurationLocalizedProperty< T, U >::set().

◆ setPropertyValue()

void comphelper::detail::ConfigurationWrapper::setPropertyValue ( std::shared_ptr< ConfigurationChanges > const &  batch,
OUString const &  path,
css::uno::Any const &  value 
)
static

Definition at line 203 of file configuration.cxx.

References value.

Referenced by comphelper::ConfigurationProperty< T, U >::set().

Friends And Related Function Documentation

◆ ConfigurationChangesListener

friend class ConfigurationChangesListener
friend

Definition at line 92 of file configuration.hxx.

Referenced by ConfigurationWrapper().

Member Data Documentation

◆ access_

css::uno::Reference< css::configuration::XReadWriteAccess > comphelper::detail::ConfigurationWrapper::access_
private

Definition at line 141 of file configuration.hxx.

◆ context_

css::uno::Reference< css::uno::XComponentContext > comphelper::detail::ConfigurationWrapper::context_
private

Definition at line 139 of file configuration.hxx.

Referenced by ConfigurationWrapper().

◆ maListener

css::uno::Reference< css::util::XChangesListener > comphelper::detail::ConfigurationWrapper::maListener
private

◆ maMutex

std::mutex comphelper::detail::ConfigurationWrapper::maMutex
mutableprivate

◆ maNotifier

css::uno::Reference< css::util::XChangesNotifier > comphelper::detail::ConfigurationWrapper::maNotifier
private

◆ maPropertyCache

std::unordered_map<OUString, css::uno::Any> comphelper::detail::ConfigurationWrapper::maPropertyCache
mutableprivate

◆ mbDisposed

bool comphelper::detail::ConfigurationWrapper::mbDisposed
private

The documentation for this class was generated from the following files: