Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QWinRegistryKey Class Reference

#include <qwinregistry_p.h>

Collaboration diagram for QWinRegistryKey:

Public Member Functions

 QWinRegistryKey ()=default
 QWinRegistryKey (HKEY parentHandle, const wchar_t *subKey, REGSAM permissions=KEY_READ, REGSAM access=0)
 QWinRegistryKey (HKEY parentHandle, const QString &subKey, REGSAM permissions=KEY_READ, REGSAM access=0)
 ~QWinRegistryKey ()
 QWinRegistryKey (QWinRegistryKey &&other) noexcept
void swap (QWinRegistryKey &other) noexcept
bool isValid () const
HKEY handle () const
 operator HKEY () const
void close ()
QString name () const
QVariant value (const wchar_t *subKey) const
QVariant value (const QString &subKey) const
template<typename T>
std::optional< T > value (const wchar_t *subKey) const
template<typename T>
std::optional< T > value (const QString &subKey) const
QString stringValue (const wchar_t *subKey) const
QString stringValue (const QString &subKey) const

Friends

Q_CORE_EXPORT QDebug operator<< (QDebug dbg, const QWinRegistryKey &key)

Detailed Description

Definition at line 28 of file qwinregistry_p.h.

Constructor & Destructor Documentation

◆ QWinRegistryKey() [1/4]

QWinRegistryKey::QWinRegistryKey ( )
default

◆ QWinRegistryKey() [2/4]

QWinRegistryKey::QWinRegistryKey ( HKEY parentHandle,
const wchar_t * subKey,
REGSAM permissions = KEY_READ,
REGSAM access = 0 )
explicit

Definition at line 34 of file qwinregistry.cpp.

◆ QWinRegistryKey() [3/4]

QWinRegistryKey::QWinRegistryKey ( HKEY parentHandle,
const QString & subKey,
REGSAM permissions = KEY_READ,
REGSAM access = 0 )
explicit

Definition at line 43 of file qwinregistry.cpp.

◆ ~QWinRegistryKey()

QWinRegistryKey::~QWinRegistryKey ( )

Definition at line 49 of file qwinregistry.cpp.

◆ QWinRegistryKey() [4/4]

QWinRegistryKey::QWinRegistryKey ( QWinRegistryKey && other)
inlinenoexcept

Definition at line 38 of file qwinregistry_p.h.

Member Function Documentation

◆ close()

void QWinRegistryKey::close ( )

Definition at line 54 of file qwinregistry.cpp.

◆ handle()

HKEY QWinRegistryKey::handle ( ) const
inlinenodiscard

Definition at line 48 of file qwinregistry_p.h.

◆ isValid()

bool QWinRegistryKey::isValid ( ) const
inlinenodiscard

Definition at line 46 of file qwinregistry_p.h.

◆ name()

QString QWinRegistryKey::name ( ) const

Definition at line 62 of file qwinregistry.cpp.

◆ operator HKEY()

QWinRegistryKey::operator HKEY ( ) const
inline

Definition at line 50 of file qwinregistry_p.h.

◆ stringValue() [1/2]

QString QWinRegistryKey::stringValue ( const QString & subKey) const

Definition at line 192 of file qwinregistry.cpp.

◆ stringValue() [2/2]

QString QWinRegistryKey::stringValue ( const wchar_t * subKey) const

Definition at line 185 of file qwinregistry.cpp.

◆ swap()

void QWinRegistryKey::swap ( QWinRegistryKey & other)
inlinenoexcept

Definition at line 41 of file qwinregistry_p.h.

◆ value() [1/4]

template<typename T>
std::optional< T > QWinRegistryKey::value ( const QString & subKey) const
inlinenodiscard

Definition at line 66 of file qwinregistry_p.h.

◆ value() [2/4]

QVariant QWinRegistryKey::value ( const QString & subKey) const
nodiscard

Definition at line 176 of file qwinregistry.cpp.

◆ value() [3/4]

template<typename T>
std::optional< T > QWinRegistryKey::value ( const wchar_t * subKey) const
inlinenodiscard

Definition at line 60 of file qwinregistry_p.h.

◆ value() [4/4]

QVariant QWinRegistryKey::value ( const wchar_t * subKey) const
nodiscard

Definition at line 95 of file qwinregistry.cpp.

◆ operator<<

Q_CORE_EXPORT QDebug operator<< ( QDebug dbg,
const QWinRegistryKey & key )
friend

Definition at line 242 of file qwinregistry.cpp.


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