Lines Matching refs:pKey

611 	ORegKey* pKey = static_cast< ORegKey* >(hKey);  in acquireKey()  local
612 if (!pKey) in acquireKey()
616 pKey->acquire(); in acquireKey()
626 ORegKey* pKey = static_cast< ORegKey* >(hKey); in releaseKey() local
627 if (!pKey) in releaseKey()
631 if (pKey->release() == 0) in releaseKey()
633 m_openKeyTable.erase(pKey->getName()); in releaseKey()
634 delete pKey; in releaseKey()
645 ORegKey* pKey; in createKey() local
655 pKey = (ORegKey*)hKey; in createKey()
657 pKey = m_openKeyTable[ROOT]; in createKey()
659 OUString sFullKeyName = pKey->getFullPath(keyName); in createKey()
681 if (rStoreDir.create(pKey->getStoreFile(), sFullPath.getStr(), token, KEY_MODE_CREATE)) in createKey()
692 pKey = new ORegKey(sFullKeyName, this); in createKey()
693 *phNewKey = pKey; in createKey()
694 m_openKeyTable[sFullKeyName] = pKey; in createKey()
706 ORegKey* pKey; in openKey() local
718 pKey = (ORegKey*)hKey; in openKey()
720 pKey = m_openKeyTable[ROOT]; in openKey()
722 OUString path(pKey->getFullPath(keyName)); in openKey()
727 pKey->getStoreFile(), path.copy(0, n), path.copy(n), in openKey()
754 ORegKey* pKey = static_cast< ORegKey* >(hKey); in closeKey() local
758 OUString const aKeyName (pKey->getName()); in closeKey()
762 if (pKey->isModified()) in closeKey()
765 if (pKey != pRootKey) in closeKey()
776 pKey->setModified(false); in closeKey()
780 return releaseKey(pKey); in closeKey()
788 ORegKey* pKey = static_cast< ORegKey* >(hKey); in deleteKey() local
794 if (!pKey) in deleteKey()
795 pKey = m_openKeyTable[ROOT]; in deleteKey()
797 OUString sFullKeyName(pKey->getFullPath(keyName)); in deleteKey()
801 RegError ORegistry::eraseKey(ORegKey* pKey, const OUString& keyName) in eraseKey() argument
810 OUString sFullKeyName(pKey->getName()); in eraseKey()
838 _ret = pKey->openKey(keyName, (RegKeyHandle*)&pOldKey); in eraseKey()
845 pKey->closeKey(pOldKey); in eraseKey()
852 OStoreFile sFile(pKey->getStoreFile()); in eraseKey()
862 return pKey->closeKey(pOldKey); in eraseKey()
868 RegError ORegistry::deleteSubkeysAndValues(ORegKey* pKey) in deleteSubkeysAndValues() argument
872 OStoreDirectory rStoreDir(pKey->getStoreDir()); in deleteSubkeysAndValues()
881 _ret = eraseKey(pKey, keyName); in deleteSubkeysAndValues()
887 OUString sFullPath(pKey->getName()); in deleteSubkeysAndValues()
892 if ( ((OStoreFile&)pKey->getStoreFile()).remove(sFullPath, keyName) ) in deleteSubkeysAndValues()
896 pKey->setModified(); in deleteSubkeysAndValues()
913 ORegKey* pKey = static_cast< ORegKey* >(hKey); in loadKey() local
933 _ret = loadAndSaveKeys(pKey, pRootKey, keyName, 0, bWarnings, bReport); in loadKey()
937 _ret = loadAndSaveValue(pKey, pRootKey, keyName, 0, bWarnings, bReport); in loadKey()
961 ORegKey* pKey = static_cast< ORegKey* >(hKey); in saveKey() local
972 OStoreDirectory rStoreDir(pKey->getStoreDir()); in saveKey()
981 _ret = loadAndSaveKeys(pRootKey, pKey, keyName, in saveKey()
982 pKey->getName().getLength(), in saveKey()
987 _ret = loadAndSaveValue(pRootKey, pKey, keyName, in saveKey()
988 pKey->getName().getLength(), in saveKey()
1422 ORegKey *pKey = (ORegKey*)hKey; in dumpRegistry() local
1426 OStoreDirectory rStoreDir(pKey->getStoreDir()); in dumpRegistry()
1430 OString keyName( OUStringToOString( pKey->getName(), RTL_TEXTENCODING_UTF8 ) ); in dumpRegistry()
1439 _ret = dumpKey(pKey->getName(), sName, 1); in dumpRegistry()
1442 _ret = dumpValue(pKey->getName(), sName, 1); in dumpRegistry()