LibreOffice Module registry (master) 1
|
The Registry provides the functionality to read and write information in a registry file. More...
#include <registry.hxx>
Public Member Functions | |
Registry () | |
Default constructor. More... | |
Registry (const Registry &toCopy) | |
Copy constructor. More... | |
Registry (Registry &&other) noexcept | |
~Registry () | |
Destructor. The Destructor close the registry if it is open. More... | |
Registry & | operator= (const Registry &toAssign) |
Assign operator. More... | |
Registry & | operator= (Registry &&other) |
bool | isValid () const |
checks if the registry points to a valid registry data file. More... | |
bool | isReadOnly () const |
returns the access mode of the registry. More... | |
RegError | openRootKey (RegistryKey &rRootKey) |
opens the root key of the registry. More... | |
OUString | getName () |
returns the name of the current registry data file. More... | |
RegError | create (const OUString ®istryName) |
creates a new registry with the specified name and creates a root key. More... | |
RegError | open (const OUString ®istryName, RegAccessMode accessMode) |
opens a registry with the specified name. More... | |
RegError | close () |
closes explicitly the current registry data file. More... | |
RegError | destroy (const OUString ®istryName) |
destroys a registry. More... | |
const Registry_Api * | getApi () const |
returns the used registry Api. More... | |
Private Attributes | |
const Registry_Api * | m_pApi |
stores the used and initialized registry Api. More... | |
RegHandle | m_hImpl |
stores the handle of the underlying registry file on which most of the functions work. More... | |
Friends | |
class | RegistryKey |
class | RegistryKeyArray |
class | RegistryKeyNames |
The Registry provides the functionality to read and write information in a registry file.
The class is implemented inline and use a C-Api.
Definition at line 81 of file registry.hxx.
|
inline |
Default constructor.
Definition at line 938 of file registry.hxx.
|
inline |
|
inlinenoexcept |
Definition at line 91 of file registry.hxx.
|
inline |
Destructor. The Destructor close the registry if it is open.
Definition at line 952 of file registry.hxx.
|
inline |
|
inline |
creates a new registry with the specified name and creates a root key.
registryName | specifies the name of the new registry. |
Definition at line 990 of file registry.hxx.
|
inline |
|
inline |
returns the used registry Api.
Definition at line 161 of file registry.hxx.
References m_pApi.
Referenced by RegistryValueList< ValueType >::~RegistryValueList().
|
inline |
returns the name of the current registry data file.
Definition at line 983 of file registry.hxx.
References m_hImpl, and m_pApi.
Referenced by RegistryKey::getRegistryName().
|
inline |
returns the access mode of the registry.
Definition at line 974 of file registry.hxx.
|
inline |
checks if the registry points to a valid registry data file.
Definition at line 971 of file registry.hxx.
References m_hImpl.
Referenced by RegistryKey::closeKey(), RegistryKey::createKey(), RegistryKey::deleteKey(), RegistryKeyArray::getElement(), RegistryValueList< ValueType >::getElement(), RegistryKey::getKeyNames(), RegistryKey::getLongListValue(), RegistryKey::getName(), RegistryKey::getRegistryName(), RegistryKey::getResolvedKeyName(), RegistryKey::getStringListValue(), RegistryKey::getUnicodeListValue(), RegistryKey::getValue(), RegistryKey::getValueInfo(), RegistryKey::isReadOnly(), RegistryKey::openKey(), RegistryKey::openSubKeys(), RegistryKey::setLongListValue(), RegistryKey::setStringListValue(), RegistryKey::setUnicodeListValue(), and RegistryKey::setValue().
|
inline |
opens a registry with the specified name.
If the registry already points to a valid registry, the old registry will be closed.
registryName | specifies a registry name. |
accessMode | specifies the access mode for the registry, RegAccessMode::READONLY or RegAccessMode::READWRITE. |
Definition at line 997 of file registry.hxx.
|
inline |
opens the root key of the registry.
rRootKey | reference to a RegistryKey which is filled with the rootkey. |
Definition at line 977 of file registry.hxx.
References m_hImpl, RegistryKey::m_hImpl, and m_pApi.
Definition at line 100 of file registry.hxx.
|
friend |
Definition at line 156 of file registry.hxx.
|
friend |
Definition at line 157 of file registry.hxx.
|
friend |
Definition at line 158 of file registry.hxx.
|
private |
stores the handle of the underlying registry file on which most of the functions work.
Definition at line 167 of file registry.hxx.
Referenced by close(), create(), destroy(), getName(), isReadOnly(), isValid(), open(), openRootKey(), operator=(), Registry(), and ~Registry().
|
private |
stores the used and initialized registry Api.
Definition at line 165 of file registry.hxx.
Referenced by close(), RegistryKey::closeKey(), create(), RegistryKey::createKey(), RegistryKey::deleteKey(), destroy(), getApi(), RegistryKey::getKeyNames(), RegistryKey::getLongListValue(), getName(), RegistryKey::getName(), RegistryKey::getResolvedKeyName(), RegistryKey::getStringListValue(), RegistryKey::getUnicodeListValue(), RegistryKey::getValue(), RegistryKey::getValueInfo(), isReadOnly(), RegistryKey::isReadOnly(), open(), RegistryKey::openKey(), openRootKey(), RegistryKey::openSubKeys(), RegistryKey::operator=(), operator=(), Registry(), RegistryKey::RegistryKey(), RegistryKey::setLongListValue(), RegistryKey::setStringListValue(), RegistryKey::setUnicodeListValue(), RegistryKey::setValue(), ~Registry(), RegistryKey::~RegistryKey(), RegistryKeyArray::~RegistryKeyArray(), and RegistryKeyNames::~RegistryKeyNames().