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 (const OUString &keyName, RegKeyHandle *phNewKey)
 
RegError openKey (const OUString &keyName, RegKeyHandle *phOpenKey)
 
RegError openSubKeys (const OUString &keyName, RegKeyHandle **phOpenSubKeys, sal_uInt32 *pnSubKeys)
 
RegError getKeyNames (const OUString &keyName, rtl_uString ***pSubKeyNames, sal_uInt32 *pnSubKeys)
 
RegError closeKey (RegKeyHandle hKey)
 
RegError deleteKey (const OUString &keyName)
 
RegError getValueInfo (const OUString &valueName, RegValueType *pValueTye, sal_uInt32 *pValueSize) const
 
RegError setValue (const OUString &valueName, RegValueType vType, RegValue value, sal_uInt32 vSize)
 
RegError setLongListValue (const OUString &valueName, sal_Int32 const *pValueList, sal_uInt32 len)
 
RegError setStringListValue (const OUString &valueName, char **pValueList, sal_uInt32 len)
 
RegError setUnicodeListValue (const OUString &valueName, sal_Unicode **pValueList, sal_uInt32 len)
 
RegError getValue (const OUString &valueName, RegValue value) const
 
RegError getLongListValue (const OUString &valueName, sal_Int32 **pValueList, sal_uInt32 *pLen) const
 
RegError getStringListValue (const OUString &valueName, char ***pValueList, sal_uInt32 *pLen) const
 
RegError getUnicodeListValue (const OUString &valueName, sal_Unicode ***pValueList, sal_uInt32 *pLen) const
 
RegError getResolvedKeyName (const OUString &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 (OUString const &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 26 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 33 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 ( const OUString &  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 ( const OUString &  keyName)

Definition at line 210 of file keyimpl.cxx.

References ORegistry::deleteKey(), and m_pRegistry.

Referenced by deleteKey().

OUString ORegKey::getFullPath ( OUString const &  path) const

Definition at line 969 of file keyimpl.cxx.

References m_name.

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

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

Definition at line 112 of file keyimpl.hxx.

References m_pRegistry.

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

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

Definition at line 907 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 ( const OUString &  valueName,
char ***  pValueList,
sal_uInt32 *  pLen 
) const
RegError ORegKey::getUnicodeListValue ( const OUString &  valueName,
sal_Unicode ***  pValueList,
sal_uInt32 *  pLen 
) const
RegError ORegKey::getValue ( const OUString &  valueName,
RegValue  value 
) const
RegError ORegKey::getValueInfo ( const OUString &  valueName,
RegValueType pValueTye,
sal_uInt32 *  pValueSize 
) const
bool ORegKey::isDeleted ( ) const
inline
bool ORegKey::isModified ( ) const
inline

Definition at line 101 of file keyimpl.hxx.

References m_bModified.

Referenced by ORegistry::closeKey().

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

Definition at line 36 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 98 of file keyimpl.hxx.

References m_bDeleted.

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

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

Member Data Documentation

bool ORegKey::m_bDeleted
private

Definition at line 128 of file keyimpl.hxx.

Referenced by isDeleted(), and setDeleted().

bool ORegKey::m_bModified
private

Definition at line 129 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 126 of file keyimpl.hxx.

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


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