LibreOffice Module ucb (master) 1
|
#include <ucbstore.hxx>
Public Member Functions | |
PropertySetRegistry (const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Sequence< css::uno::Any > &rInitArgs) | |
virtual | ~PropertySetRegistry () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Reference< css::ucb::XPersistentPropertySet > SAL_CALL | openPropertySet (const OUString &key, sal_Bool create) override |
virtual void SAL_CALL | removePropertySet (const OUString &key) override |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
virtual sal_Bool SAL_CALL | hasByName (const OUString &aName) override |
css::uno::Reference< css::uno::XInterface > | getRootConfigReadAccess () |
css::uno::Reference< css::uno::XInterface > | getConfigWriteAccess (const OUString &rPath) |
Private Member Functions | |
css::uno::Reference< css::lang::XMultiServiceFactory > | getConfigProvider (std::unique_lock< std::mutex > &l) |
void | add (std::unique_lock< std::mutex > &rCreatorGuard, PersistentPropertySet *pSet) |
void | remove (PersistentPropertySet *pSet) |
void | renamePropertySet (const OUString &rOldKey, const OUString &rNewKey) |
css::uno::Reference< css::uno::XInterface > | getRootConfigReadAccessImpl (std::unique_lock< std::mutex > &l) |
css::uno::Reference< css::uno::XInterface > | getConfigWriteAccessImpl (std::unique_lock< std::mutex > &l, const OUString &rPath) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
const css::uno::Sequence< css::uno::Any > | m_aInitArgs |
PropertySetMap_Impl | m_aPropSets |
css::uno::Reference< css::lang::XMultiServiceFactory > | m_xConfigProvider |
css::uno::Reference< css::uno::XInterface > | m_xRootReadAccess |
css::uno::Reference< css::uno::XInterface > | m_xRootWriteAccess |
std::mutex | m_aMutex |
bool | m_bTriedToGetRootReadAccess |
bool | m_bTriedToGetRootWriteAccess |
Friends | |
class | PersistentPropertySet |
Definition at line 77 of file ucbstore.hxx.
PropertySetRegistry::PropertySetRegistry | ( | const css::uno::Reference< css::uno::XComponentContext > & | xContext, |
const css::uno::Sequence< css::uno::Any > & | rInitArgs | ||
) |
Definition at line 199 of file ucbstore.cxx.
References m_xContext.
|
overridevirtual |
Definition at line 211 of file ucbstore.cxx.
|
private |
Definition at line 496 of file ucbstore.cxx.
References PersistentPropertySet::getKey(), and m_aPropSets.
Referenced by PersistentPropertySet::PersistentPropertySet().
|
overridevirtual |
Definition at line 444 of file ucbstore.cxx.
References aName, Any, and getRootConfigReadAccess().
|
private |
Definition at line 824 of file ucbstore.cxx.
References Exception, m_aInitArgs, m_xConfigProvider, m_xContext, and TOOLS_WARN_EXCEPTION.
Referenced by getConfigWriteAccessImpl(), and getRootConfigReadAccessImpl().
Reference< XInterface > PropertySetRegistry::getConfigWriteAccess | ( | const OUString & | rPath | ) |
Definition at line 915 of file ucbstore.cxx.
References getConfigWriteAccessImpl(), and m_aMutex.
Referenced by renamePropertySet().
|
private |
Definition at line 922 of file ucbstore.cxx.
References aArguments, Any, CFGPROPERTY_NODEPATH, Exception, getConfigProvider(), comphelper::InitAnyPropertySequence(), m_bTriedToGetRootWriteAccess, m_xConfigProvider, m_xRootWriteAccess, and STORE_CONTENTPROPERTIES_KEY.
Referenced by getConfigWriteAccess(), openPropertySet(), and removePropertySet().
|
overridevirtual |
Definition at line 470 of file ucbstore.cxx.
References getRootConfigReadAccess().
|
overridevirtual |
Definition at line 422 of file ucbstore.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 219 of file ucbstore.cxx.
Reference< XInterface > PropertySetRegistry::getRootConfigReadAccess | ( | ) |
Definition at line 856 of file ucbstore.cxx.
References getRootConfigReadAccessImpl(), and m_aMutex.
Referenced by getByName(), getElementNames(), PropertySetInfo_Impl::getProperties(), PropertySetInfo_Impl::getPropertyByName(), hasByName(), hasElements(), and PropertySetInfo_Impl::hasPropertyByName().
|
private |
Definition at line 862 of file ucbstore.cxx.
References aArguments, Any, CFGPROPERTY_NODEPATH, Exception, getConfigProvider(), comphelper::InitAnyPropertySequence(), m_bTriedToGetRootReadAccess, m_xConfigProvider, m_xRootReadAccess, SAL_WARN, STORE_CONTENTPROPERTIES_KEY, and TOOLS_WARN_EXCEPTION.
Referenced by getRootConfigReadAccess(), openPropertySet(), and removePropertySet().
|
overridevirtual |
Definition at line 229 of file ucbstore.cxx.
|
overridevirtual |
Definition at line 483 of file ucbstore.cxx.
References aName, and getRootConfigReadAccess().
|
overridevirtual |
Definition at line 429 of file ucbstore.cxx.
References getRootConfigReadAccess().
|
overridevirtual |
Definition at line 240 of file ucbstore.cxx.
References Any, create(), Exception, getConfigWriteAccessImpl(), getRootConfigReadAccessImpl(), m_aMutex, m_aPropSets, PersistentPropertySet, and SAL_WARN.
|
private |
Definition at line 509 of file ucbstore.cxx.
References PersistentPropertySet::getKey(), m_aMutex, and m_aPropSets.
|
overridevirtual |
Definition at line 363 of file ucbstore.cxx.
References getConfigWriteAccessImpl(), getRootConfigReadAccessImpl(), m_aMutex, and SAL_WARN.
|
private |
Definition at line 529 of file ucbstore.cxx.
References Any, Exception, getConfigWriteAccess(), and makeHierarchalNameSegment().
|
overridevirtual |
Definition at line 224 of file ucbstore.cxx.
References ServiceName, and cppu::supportsService().
|
friend |
Definition at line 82 of file ucbstore.hxx.
Referenced by openPropertySet().
|
private |
Definition at line 85 of file ucbstore.hxx.
Referenced by getConfigProvider().
|
private |
Definition at line 90 of file ucbstore.hxx.
Referenced by getConfigWriteAccess(), getRootConfigReadAccess(), openPropertySet(), remove(), and removePropertySet().
|
private |
Definition at line 86 of file ucbstore.hxx.
Referenced by add(), openPropertySet(), and remove().
|
private |
Definition at line 91 of file ucbstore.hxx.
Referenced by getRootConfigReadAccessImpl().
|
private |
Definition at line 92 of file ucbstore.hxx.
Referenced by getConfigWriteAccessImpl().
|
private |
Definition at line 87 of file ucbstore.hxx.
Referenced by getConfigProvider(), getConfigWriteAccessImpl(), and getRootConfigReadAccessImpl().
|
private |
Definition at line 84 of file ucbstore.hxx.
Referenced by getConfigProvider().
|
private |
Definition at line 88 of file ucbstore.hxx.
Referenced by getRootConfigReadAccessImpl().
|
private |
Definition at line 89 of file ucbstore.hxx.
Referenced by getConfigWriteAccessImpl().