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
QWinSettingsPrivate Class Reference
+ Inheritance diagram for QWinSettingsPrivate:
+ Collaboration diagram for QWinSettingsPrivate:

Public Member Functions

 QWinSettingsPrivate (QSettings::Scope scope, const QString &organization, const QString &application, REGSAM access=0)
 
 QWinSettingsPrivate (QString rKey, REGSAM access=0)
 
 ~QWinSettingsPrivate () override
 
void remove (const QString &uKey) override
 
void set (const QString &uKey, const QVariant &value) override
 
std::optional< QVariantget (const QString &uKey) const override
 
QStringList children (const QString &uKey, ChildSpec spec) const override
 
void clear () override
 
void sync () override
 
void flush () override
 
bool isWritable () const override
 
HKEY writeHandle () const
 
std::optional< QVariantreadKey (HKEY parentHandle, const QString &rSubKey) const
 
QString fileName () const override
 
- Public Member Functions inherited from QSettingsPrivate
 QSettingsPrivate (QSettings::Format format)
 
 QSettingsPrivate (QSettings::Format format, QSettings::Scope scope, const QString &organization, const QString &application)
 
virtual ~QSettingsPrivate ()
 
QVariant value (QAnyStringView key, const QVariant *defaultValue) const
 
QString actualKey (QAnyStringView key) const
 
void beginGroupOrArray (const QSettingsGroup &group)
 
void setStatus (QSettings::Status status) const
 
void requestUpdate ()
 
void update ()
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Additional Inherited Members

- Public Types inherited from QSettingsPrivate
enum  ChildSpec { AllKeys , ChildKeys , ChildGroups }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Member Functions inherited from QSettingsPrivate
static QString normalizedKey (QAnyStringView key)
 
static QSettingsPrivatecreate (QSettings::Format format, QSettings::Scope scope, const QString &organization, const QString &application)
 
static QSettingsPrivatecreate (const QString &fileName, QSettings::Format format)
 
static void processChild (QStringView key, ChildSpec spec, QStringList &result)
 
static QStringList variantListToStringList (const QVariantList &l)
 
static QVariant stringListToVariantList (const QStringList &l)
 
static QString variantToString (const QVariant &v)
 
static QVariant stringToVariant (const QString &s)
 
static void iniEscapedKey (const QString &key, QByteArray &result)
 
static bool iniUnescapedKey (QByteArrayView key, QString &result)
 
static void iniEscapedString (const QString &str, QByteArray &result)
 
static void iniEscapedStringList (const QStringList &strs, QByteArray &result)
 
static bool iniUnescapedStringList (QByteArrayView str, QString &stringResult, QStringList &stringListResult)
 
static QStringList splitArgs (const QString &s, qsizetype idx)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 
- Public Attributes inherited from QSettingsPrivate
QSettings::Format format
 
QSettings::Scope scope
 
QString organizationName
 
QString applicationName
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 
- Protected Attributes inherited from QSettingsPrivate
QStack< QSettingsGroupgroupStack
 
QString groupPrefix
 
bool fallbacks
 
bool pendingChanges
 
bool atomicSyncOnly = true
 
QSettings::Status status
 

Detailed Description

Definition at line 345 of file qsettings_win.cpp.

Constructor & Destructor Documentation

◆ QWinSettingsPrivate() [1/2]

QWinSettingsPrivate::QWinSettingsPrivate ( QSettings::Scope scope,
const QString & organization,
const QString & application,
REGSAM access = 0 )

Definition at line 372 of file qsettings_win.cpp.

References QSettings::AccessError, QList< T >::append(), QString::isEmpty(), QList< T >::isEmpty(), QSettingsPrivate::scope, QSettingsPrivate::setStatus(), and QSettings::UserScope.

+ Here is the call graph for this function:

◆ QWinSettingsPrivate() [2/2]

QWinSettingsPrivate::QWinSettingsPrivate ( QString rKey,
REGSAM access = 0 )

Definition at line 401 of file qsettings_win.cpp.

References QList< T >::append(), and keyName().

+ Here is the call graph for this function:

◆ ~QWinSettingsPrivate()

QWinSettingsPrivate::~QWinSettingsPrivate ( )
override

Definition at line 547 of file qsettings_win.cpp.

References QList< T >::constFirst(), i, RegistryKey::key(), qErrnoWarning(), qUtf16Printable, QList< T >::size(), and writeHandle().

+ Here is the call graph for this function:

Member Function Documentation

◆ children()

QStringList QWinSettingsPrivate::children ( const QString & uKey,
ChildSpec spec ) const
overridevirtual

Implements QSettingsPrivate.

Definition at line 721 of file qsettings_win.cpp.

References QSettingsPrivate::AllKeys, allKeys(), childKeysOrGroups(), escapedKey(), QSettingsPrivate::fallbacks, keys, mergeKeySets(), and openKey().

+ Here is the call graph for this function:

◆ clear()

void QWinSettingsPrivate::clear ( )
overridevirtual

Implements QSettingsPrivate.

Definition at line 758 of file qsettings_win.cpp.

References remove().

+ Here is the call graph for this function:

◆ fileName()

QString QWinSettingsPrivate::fileName ( ) const
overridevirtual

Implements QSettingsPrivate.

Definition at line 774 of file qsettings_win.cpp.

References QList< T >::at(), QList< T >::isEmpty(), and RegistryKey::key().

+ Here is the call graph for this function:

◆ flush()

void QWinSettingsPrivate::flush ( )
overridevirtual

Implements QSettingsPrivate.

Definition at line 769 of file qsettings_win.cpp.

◆ get()

std::optional< QVariant > QWinSettingsPrivate::get ( const QString & uKey) const
overridevirtual

Implements QSettingsPrivate.

Definition at line 704 of file qsettings_win.cpp.

References escapedKey(), QSettingsPrivate::fallbacks, and readKey().

+ Here is the call graph for this function:

◆ isWritable()

bool QWinSettingsPrivate::isWritable ( ) const
overridevirtual

Implements QSettingsPrivate.

Definition at line 789 of file qsettings_win.cpp.

References writeHandle().

+ Here is the call graph for this function:

◆ readKey()

std::optional< QVariant > QWinSettingsPrivate::readKey ( HKEY parentHandle,
const QString & rSubKey ) const

Definition at line 447 of file qsettings_win.cpp.

References QString::fromWCharArray(), i, keyName(), keyPath(), openKey(), Q_ASSERT, qScopeGuard(), qWarning, QSettingsPrivate::stringListToVariantList(), and QSettingsPrivate::stringToVariant().

Referenced by get().

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

◆ remove()

void QWinSettingsPrivate::remove ( const QString & uKey)
overridevirtual

Implements QSettingsPrivate.

Definition at line 562 of file qsettings_win.cpp.

References QSettings::AccessError, QSettingsPrivate::ChildKeys, childKeysOrGroups(), deleteChildGroups(), escapedKey(), keyName(), keyPath(), openKey(), qErrnoWarning(), qUtf16Printable, registryPermissions, QSettingsPrivate::setStatus(), and writeHandle().

Referenced by clear().

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

◆ set()

void QWinSettingsPrivate::set ( const QString & uKey,
const QVariant & value )
overridevirtual

Implements QSettingsPrivate.

Definition at line 606 of file qsettings_win.cpp.

References QSettings::AccessError, QSet< T >::contains(), createOrOpenKey(), escapedKey(), i, it, keyName(), keyPath(), Q_FALLTHROUGH, QByteArray(), qErrnoWarning(), qUtf16Printable, registryPermissions, QSettingsPrivate::setStatus(), QSettingsPrivate::variantListToStringList(), QSettingsPrivate::variantToString(), and writeHandle().

+ Here is the call graph for this function:

◆ sync()

void QWinSettingsPrivate::sync ( )
overridevirtual

Implements QSettingsPrivate.

Definition at line 764 of file qsettings_win.cpp.

References writeHandle().

+ Here is the call graph for this function:

◆ writeHandle()

HKEY QWinSettingsPrivate::writeHandle ( ) const

Definition at line 537 of file qsettings_win.cpp.

References QList< T >::at(), RegistryKey::handle(), and QList< T >::isEmpty().

Referenced by ~QWinSettingsPrivate(), isWritable(), remove(), set(), and sync().

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

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