Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QWinRegistryKey Class Reference

#include <qwinregistry_p.h>

+ Collaboration diagram for QWinRegistryKey:

Public Member Functions

 QWinRegistryKey ()
 
 QWinRegistryKey (HKEY parentHandle, QStringView 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 ()
 
QVariant value (QStringView subKey) const
 
template<typename T >
std::optional< T > value (QStringView subKey) const
 
QString stringValue (QStringView subKey) const
 
std::pair< DWORD, bool > dwordValue (QStringView subKey) const
 

Detailed Description

Definition at line 26 of file qwinregistry_p.h.

Constructor & Destructor Documentation

◆ QWinRegistryKey() [1/3]

QT_BEGIN_NAMESPACE QWinRegistryKey::QWinRegistryKey ( )

Definition at line 11 of file qwinregistry.cpp.

◆ QWinRegistryKey() [2/3]

QWinRegistryKey::QWinRegistryKey ( HKEY parentHandle,
QStringView subKey,
REGSAM permissions = KEY_READ,
REGSAM access = 0 )
explicit

Definition at line 17 of file qwinregistry.cpp.

◆ ~QWinRegistryKey()

QWinRegistryKey::~QWinRegistryKey ( )

Definition at line 26 of file qwinregistry.cpp.

References close().

+ Here is the call graph for this function:

◆ QWinRegistryKey() [3/3]

QWinRegistryKey::QWinRegistryKey ( QWinRegistryKey && other)
inlinenoexcept

Definition at line 36 of file qwinregistry_p.h.

Member Function Documentation

◆ close()

void QWinRegistryKey::close ( )

Definition at line 31 of file qwinregistry.cpp.

References isValid().

Referenced by ~QWinRegistryKey().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dwordValue()

std::pair< DWORD, bool > QWinRegistryKey::dwordValue ( QStringView subKey) const

Definition at line 128 of file qwinregistry.cpp.

Referenced by QWindowsContext::readAdvancedExplorerSettings(), and QWindowsCursor::size().

+ Here is the caller graph for this function:

◆ handle()

HKEY QWinRegistryKey::handle ( ) const
inline

Definition at line 43 of file qwinregistry_p.h.

◆ isValid()

bool QWinRegistryKey::isValid ( ) const
inline

Definition at line 41 of file qwinregistry_p.h.

Referenced by close(), qt_accentColor(), and value().

+ Here is the caller graph for this function:

◆ operator HKEY()

QWinRegistryKey::operator HKEY ( ) const
inline

Definition at line 45 of file qwinregistry_p.h.

◆ stringValue()

QString QWinRegistryKey::stringValue ( QStringView subKey) const

Definition at line 123 of file qwinregistry.cpp.

Referenced by QWindowsFontEngineDirectWrite::fontNameSubstitute(), QSysInfo::machineUniqueId(), and mailCommand().

+ Here is the caller graph for this function:

◆ swap()

void QWinRegistryKey::swap ( QWinRegistryKey & other)
inlinenoexcept

Definition at line 39 of file qwinregistry_p.h.

References other(), and qSwap().

+ Here is the call graph for this function:

◆ value() [1/2]

QVariant QWinRegistryKey::value ( QStringView subKey) const

Definition at line 39 of file qwinregistry.cpp.

References QList< T >::append(), QString::fromWCharArray(), i, QString::isEmpty(), isValid(), QString::length(), list, nullptr, ret, and str.

Referenced by qt_accentColor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ value() [2/2]

template<typename T >
std::optional< T > QWinRegistryKey::value ( QStringView subKey) const
inline

Definition at line 51 of file qwinregistry_p.h.

References QVariant::isValid(), and var.

+ Here is the call graph for this function:

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