LibreOffice Module registry (master) 1
|
#include <keyimpl.hxx>
Public Member Functions | |
ORegKey (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 () |
ORegistry * | getRegistry () const |
const store::OStoreFile & | getStoreFile () 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 |
ORegistry * | m_pRegistry |
Definition at line 30 of file keyimpl.hxx.
ORegKey::ORegKey | ( | OUString | keyName, |
ORegistry * | pReg | ||
) |
Definition at line 38 of file keyimpl.cxx.
References m_name, and m_refCount.
ORegKey::~ORegKey | ( | ) |
Definition at line 47 of file keyimpl.cxx.
References m_refCount, and SAL_WARN_IF.
|
inline |
Definition at line 37 of file keyimpl.hxx.
References m_refCount.
Referenced by ORegistry::acquireKey(), and ORegistry::createKey().
RegError ORegKey::closeKey | ( | RegKeyHandle | hKey | ) |
Definition at line 179 of file keyimpl.cxx.
References ORegistry::closeKey(), and m_pRegistry.
Referenced by closeKey(), ORegistry::eraseKey(), setLongListValue(), setStringListValue(), setUnicodeListValue(), and setValue().
sal_uInt32 ORegKey::countSubKeys | ( | ) |
Definition at line 859 of file keyimpl.cxx.
References count, store::OStoreDirectory::first(), getStoreDir(), ORegistry::m_mutex, storeFindData::m_nAttrib, m_pRegistry, store::OStoreDirectory::next(), REG_GUARD, STORE_ATTRIB_ISDIR, and store_E_None.
Referenced by getKeyNames(), and openSubKeys().
RegError ORegKey::createKey | ( | std::u16string_view | keyName, |
RegKeyHandle * | phNewKey | ||
) |
Definition at line 57 of file keyimpl.cxx.
References ORegistry::createKey(), and m_pRegistry.
Referenced by createKey().
RegError ORegKey::deleteKey | ( | std::u16string_view | keyName | ) |
Definition at line 184 of file keyimpl.cxx.
References ORegistry::deleteKey(), and m_pRegistry.
Referenced by deleteKey().
OUString ORegKey::getFullPath | ( | std::u16string_view | path | ) | const |
Definition at line 908 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 | ||
) |
Definition at line 125 of file keyimpl.cxx.
References countSubKeys(), store::OStoreDirectory::first(), getName(), getStoreDir(), storeFindData::m_nAttrib, storeFindData::m_nLength, storeFindData::m_pszName, store::OStoreDirectory::next(), NO_ERROR, openKey(), RegError, releaseKey(), ORegistry::ROOT, STORE_ATTRIB_ISDIR, and store_E_None.
Referenced by getKeyNames().
RegError ORegKey::getLongListValue | ( | std::u16string_view | valueName, |
sal_Int32 ** | pValueList, | ||
sal_uInt32 * | pLen | ||
) | const |
Definition at line 560 of file keyimpl.cxx.
References store::OStoreStream::create(), getStoreFile(), i, ORegistry::isReadOnly(), LONGLIST, ORegistry::m_mutex, m_name, m_pRegistry, NO_ERROR, store::OStoreStream::readAt(), readINT32(), readUINT32(), REG_GUARD, RegValueType, ORegistry::ROOT, type, VALUE_HEADEROFFSET, VALUE_HEADERSIZE, VALUE_NOT_EXISTS, and VALUE_TYPEOFFSET.
Referenced by getLongListValue().
|
inline |
Definition at line 124 of file keyimpl.hxx.
References m_name.
Referenced by ORegistry::closeKey(), ORegistry::deleteSubkeysAndValues(), ORegistry::dumpRegistry(), ORegistry::eraseKey(), getKeyName(), getKeyNames(), and ORegistry::releaseKey().
|
inline |
Definition at line 116 of file keyimpl.hxx.
References m_pRegistry.
Referenced by acquireKey(), dumpRegistry(), reg_dumpRegistry(), and releaseKey().
RegError ORegKey::getResolvedKeyName | ( | std::u16string_view | keyName, |
OUString & | resolvedName | ||
) | const |
Definition at line 849 of file keyimpl.cxx.
References getFullPath(), INVALID_KEYNAME, and NO_ERROR.
Referenced by getResolvedKeyName().
OStoreDirectory ORegKey::getStoreDir | ( | ) | const |
Definition at line 881 of file keyimpl.cxx.
References store::OStoreDirectory::create(), getStoreFile(), ORegistry::isReadOnly(), m_name, m_pRegistry, and ORegistry::ROOT.
Referenced by countSubKeys(), ORegistry::deleteSubkeysAndValues(), ORegistry::dumpRegistry(), getKeyNames(), and openSubKeys().
|
inline |
Definition at line 119 of file keyimpl.hxx.
References ORegistry::getStoreFile(), and m_pRegistry.
Referenced by ORegistry::createKey(), ORegistry::deleteSubkeysAndValues(), ORegistry::eraseKey(), getLongListValue(), getStoreDir(), getStringListValue(), getUnicodeListValue(), getValue(), ORegistry::openKey(), setLongListValue(), setStringListValue(), setUnicodeListValue(), and setValue().
RegError ORegKey::getStringListValue | ( | std::u16string_view | valueName, |
char *** | pValueList, | ||
sal_uInt32 * | pLen | ||
) | const |
Definition at line 660 of file keyimpl.cxx.
References store::OStoreStream::create(), getStoreFile(), i, ORegistry::isReadOnly(), ORegistry::m_mutex, m_name, m_pRegistry, NO_ERROR, store::OStoreStream::readAt(), readUINT32(), readUtf8(), REG_GUARD, RegValueType, ORegistry::ROOT, STRINGLIST, type, VALUE_HEADEROFFSET, VALUE_HEADERSIZE, VALUE_NOT_EXISTS, and VALUE_TYPEOFFSET.
Referenced by getStringListValue().
RegError ORegKey::getUnicodeListValue | ( | std::u16string_view | valueName, |
sal_Unicode *** | pValueList, | ||
sal_uInt32 * | pLen | ||
) | const |
Definition at line 754 of file keyimpl.cxx.
References store::OStoreStream::create(), getStoreFile(), i, ORegistry::isReadOnly(), ORegistry::m_mutex, m_name, m_pRegistry, NO_ERROR, store::OStoreStream::readAt(), readString(), readUINT32(), REG_GUARD, RegValueType, ORegistry::ROOT, type, VALUE_HEADEROFFSET, VALUE_HEADERSIZE, VALUE_NOT_EXISTS, and VALUE_TYPEOFFSET.
Referenced by getUnicodeListValue().
Definition at line 484 of file keyimpl.cxx.
References BINARY, store::OStoreStream::create(), getStoreFile(), ORegistry::isReadOnly(), LONG, ORegistry::m_mutex, m_name, m_pRegistry, NO_ERROR, store::OStoreStream::readAt(), readINT32(), readString(), readUINT32(), readUtf8(), REG_GUARD, RegValueType, ORegistry::ROOT, STRING, type, UNICODE, value, VALUE_HEADEROFFSET, VALUE_HEADERSIZE, VALUE_NOT_EXISTS, and VALUE_TYPEOFFSET.
Referenced by getValue().
RegError ORegKey::getValueInfo | ( | std::u16string_view | valueName, |
RegValueType * | pValueTye, | ||
sal_uInt32 * | pValueSize | ||
) | const |
Definition at line 189 of file keyimpl.cxx.
References BINARY, store::OStoreStream::create(), ORegistry::getStoreFile(), ORegistry::isReadOnly(), ORegistry::m_mutex, m_name, m_pRegistry, NO_ERROR, NOT_DEFINED, store::OStoreStream::readAt(), readUINT32(), REG_GUARD, RegValueType, ORegistry::ROOT, size, type, VALUE_HEADEROFFSET, VALUE_HEADERSIZE, VALUE_NOT_EXISTS, and VALUE_TYPEOFFSET.
Referenced by getValueInfo().
|
inline |
Definition at line 99 of file keyimpl.hxx.
References m_bDeleted.
Referenced by createKey(), deleteKey(), dumpRegistry(), getKeyNames(), getLongListValue(), getResolvedKeyName(), getStringListValue(), getUnicodeListValue(), getValue(), getValueInfo(), openKey(), openSubKeys(), setLongListValue(), setStringListValue(), setUnicodeListValue(), and setValue().
|
inline |
Definition at line 105 of file keyimpl.hxx.
References m_bModified.
Referenced by ORegistry::closeKey().
|
inline |
Definition at line 111 of file keyimpl.hxx.
References ORegistry::isReadOnly(), and m_pRegistry.
Referenced by createKey(), deleteKey(), isKeyReadOnly(), setLongListValue(), setStringListValue(), setUnicodeListValue(), and setValue().
RegError ORegKey::openKey | ( | std::u16string_view | keyName, |
RegKeyHandle * | phOpenKey | ||
) |
Definition at line 62 of file keyimpl.cxx.
References m_pRegistry, and ORegistry::openKey().
Referenced by ORegistry::eraseKey(), getKeyNames(), getLongListValue(), getStringListValue(), getUnicodeListValue(), getValue(), getValueInfo(), openKey(), openSubKeys(), setLongListValue(), setStringListValue(), setUnicodeListValue(), and setValue().
RegError ORegKey::openSubKeys | ( | std::u16string_view | keyName, |
RegKeyHandle ** | phOpenSubKeys, | ||
sal_uInt32 * | pnSubKeys | ||
) |
Definition at line 67 of file keyimpl.cxx.
References countSubKeys(), store::OStoreDirectory::first(), getStoreDir(), storeFindData::m_nAttrib, storeFindData::m_nLength, storeFindData::m_pszName, store::OStoreDirectory::next(), NO_ERROR, openKey(), RegError, releaseKey(), STORE_ATTRIB_ISDIR, and store_E_None.
Referenced by openSubKeys().
|
inline |
Definition at line 40 of file keyimpl.hxx.
References m_refCount.
Referenced by ORegistry::releaseKey().
RegError ORegKey::releaseKey | ( | RegKeyHandle | hKey | ) |
Definition at line 52 of file keyimpl.cxx.
References m_pRegistry, and ORegistry::releaseKey().
Referenced by getKeyNames(), getLongListValue(), getStringListValue(), getUnicodeListValue(), getValue(), getValueInfo(), and openSubKeys().
|
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 | ||
) |
Definition at line 309 of file keyimpl.cxx.
References store::OStoreStream::create(), getStoreFile(), i, ORegistry::isReadOnly(), LONGLIST, ORegistry::m_mutex, m_name, m_pRegistry, NO_ERROR, REG_GUARD, REGISTRY_READONLY, ORegistry::ROOT, SET_VALUE_FAILED, setModified(), size, type, VALUE_HEADEROFFSET, VALUE_HEADERSIZE, VALUE_TYPEOFFSET, store::OStoreStream::writeAt(), writeINT32(), and writeUINT32().
Referenced by setLongListValue().
|
inline |
Definition at line 108 of file keyimpl.hxx.
References m_bModified.
Referenced by ORegistry::closeKey(), ORegistry::deleteSubkeysAndValues(), ORegistry::eraseKey(), setLongListValue(), setStringListValue(), setUnicodeListValue(), and setValue().
RegError ORegKey::setStringListValue | ( | std::u16string_view | valueName, |
char ** | pValueList, | ||
sal_uInt32 | len | ||
) |
Definition at line 361 of file keyimpl.cxx.
References store::OStoreStream::create(), getStoreFile(), i, ORegistry::isReadOnly(), ORegistry::m_mutex, m_name, m_pRegistry, NO_ERROR, REG_GUARD, REGISTRY_READONLY, ORegistry::ROOT, SET_VALUE_FAILED, setModified(), size, STRINGLIST, type, VALUE_HEADEROFFSET, VALUE_HEADERSIZE, VALUE_TYPEOFFSET, store::OStoreStream::writeAt(), writeUINT32(), and writeUtf8().
Referenced by setStringListValue().
RegError ORegKey::setUnicodeListValue | ( | std::u16string_view | valueName, |
sal_Unicode ** | pValueList, | ||
sal_uInt32 | len | ||
) |
Definition at line 423 of file keyimpl.cxx.
References store::OStoreStream::create(), getStoreFile(), i, ORegistry::isReadOnly(), ORegistry::m_mutex, m_name, m_pRegistry, NO_ERROR, REG_GUARD, REGISTRY_READONLY, ORegistry::ROOT, SET_VALUE_FAILED, setModified(), size, type, VALUE_HEADEROFFSET, VALUE_HEADERSIZE, VALUE_TYPEOFFSET, store::OStoreStream::writeAt(), writeString(), and writeUINT32().
Referenced by setUnicodeListValue().
RegError ORegKey::setValue | ( | std::u16string_view | valueName, |
RegValueType | vType, | ||
RegValue | value, | ||
sal_uInt32 | vSize | ||
) |
Definition at line 241 of file keyimpl.cxx.
References BINARY, store::OStoreStream::create(), getStoreFile(), ORegistry::isReadOnly(), LONG, ORegistry::m_mutex, m_name, m_pRegistry, NO_ERROR, NOT_DEFINED, REG_GUARD, REGISTRY_READONLY, ORegistry::ROOT, SET_VALUE_FAILED, setModified(), size, STRING, type, UNICODE, value, VALUE_HEADEROFFSET, VALUE_HEADERSIZE, VALUE_TYPEOFFSET, store::OStoreStream::writeAt(), writeINT32(), writeString(), writeUINT32(), and writeUtf8().
Referenced by setValue().
|
private |
Definition at line 132 of file keyimpl.hxx.
Referenced by isDeleted(), and setDeleted().
|
private |
Definition at line 133 of file keyimpl.hxx.
Referenced by isModified(), and setModified().
|
private |
Definition at line 131 of file keyimpl.hxx.
Referenced by getFullPath(), getLongListValue(), getName(), getStoreDir(), getStringListValue(), getUnicodeListValue(), getValue(), getValueInfo(), setLongListValue(), setStringListValue(), setUnicodeListValue(), and setValue().
|
private |
Definition at line 134 of file keyimpl.hxx.
Referenced by closeKey(), countSubKeys(), createKey(), deleteKey(), getLongListValue(), getRegistry(), getStoreDir(), getStoreFile(), getStringListValue(), getUnicodeListValue(), getValue(), getValueInfo(), isReadOnly(), openKey(), releaseKey(), setLongListValue(), setStringListValue(), setUnicodeListValue(), and setValue().
|
private |
Definition at line 130 of file keyimpl.hxx.
Referenced by acquire(), release(), and ~ORegKey().