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 const &pathRepresentation, OUString const &locale, bool update)
 
virtual std::vector< OUString > getAbsolutePath () override
 
virtual void initBroadcaster (Modifications::Node const &modifications, Broadcaster *broadcaster) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
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 css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () 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 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 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 () override throw ()
 
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
 
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

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

Definition at line 126 of file rootaccess.hxx.

Constructor & Destructor Documentation

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

Definition at line 56 of file rootaccess.cxx.

configmgr::RootAccess::~RootAccess ( )
overrideprivatevirtual

Member Function Documentation

void configmgr::RootAccess::acquire ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 93 of file rootaccess.cxx.

References cppu::OWeakObject::acquire().

void configmgr::RootAccess::addChangesListener ( css::uno::Reference< css::util::XChangesListener > const &  aListener)
overridevirtual
void configmgr::RootAccess::addSupportedServiceNames ( std::vector< OUString > *  services)
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 255 of file rootaccess.cxx.

References assert(), and update_.

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

Implements configmgr::Access.

Definition at line 249 of file rootaccess.cxx.

References assert().

void configmgr::RootAccess::clearListeners ( )
throw (
)
overrideprivatevirtual

Reimplemented from configmgr::Access.

Definition at line 276 of file rootaccess.cxx.

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

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

Implements configmgr::Access.

Definition at line 66 of file rootaccess.cxx.

References getNode(), and path_.

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

Definition at line 101 of file rootaccess.cxx.

References getNode(), and pathRepresentation_.

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

Definition at line 70 of file rootaccess.hxx.

References locale_.

OUString configmgr::RootAccess::getNameInternal ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 236 of file rootaccess.cxx.

References getNode(), and name_.

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

Implements configmgr::Access.

Definition at line 245 of file rootaccess.cxx.

css::uno::Sequence<::css::util::ElementChange > configmgr::RootAccess::getPendingChanges ( )
overridevirtual
std::vector< OUString > configmgr::RootAccess::getRelativePath ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 198 of file rootaccess.cxx.

OUString configmgr::RootAccess::getRelativePathRepresentation ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 202 of file rootaccess.cxx.

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

Implements configmgr::Access.

Definition at line 241 of file rootaccess.cxx.

sal_Bool configmgr::RootAccess::hasPendingChanges ( )
overridevirtual
void configmgr::RootAccess::initBroadcaster ( Modifications::Node const &  modifications,
Broadcaster broadcaster 
)
overridevirtual
void configmgr::RootAccess::initDisposeBroadcaster ( Broadcaster broadcaster)
overrideprivatevirtual
bool configmgr::RootAccess::isFinalized ( )
overrideprivatevirtual

Implements configmgr::Access.

Definition at line 231 of file rootaccess.cxx.

References finalized_, and getNode().

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

Definition at line 72 of file rootaccess.hxx.

References update_.

css::uno::Any configmgr::RootAccess::queryInterface ( css::uno::Type const &  aType)
overrideprivatevirtual
void configmgr::RootAccess::release ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 97 of file rootaccess.cxx.

References cppu::OWeakObject::release().

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

Definition at line 107 of file rootaccess.cxx.

References alive_.

Member Data Documentation

bool configmgr::RootAccess::alive_
private

Definition at line 139 of file rootaccess.hxx.

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

ChangesListeners configmgr::RootAccess::changesListeners_
private
bool configmgr::RootAccess::finalized_
private

Definition at line 138 of file rootaccess.hxx.

Referenced by getNode(), and isFinalized().

OUString configmgr::RootAccess::locale_
private

Definition at line 129 of file rootaccess.hxx.

Referenced by getLocale().

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

Definition at line 132 of file rootaccess.hxx.

Referenced by getNameInternal(), and getNode().

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

Definition at line 131 of file rootaccess.hxx.

Referenced by commitChanges(), and getNode().

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

Definition at line 130 of file rootaccess.hxx.

Referenced by getAbsolutePath(), and getNode().

OUString configmgr::RootAccess::pathRepresentation_
private

Definition at line 128 of file rootaccess.hxx.

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

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: