LibreOffice Module configmgr (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
configmgr::RootAccess Class Reference

#include <rootaccess.hxx>

Inheritance diagram for configmgr::RootAccess:
[legend]
Collaboration diagram for configmgr::RootAccess:
[legend]

Public Member Functions

 RootAccess (Components &components, OUString pathRepresentation, OUString locale, bool update)
 
virtual std::vector< OUString > getAbsolutePath () override
 
virtual void initBroadcaster (Modifications::Node const &modifications, Broadcaster *broadcaster) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
OUString const & getAbsolutePathRepresentation ()
 
const OUString & getLocale () const
 
bool isUpdate () const
 
void setAlive (bool b)
 
virtual void SAL_CALL addChangesListener (css::uno::Reference< css::util::XChangesListener > const &aListener) override
 
virtual void SAL_CALL removeChangesListener (css::uno::Reference< css::util::XChangesListener > const &aListener) override
 
virtual void SAL_CALL commitChanges () override
 
virtual sal_Bool SAL_CALL hasPendingChanges () override
 
virtual css::uno::Sequence< ::css::util::ElementChange > SAL_CALL getPendingChanges () override
 
- Public Member Functions inherited from configmgr::Access
oslInterlockedCount acquireCounting ()
 
void releaseNondeleting ()
 
bool isValue ()
 
void markChildAsModified (rtl::Reference< ChildAccess > const &child)
 
void releaseChild (OUString const &name)
 
virtual std::vector< OUString > getAbsolutePath ()=0
 
virtual std::vector< OUString > getRelativePath ()=0
 
virtual OUString getRelativePathRepresentation ()=0
 
virtual rtl::Reference< NodegetNode ()=0
 
virtual bool isFinalized ()=0
 
virtual void initBroadcaster (Modifications::Node const &modifications, Broadcaster *broadcaster)
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &xListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &aListener) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Any SAL_CALL getByName (OUString const &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (OUString const &aName) override
 
virtual css::uno::Any SAL_CALL getByHierarchicalName (OUString const &aName) override
 
virtual sal_Bool SAL_CALL hasByHierarchicalName (OUString const &aName) override
 
virtual void SAL_CALL replaceByHierarchicalName (OUString const &aName, css::uno::Any const &aElement) override
 
virtual void SAL_CALL addContainerListener (css::uno::Reference< css::container::XContainerListener > const &xListener) override
 
virtual void SAL_CALL removeContainerListener (css::uno::Reference< css::container::XContainerListener > const &xListener) override
 
virtual OUString SAL_CALL getExactName (OUString const &aApproximateName) override
 
virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties () override
 
virtual css::beans::Property SAL_CALL getPropertyByName (OUString const &aName) override
 
virtual sal_Bool SAL_CALL hasPropertyByName (OUString const &Name) override
 
virtual OUString SAL_CALL getHierarchicalName () override
 
virtual OUString SAL_CALL composeHierarchicalName (OUString const &aRelativeName) override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (OUString const &aName) override
 
virtual css::beans::Property SAL_CALL getAsProperty () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (OUString const &aPropertyName, css::uno::Any const &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (OUString const &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (OUString const &aPropertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (OUString const &aPropertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (OUString const &PropertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (OUString const &PropertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &aListener) override
 
virtual void SAL_CALL setPropertyValues (css::uno::Sequence< OUString > const &aPropertyNames, css::uno::Sequence< css::uno::Any > const &aValues) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (css::uno::Sequence< OUString > const &aPropertyNames) override
 
virtual void SAL_CALL addPropertiesChangeListener (css::uno::Sequence< OUString > const &aPropertyNames, css::uno::Reference< css::beans::XPropertiesChangeListener > const &xListener) override
 
virtual void SAL_CALL removePropertiesChangeListener (css::uno::Reference< css::beans::XPropertiesChangeListener > const &xListener) override
 
virtual void SAL_CALL firePropertiesChangeEvent (css::uno::Sequence< OUString > const &aPropertyNames, css::uno::Reference< css::beans::XPropertiesChangeListener > const &xListener) override
 
virtual css::uno::Reference< css::beans::XHierarchicalPropertySetInfo > SAL_CALL getHierarchicalPropertySetInfo () override
 
virtual void SAL_CALL setHierarchicalPropertyValue (OUString const &aHierarchicalPropertyName, css::uno::Any const &aValue) override
 
virtual css::uno::Any SAL_CALL getHierarchicalPropertyValue (OUString const &aHierarchicalPropertyName) override
 
virtual void SAL_CALL setHierarchicalPropertyValues (css::uno::Sequence< OUString > const &aHierarchicalPropertyNames, css::uno::Sequence< css::uno::Any > const &Values) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getHierarchicalPropertyValues (css::uno::Sequence< OUString > const &aHierarchicalPropertyNames) override
 
virtual css::beans::Property SAL_CALL getPropertyByHierarchicalName (OUString const &aHierarchicalName) override
 
virtual sal_Bool SAL_CALL hasPropertyByHierarchicalName (OUString const &aHierarchicalName) override
 
virtual void SAL_CALL replaceByName (OUString const &aName, css::uno::Any const &aElement) override
 
virtual void SAL_CALL insertByName (OUString const &aName, css::uno::Any const &aElement) override
 
virtual void SAL_CALL removeByName (OUString const &aName) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments (css::uno::Sequence< css::uno::Any > const &aArguments) override
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Private Types

typedef std::multiset< css::uno::Reference< css::util::XChangesListener > > ChangesListeners
 

Private Member Functions

virtual ~RootAccess () override
 
virtual std::vector< OUString > getRelativePath () override
 
virtual OUString getRelativePathRepresentation () override
 
virtual rtl::Reference< NodegetNode () override
 
virtual bool isFinalized () override
 
virtual const OUString & getNameInternal () override
 
virtual rtl::Reference< RootAccessgetRootAccess () override
 
virtual rtl::Reference< AccessgetParentAccess () override
 
virtual void addTypes (std::vector< css::uno::Type > *types) const override
 
virtual void addSupportedServiceNames (std::vector< OUString > *services) override
 
virtual void initDisposeBroadcaster (Broadcaster *broadcaster) override
 
virtual void clearListeners () noexcept override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &aType) override
 
virtual OUString SAL_CALL getImplementationName () override
 

Private Attributes

OUString pathRepresentation_
 
OUString locale_
 
std::vector< OUString > path_
 
rtl::Reference< Nodenode_
 
OUString name_
 
ChangesListeners changesListeners_
 
std::shared_ptr< osl::Mutex > lock_
 
bool update_:1
 
bool finalized_:1
 
bool alive_:1
 

Additional Inherited Members

- Protected Types inherited from configmgr::Access
enum  {
  IS_ANY = 0 ,
  IS_GROUP = 0x01 ,
  IS_SET = 0x02 ,
  IS_EXTENSIBLE = 0x04 ,
  IS_GROUP_MEMBER = 0x08 ,
  IS_SET_MEMBER = 0x10 ,
  IS_UPDATE = 0x20
}
 
- Protected Member Functions inherited from configmgr::Access
 Access (Components &components)
 
virtual ~Access () override
 
virtual const OUString & getNameInternal ()=0
 
virtual rtl::Reference< RootAccessgetRootAccess ()=0
 
virtual rtl::Reference< AccessgetParentAccess ()=0
 
virtual void addTypes (std::vector< css::uno::Type > *types) const =0
 
virtual void addSupportedServiceNames (std::vector< OUString > *services)=0
 
virtual void initDisposeBroadcaster (Broadcaster *broadcaster)
 
virtual void clearListeners () noexcept
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &aType) override
 
ComponentsgetComponents () const
 
void checkLocalizedPropertyAccess ()
 
rtl::Reference< NodegetParentNode ()
 
rtl::Reference< ChildAccessgetChild (OUString const &name)
 
std::vector< rtl::Reference< ChildAccess > > getAllChildren ()
 
void checkValue (css::uno::Any const &value, Type type, bool nillable)
 
void insertLocalizedValueChild (OUString const &name, css::uno::Any const &value, Modifications *localModifications)
 
void reportChildChanges (std::vector< css::util::ElementChange > *changes)
 
void commitChildChanges (bool valid, Modifications *globalModifications)
 
void initBroadcasterAndChanges (Modifications::Node const &modifications, Broadcaster *broadcaster, std::vector< css::util::ElementChange > *changes)
 
bool isDisposed () const
 
bool thisIs (int what)
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 50 of file rootaccess.hxx.

Member Typedef Documentation

◆ ChangesListeners

typedef std::multiset< css::uno::Reference< css::util::XChangesListener > > configmgr::RootAccess::ChangesListeners
private

Definition at line 126 of file rootaccess.hxx.

Constructor & Destructor Documentation

◆ RootAccess()

configmgr::RootAccess::RootAccess ( Components components,
OUString  pathRepresentation,
OUString  locale,
bool  update 
)

Definition at line 57 of file rootaccess.cxx.

References update().

◆ ~RootAccess()

configmgr::RootAccess::~RootAccess ( )
overrideprivatevirtual

Member Function Documentation

◆ acquire()

void configmgr::RootAccess::acquire ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 94 of file rootaccess.cxx.

References cppu::OWeakObject::acquire().

◆ addChangesListener()

void configmgr::RootAccess::addChangesListener ( css::uno::Reference< css::util::XChangesListener > const &  aListener)
overridevirtual

◆ addSupportedServiceNames()

void configmgr::RootAccess::addSupportedServiceNames ( std::vector< OUString > *  services)
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 256 of file rootaccess.cxx.

References update_.

◆ addTypes()

void configmgr::RootAccess::addTypes ( std::vector< css::uno::Type > *  types) const
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 250 of file rootaccess.cxx.

◆ clearListeners()

void configmgr::RootAccess::clearListeners ( )
overrideprivatevirtualnoexcept

Reimplemented from configmgr::Access.

Definition at line 277 of file rootaccess.cxx.

References changesListeners_, and configmgr::Access::clearListeners().

◆ commitChanges()

void configmgr::RootAccess::commitChanges ( )
overridevirtual

◆ getAbsolutePath()

std::vector< OUString > configmgr::RootAccess::getAbsolutePath ( )
overridevirtual

Implements configmgr::Access.

Definition at line 67 of file rootaccess.cxx.

References getNode(), and path_.

◆ getAbsolutePathRepresentation()

OUString const & configmgr::RootAccess::getAbsolutePathRepresentation ( )

Definition at line 102 of file rootaccess.cxx.

References getNode(), and pathRepresentation_.

◆ getImplementationName()

OUString configmgr::RootAccess::getImplementationName ( )
overrideprivatevirtual

◆ getLocale()

const OUString & configmgr::RootAccess::getLocale ( ) const
inline

Definition at line 70 of file rootaccess.hxx.

References locale_.

◆ getNameInternal()

const OUString & configmgr::RootAccess::getNameInternal ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 237 of file rootaccess.cxx.

References getNode(), and name_.

◆ getNode()

rtl::Reference< Node > configmgr::RootAccess::getNode ( )
overrideprivatevirtual

◆ getParentAccess()

rtl::Reference< Access > configmgr::RootAccess::getParentAccess ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 246 of file rootaccess.cxx.

◆ getPendingChanges()

css::uno::Sequence<::css::util::ElementChange > configmgr::RootAccess::getPendingChanges ( )
overridevirtual

◆ getRelativePath()

std::vector< OUString > configmgr::RootAccess::getRelativePath ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 199 of file rootaccess.cxx.

◆ getRelativePathRepresentation()

OUString configmgr::RootAccess::getRelativePathRepresentation ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 203 of file rootaccess.cxx.

◆ getRootAccess()

rtl::Reference< RootAccess > configmgr::RootAccess::getRootAccess ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 242 of file rootaccess.cxx.

◆ hasPendingChanges()

sal_Bool configmgr::RootAccess::hasPendingChanges ( )
overridevirtual

◆ initBroadcaster()

void configmgr::RootAccess::initBroadcaster ( Modifications::Node const &  modifications,
Broadcaster broadcaster 
)
overridevirtual

◆ initDisposeBroadcaster()

void configmgr::RootAccess::initDisposeBroadcaster ( Broadcaster broadcaster)
overrideprivatevirtual

◆ isFinalized()

bool configmgr::RootAccess::isFinalized ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 232 of file rootaccess.cxx.

References finalized_, and getNode().

◆ isUpdate()

bool configmgr::RootAccess::isUpdate ( ) const
inline

Definition at line 72 of file rootaccess.hxx.

References update_.

◆ queryInterface()

css::uno::Any configmgr::RootAccess::queryInterface ( css::uno::Type const &  aType)
overrideprivatevirtual

◆ release()

void configmgr::RootAccess::release ( )
overridevirtualnoexcept

Reimplemented from cppu::OWeakObject.

Definition at line 98 of file rootaccess.cxx.

References cppu::OWeakObject::release().

◆ removeChangesListener()

void configmgr::RootAccess::removeChangesListener ( css::uno::Reference< css::util::XChangesListener > const &  aListener)
overridevirtual

◆ setAlive()

void configmgr::RootAccess::setAlive ( bool  b)

Definition at line 108 of file rootaccess.cxx.

References alive_.

Member Data Documentation

◆ alive_

bool configmgr::RootAccess::alive_
private

Definition at line 139 of file rootaccess.hxx.

Referenced by commitChanges(), setAlive(), and ~RootAccess().

◆ changesListeners_

ChangesListeners configmgr::RootAccess::changesListeners_
private

◆ finalized_

bool configmgr::RootAccess::finalized_
private

Definition at line 138 of file rootaccess.hxx.

Referenced by getNode(), and isFinalized().

◆ locale_

OUString configmgr::RootAccess::locale_
private

Definition at line 129 of file rootaccess.hxx.

Referenced by getLocale().

◆ lock_

std::shared_ptr<osl::Mutex> configmgr::RootAccess::lock_
private

◆ name_

OUString configmgr::RootAccess::name_
private

Definition at line 132 of file rootaccess.hxx.

Referenced by getNameInternal(), and getNode().

◆ node_

rtl::Reference< Node > configmgr::RootAccess::node_
private

Definition at line 131 of file rootaccess.hxx.

Referenced by commitChanges(), and getNode().

◆ path_

std::vector<OUString> configmgr::RootAccess::path_
private

Definition at line 130 of file rootaccess.hxx.

Referenced by getAbsolutePath(), getNode(), and initBroadcaster().

◆ pathRepresentation_

OUString configmgr::RootAccess::pathRepresentation_
private

Definition at line 128 of file rootaccess.hxx.

Referenced by commitChanges(), getAbsolutePathRepresentation(), and getNode().

◆ update_

bool configmgr::RootAccess::update_
private

Definition at line 137 of file rootaccess.hxx.

Referenced by addSupportedServiceNames(), isUpdate(), and queryInterface().


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