LibreOffice Module desktop (master)  1
Classes | Public Member Functions | Protected Member Functions | List of all members
dp_registry::backend::component::ComponentBackendDb Class Reference

#include <dp_compbackenddb.hxx>

Inheritance diagram for dp_registry::backend::component::ComponentBackendDb:
[legend]
Collaboration diagram for dp_registry::backend::component::ComponentBackendDb:
[legend]

Classes

struct  Data
 

Public Member Functions

 ComponentBackendDb (css::uno::Reference< css::uno::XComponentContext > const &xContext, OUString const &url)
 
void addEntry (OUString const &url, Data const &data)
 
Data getEntry (OUString const &url)
 
- Public Member Functions inherited from dp_registry::backend::BackendDb
 BackendDb (css::uno::Reference< css::uno::XComponentContext > const &xContext, OUString const &url)
 
virtual ~BackendDb ()
 
void removeEntry (OUString const &url)
 
void revokeEntry (OUString const &url)
 
bool activateEntry (OUString const &url)
 
bool hasActiveEntry (OUString const &url)
 

Protected Member Functions

virtual OUString getDbNSName () override
 
virtual OUString getNSPrefix () override
 
virtual OUString getRootElementName () override
 
virtual OUString getKeyElementName () override
 
- Protected Member Functions inherited from dp_registry::backend::BackendDb
css::uno::Reference< css::xml::dom::XDocument > const & getDocument ()
 
css::uno::Reference< css::xml::xpath::XXPathAPI > const & getXPathAPI ()
 
void save ()
 
void removeElement (OUString const &sXPathExpression)
 
css::uno::Reference< css::xml::dom::XNode > getKeyElement (OUString const &url)
 
void writeSimpleList (std::deque< OUString > const &list, OUString const &sListTagName, OUString const &sMemberTagName, css::uno::Reference< css::xml::dom::XNode > const &xParent)
 
void writeVectorOfPair (std::vector< std::pair< OUString, OUString > > const &vecPairs, OUString const &sVectorTagName, OUString const &sPairTagName, OUString const &sFirstTagName, OUString const &sSecondTagName, css::uno::Reference< css::xml::dom::XNode > const &xParent)
 
void writeSimpleElement (OUString const &sElementName, OUString const &value, css::uno::Reference< css::xml::dom::XNode > const &xParent)
 
css::uno::Reference< css::xml::dom::XNode > writeKeyElement (OUString const &url)
 The key elements have an url attribute and are always children of the root element. More...
 
OUString readSimpleElement (OUString const &sElementName, css::uno::Reference< css::xml::dom::XNode > const &xParent)
 
std::vector< std::pair< OUString, OUString > > readVectorOfPair (css::uno::Reference< css::xml::dom::XNode > const &parent, OUString const &sListTagName, OUString const &sPairTagName, OUString const &sFirstTagName, OUString const &sSecondTagName)
 
std::deque< OUString > readList (css::uno::Reference< css::xml::dom::XNode > const &parent, OUString const &sListTagName, OUString const &sMemberTagName)
 
std::vector< OUString > getOneChildFromAllEntries (OUString const &sElementName)
 

Additional Inherited Members

- Protected Attributes inherited from dp_registry::backend::BackendDb
const css::uno::Reference< css::uno::XComponentContext > m_xContext
 
OUString m_urlDb
 

Detailed Description

Definition at line 65 of file dp_compbackenddb.hxx.

Constructor & Destructor Documentation

dp_registry::backend::component::ComponentBackendDb::ComponentBackendDb ( css::uno::Reference< css::uno::XComponentContext > const &  xContext,
OUString const &  url 
)

Definition at line 44 of file dp_compbackenddb.cxx.

Member Function Documentation

void dp_registry::backend::component::ComponentBackendDb::addEntry ( OUString const &  url,
Data const &  data 
)
OUString dp_registry::backend::component::ComponentBackendDb::getDbNSName ( )
overrideprotectedvirtual

Implements dp_registry::backend::BackendDb.

Definition at line 51 of file dp_compbackenddb.cxx.

References EXTENSION_REG_NS.

ComponentBackendDb::Data dp_registry::backend::component::ComponentBackendDb::getEntry ( OUString const &  url)
OUString dp_registry::backend::component::ComponentBackendDb::getKeyElementName ( )
overrideprotectedvirtual

Implements dp_registry::backend::BackendDb.

Definition at line 66 of file dp_compbackenddb.cxx.

References KEY_ELEMENT_NAME.

OUString dp_registry::backend::component::ComponentBackendDb::getNSPrefix ( )
overrideprotectedvirtual

Implements dp_registry::backend::BackendDb.

Definition at line 56 of file dp_compbackenddb.cxx.

References NS_PREFIX.

OUString dp_registry::backend::component::ComponentBackendDb::getRootElementName ( )
overrideprotectedvirtual

Implements dp_registry::backend::BackendDb.

Definition at line 61 of file dp_compbackenddb.cxx.

References ROOT_ELEMENT_NAME.


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