LibreOffice Module desktop (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
dp_registry::backend::BackendDb Class Referenceabstract

#include <dp_backenddb.hxx>

Inheritance diagram for dp_registry::backend::BackendDb:
[legend]

Public Member Functions

 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

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)
 
virtual OUString getDbNSName ()=0
 
virtual OUString getNSPrefix ()=0
 
virtual OUString getRootElementName ()=0
 
virtual OUString getKeyElementName ()=0
 

Protected Attributes

const css::uno::Reference< css::uno::XComponentContext > m_xContext
 
OUString m_urlDb
 

Private Member Functions

 BackendDb (BackendDb const &)=delete
 
BackendDboperator= (BackendDb const &)=delete
 

Private Attributes

css::uno::Reference< css::xml::dom::XDocument > m_doc
 
css::uno::Reference< css::xml::xpath::XXPathAPI > m_xpathApi
 

Detailed Description

Definition at line 43 of file dp_backenddb.hxx.

Constructor & Destructor Documentation

dp_registry::backend::BackendDb::BackendDb ( BackendDb const &  )
privatedelete
dp_registry::backend::BackendDb::BackendDb ( css::uno::Reference< css::uno::XComponentContext > const &  xContext,
OUString const &  url 
)
virtual dp_registry::backend::BackendDb::~BackendDb ( )
inlinevirtual

Definition at line 135 of file dp_backenddb.hxx.

Member Function Documentation

bool dp_registry::backend::BackendDb::activateEntry ( OUString const &  url)
virtual OUString dp_registry::backend::BackendDb::getDbNSName ( )
protectedpure virtual
css::uno::Reference< css::xml::dom::XDocument > const & dp_registry::backend::BackendDb::getDocument ( )
protected
Reference< css::xml::dom::XNode > dp_registry::backend::BackendDb::getKeyElement ( OUString const &  url)
protected
virtual OUString dp_registry::backend::BackendDb::getKeyElementName ( )
protectedpure virtual
virtual OUString dp_registry::backend::BackendDb::getNSPrefix ( )
protectedpure virtual
std::vector< OUString > dp_registry::backend::BackendDb::getOneChildFromAllEntries ( OUString const &  sElementName)
protected
virtual OUString dp_registry::backend::BackendDb::getRootElementName ( )
protectedpure virtual
Reference< css::xml::xpath::XXPathAPI > const & dp_registry::backend::BackendDb::getXPathAPI ( )
protected
bool dp_registry::backend::BackendDb::hasActiveEntry ( OUString const &  url)

Definition at line 214 of file dp_backenddb.cxx.

References Any, cppu::getCaughtException(), getKeyElement(), and m_urlDb.

BackendDb& dp_registry::backend::BackendDb::operator= ( BackendDb const &  )
privatedelete
std::deque< OUString > dp_registry::backend::BackendDb::readList ( css::uno::Reference< css::xml::dom::XNode > const &  parent,
OUString const &  sListTagName,
OUString const &  sMemberTagName 
)
protected
OUString dp_registry::backend::BackendDb::readSimpleElement ( OUString const &  sElementName,
css::uno::Reference< css::xml::dom::XNode > const &  xParent 
)
protected
std::vector< std::pair< OUString, OUString > > dp_registry::backend::BackendDb::readVectorOfPair ( css::uno::Reference< css::xml::dom::XNode > const &  parent,
OUString const &  sListTagName,
OUString const &  sPairTagName,
OUString const &  sFirstTagName,
OUString const &  sSecondTagName 
)
protected
void dp_registry::backend::BackendDb::removeElement ( OUString const &  sXPathExpression)
protected

Definition at line 122 of file dp_backenddb.cxx.

References Any, cppu::getCaughtException(), getDocument(), getXPathAPI(), m_urlDb, and save().

Referenced by removeEntry().

void dp_registry::backend::BackendDb::removeEntry ( OUString const &  url)

Definition at line 155 of file dp_backenddb.cxx.

References getKeyElementName(), getNSPrefix(), removeElement(), and sPrefix.

Referenced by writeKeyElement().

void dp_registry::backend::BackendDb::revokeEntry ( OUString const &  url)

Definition at line 170 of file dp_backenddb.cxx.

References Any, cppu::getCaughtException(), getKeyElement(), m_urlDb, and save().

void dp_registry::backend::BackendDb::save ( )
protected
Reference< css::xml::dom::XNode > dp_registry::backend::BackendDb::writeKeyElement ( OUString const &  url)
protected
void dp_registry::backend::BackendDb::writeSimpleElement ( OUString const &  sElementName,
OUString const &  value,
css::uno::Reference< css::xml::dom::XNode > const &  xParent 
)
protected
void dp_registry::backend::BackendDb::writeSimpleList ( std::deque< OUString > const &  list,
OUString const &  sListTagName,
OUString const &  sMemberTagName,
css::uno::Reference< css::xml::dom::XNode > const &  xParent 
)
protected
void dp_registry::backend::BackendDb::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 
)
protected

Member Data Documentation

css::uno::Reference<css::xml::dom::XDocument> dp_registry::backend::BackendDb::m_doc
private

Definition at line 47 of file dp_backenddb.hxx.

Referenced by getDocument(), and save().

OUString dp_registry::backend::BackendDb::m_urlDb
protected
const css::uno::Reference<css::uno::XComponentContext> dp_registry::backend::BackendDb::m_xContext
protected

Definition at line 54 of file dp_backenddb.hxx.

Referenced by getDocument(), getXPathAPI(), and save().

css::uno::Reference<css::xml::xpath::XXPathAPI> dp_registry::backend::BackendDb::m_xpathApi
private

Definition at line 48 of file dp_backenddb.hxx.

Referenced by getXPathAPI().


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