LibreOffice Module registry (master)  1
Public Member Functions | Private Attributes | List of all members
ORegKey Class Reference

#include <keyimpl.hxx>

Collaboration diagram for ORegKey:
[legend]

Public Member Functions

 ORegKey (const OUString &keyName, ORegistry *pReg)
 
 ~ORegKey ()
 
void acquire ()
 
sal_uInt32 release ()
 
RegError releaseKey (RegKeyHandle hKey)
 
RegError createKey (std::u16string_view keyName, RegKeyHandle *phNewKey)
 
RegError openKey (std::u16string_view keyName, RegKeyHandle *phOpenKey)
 
RegError openSubKeys (std::u16string_view keyName, RegKeyHandle **phOpenSubKeys, sal_uInt32 *pnSubKeys)
 
RegError getKeyNames (std::u16string_view keyName, rtl_uString ***pSubKeyNames, sal_uInt32 *pnSubKeys)
 
RegError closeKey (RegKeyHandle hKey)
 
RegError deleteKey (std::u16string_view keyName)
 
RegError getValueInfo (std::u16string_view valueName, RegValueType *pValueTye, sal_uInt32 *pValueSize) const
 
RegError setValue (std::u16string_view valueName, RegValueType vType, RegValue value, sal_uInt32 vSize)
 
RegError setLongListValue (std::u16string_view valueName, sal_Int32 const *pValueList, sal_uInt32 len)
 
RegError setStringListValue (std::u16string_view valueName, char **pValueList, sal_uInt32 len)
 
RegError setUnicodeListValue (std::u16string_view valueName, sal_Unicode **pValueList, sal_uInt32 len)
 
RegError getValue (std::u16string_view valueName, RegValue value) const
 
RegError getLongListValue (std::u16string_view valueName, sal_Int32 **pValueList, sal_uInt32 *pLen) const
 
RegError getStringListValue (std::u16string_view valueName, char ***pValueList, sal_uInt32 *pLen) const
 
RegError getUnicodeListValue (std::u16string_view valueName, sal_Unicode ***pValueList, sal_uInt32 *pLen) const
 
RegError getResolvedKeyName (std::u16string_view keyName, OUString &resolvedName) const
 
bool isDeleted () const
 
void setDeleted (bool bKeyDeleted)
 
bool isModified () const
 
void setModified (bool bModified=true)
 
bool isReadOnly () const
 
sal_uInt32 countSubKeys ()
 
ORegistrygetRegistry () const
 
const store::OStoreFilegetStoreFile () const
 
store::OStoreDirectory getStoreDir () const
 
const OUString & getName () const
 
OUString getFullPath (std::u16string_view path) const
 

Private Attributes

sal_uInt32 m_refCount
 
OUString m_name
 
bool m_bDeleted:1
 
bool m_bModified:1
 
ORegistrym_pRegistry
 

Detailed Description

Definition at line 30 of file keyimpl.hxx.

Constructor & Destructor Documentation

ORegKey::ORegKey ( const OUString &  keyName,
ORegistry pReg 
)

Definition at line 40 of file keyimpl.cxx.

References m_name, and m_refCount.

ORegKey::~ORegKey ( )

Definition at line 52 of file keyimpl.cxx.

References m_refCount, and SAL_WARN_IF.

Member Function Documentation

void ORegKey::acquire ( )
inline

Definition at line 37 of file keyimpl.hxx.

References m_refCount.

Referenced by ORegistry::acquireKey(), and ORegistry::createKey().

RegError ORegKey::closeKey ( RegKeyHandle  hKey)
sal_uInt32 ORegKey::countSubKeys ( )
RegError ORegKey::createKey ( std::u16string_view  keyName,
RegKeyHandle phNewKey 
)

Definition at line 68 of file keyimpl.cxx.

References ORegistry::createKey(), and m_pRegistry.

Referenced by createKey(), and mergeKey().

RegError ORegKey::deleteKey ( std::u16string_view  keyName)

Definition at line 210 of file keyimpl.cxx.

References ORegistry::deleteKey(), and m_pRegistry.

Referenced by deleteKey().

OUString ORegKey::getFullPath ( std::u16string_view  path) const

Definition at line 964 of file keyimpl.cxx.

References m_name.

Referenced by ORegistry::createKey(), ORegistry::deleteKey(), getResolvedKeyName(), and ORegistry::openKey().

RegError ORegKey::getKeyNames ( std::u16string_view  keyName,
rtl_uString ***  pSubKeyNames,
sal_uInt32 *  pnSubKeys 
)
RegError ORegKey::getLongListValue ( std::u16string_view  valueName,
sal_Int32 **  pValueList,
sal_uInt32 *  pLen 
) const
const OUString& ORegKey::getName ( ) const
inline
ORegistry* ORegKey::getRegistry ( ) const
inline

Definition at line 116 of file keyimpl.hxx.

References m_pRegistry.

Referenced by acquireKey(), dumpRegistry(), mergeKey(), reg_dumpRegistry(), and releaseKey().

RegError ORegKey::getResolvedKeyName ( std::u16string_view  keyName,
OUString &  resolvedName 
) const

Definition at line 902 of file keyimpl.cxx.

References getFullPath(), INVALID_KEYNAME, and NO_ERROR.

Referenced by getResolvedKeyName().

OStoreDirectory ORegKey::getStoreDir ( ) const
const store::OStoreFile& ORegKey::getStoreFile ( ) const
inline
RegError ORegKey::getStringListValue ( std::u16string_view  valueName,
char ***  pValueList,
sal_uInt32 *  pLen 
) const
RegError ORegKey::getUnicodeListValue ( std::u16string_view  valueName,
sal_Unicode ***  pValueList,
sal_uInt32 *  pLen 
) const
RegError ORegKey::getValue ( std::u16string_view  valueName,
RegValue  value 
) const
RegError ORegKey::getValueInfo ( std::u16string_view  valueName,
RegValueType pValueTye,
sal_uInt32 *  pValueSize 
) const
bool ORegKey::isDeleted ( ) const
inline
bool ORegKey::isModified ( ) const
inline

Definition at line 105 of file keyimpl.hxx.

References m_bModified.

Referenced by ORegistry::closeKey().

bool ORegKey::isReadOnly ( ) const
inline
RegError ORegKey::openKey ( std::u16string_view  keyName,
RegKeyHandle phOpenKey 
)
RegError ORegKey::openSubKeys ( std::u16string_view  keyName,
RegKeyHandle **  phOpenSubKeys,
sal_uInt32 *  pnSubKeys 
)
sal_uInt32 ORegKey::release ( )
inline

Definition at line 40 of file keyimpl.hxx.

References m_refCount.

Referenced by ORegistry::releaseKey().

RegError ORegKey::releaseKey ( RegKeyHandle  hKey)
void ORegKey::setDeleted ( bool  bKeyDeleted)
inline

Definition at line 102 of file keyimpl.hxx.

References m_bDeleted.

Referenced by ORegistry::createKey(), and ORegistry::eraseKey().

RegError ORegKey::setLongListValue ( std::u16string_view  valueName,
sal_Int32 const *  pValueList,
sal_uInt32  len 
)
void ORegKey::setModified ( bool  bModified = true)
inline
RegError ORegKey::setStringListValue ( std::u16string_view  valueName,
char **  pValueList,
sal_uInt32  len 
)
RegError ORegKey::setUnicodeListValue ( std::u16string_view  valueName,
sal_Unicode **  pValueList,
sal_uInt32  len 
)
RegError ORegKey::setValue ( std::u16string_view  valueName,
RegValueType  vType,
RegValue  value,
sal_uInt32  vSize 
)

Member Data Documentation

bool ORegKey::m_bDeleted
private

Definition at line 132 of file keyimpl.hxx.

Referenced by isDeleted(), and setDeleted().

bool ORegKey::m_bModified
private

Definition at line 133 of file keyimpl.hxx.

Referenced by isModified(), and setModified().

OUString ORegKey::m_name
private
ORegistry* ORegKey::m_pRegistry
private
sal_uInt32 ORegKey::m_refCount
private

Definition at line 130 of file keyimpl.hxx.

Referenced by acquire(), release(), and ~ORegKey().


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