Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QConfFileSettingsPrivate Class Reference

#include <qsettings_p.h>

+ Inheritance diagram for QConfFileSettingsPrivate:
+ Collaboration diagram for QConfFileSettingsPrivate:

Public Member Functions

 QConfFileSettingsPrivate (QSettings::Format format, QSettings::Scope scope, const QString &organization, const QString &application)
 
 QConfFileSettingsPrivate (const QString &fileName, QSettings::Format format)
 
 ~QConfFileSettingsPrivate ()
 
void remove (const QString &key) override
 
void set (const QString &key, const QVariant &value) override
 
std::optional< QVariantget (const QString &key) const override
 
QStringList children (const QString &prefix, ChildSpec spec) const override
 
void clear () override
 
void sync () override
 
void flush () override
 
bool isWritable () const override
 
QString fileName () const override
 
bool readIniFile (QByteArrayView data, UnparsedSettingsMap *unparsedIniSections)
 
- 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 ()
 
virtual void remove (const QString &key)=0
 
virtual void set (const QString &key, const QVariant &value)=0
 
virtual std::optional< QVariantget (const QString &key) const =0
 
virtual QStringList children (const QString &prefix, ChildSpec spec) const =0
 
virtual void clear ()=0
 
virtual void sync ()=0
 
virtual void flush ()=0
 
virtual bool isWritable () const =0
 
virtual QString fileName () const =0
 
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)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () 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
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static bool readIniSection (const QSettingsKey &section, QByteArrayView data, ParsedSettingsMap *settingsMap)
 
static bool readIniLine (QByteArrayView data, qsizetype &dataPos, qsizetype &lineStart, qsizetype &lineLen, qsizetype &equalsPos)
 
- 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)
 

Private Member Functions

virtual void initAccess ()
 

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 >
 
- 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 unused: 21
 
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 219 of file qsettings_p.h.

Constructor & Destructor Documentation

◆ QConfFileSettingsPrivate() [1/2]

QConfFileSettingsPrivate::QConfFileSettingsPrivate ( QSettings::Format  format,
QSettings::Scope  scope,
const QString organization,
const QString application 
)

Definition at line 1055 of file qsettings.cpp.

References QSettings::AccessError, QList< T >::append(), dir, extension(), QConfFile::fromName(), QStandardPaths::GenericConfigLocation, getPath(), initAccess(), QString::isEmpty(), QSettingsPrivate::scope, QDir::separator(), QSettingsPrivate::setStatus(), QStandardPaths::standardLocations(), QSettings::SystemScope, and QSettings::UserScope.

+ Here is the call graph for this function:

◆ QConfFileSettingsPrivate() [2/2]

QConfFileSettingsPrivate::QConfFileSettingsPrivate ( const QString fileName,
QSettings::Format  format 
)

Definition at line 1118 of file qsettings.cpp.

References QList< T >::append(), fileName(), QConfFile::fromName(), and initAccess().

+ Here is the call graph for this function:

◆ ~QConfFileSettingsPrivate()

QConfFileSettingsPrivate::~QConfFileSettingsPrivate ( )

Definition at line 1130 of file qsettings.cpp.

References QCache< Key, T >::insert(), QT_CATCH, QT_TRY, QHash< Key, T >::remove(), and settingsGlobalMutex.

+ Here is the call graph for this function:

Member Function Documentation

◆ children()

QStringList QConfFileSettingsPrivate::children ( const QString prefix,
ChildSpec  spec 
) const
overridevirtual

Implements QSettingsPrivate.

Reimplemented in QWasmIDBSettingsPrivate.

Definition at line 1232 of file qsettings.cpp.

References QSettingsPrivate::fallbacks, QString::isEmpty(), j, QSettingsPrivate::processChild(), and QString::size().

+ Here is the call graph for this function:

◆ clear()

void QConfFileSettingsPrivate::clear ( )
overridevirtual

Implements QSettingsPrivate.

Reimplemented in QWasmIDBSettingsPrivate.

Definition at line 1271 of file qsettings.cpp.

References QConfFile::addedKeys, QList< T >::at(), QMap< Key, T >::clear(), QList< T >::isEmpty(), QConfFile::mutex, QConfFile::originalKeys, and QConfFile::removedKeys.

Referenced by QWasmIDBSettingsPrivate::clear().

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

◆ fileName()

QString QConfFileSettingsPrivate::fileName ( ) const
overridevirtual

Implements QSettingsPrivate.

Definition at line 1301 of file qsettings.cpp.

References QList< T >::at(), QList< T >::isEmpty(), and QConfFile::name.

Referenced by QConfFileSettingsPrivate(), QWasmIDBSettingsPrivate::QWasmIDBSettingsPrivate(), QWasmIDBSettingsPrivate::clear(), QWasmIDBSettingsPrivate::sync(), and QWasmIDBSettingsPrivate::syncToLocal().

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

◆ flush()

void QConfFileSettingsPrivate::flush ( )
overridevirtual

Implements QSettingsPrivate.

Reimplemented in QWasmIDBSettingsPrivate.

Definition at line 1296 of file qsettings.cpp.

References sync().

+ Here is the call graph for this function:

◆ get()

std::optional< QVariant > QConfFileSettingsPrivate::get ( const QString key) const
overridevirtual

Implements QSettingsPrivate.

Reimplemented in QWasmIDBSettingsPrivate.

Definition at line 1204 of file qsettings.cpp.

References QSettingsPrivate::fallbacks, and j.

Referenced by QWasmIDBSettingsPrivate::get().

+ Here is the caller graph for this function:

◆ initAccess()

void QConfFileSettingsPrivate::initAccess ( )
privatevirtual

Reimplemented in QWasmIDBSettingsPrivate.

Definition at line 905 of file qsettings.cpp.

References QSettings::AccessError, QSettings::IniFormat, QList< T >::isEmpty(), QSettingsPrivate::setStatus(), and sync().

Referenced by QConfFileSettingsPrivate(), QConfFileSettingsPrivate(), QWasmIDBSettingsPrivate::initAccess(), and QWasmIDBSettingsPrivate::setReady().

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

◆ isWritable()

bool QConfFileSettingsPrivate::isWritable ( ) const
overridevirtual

Implements QSettingsPrivate.

Reimplemented in QWasmIDBSettingsPrivate.

Definition at line 1310 of file qsettings.cpp.

References QList< T >::at(), QSettings::IniFormat, QList< T >::isEmpty(), and QConfFile::isWritable().

Referenced by QWasmIDBSettingsPrivate::isWritable().

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

◆ readIniFile()

bool QConfFileSettingsPrivate::readIniFile ( QByteArrayView  data,
UnparsedSettingsMap unparsedIniSections 
)

Definition at line 1591 of file qsettings.cpp.

References Qt::CaseInsensitive, QString::clear(), QByteArrayView::compare(), QByteArrayView::constData(), QString::first(), FLUSH_CURRENT_SECTION, QString::indexOf(), QSettingsPrivate::iniUnescapedKey(), line, ok, position(), Q_ASSERT, readIniLine(), QByteArrayView::size(), QString::sliced(), QString::startsWith(), and QString::trimmed().

+ Here is the call graph for this function:

◆ readIniLine()

bool QConfFileSettingsPrivate::readIniLine ( QByteArrayView  data,
qsizetype dataPos,
qsizetype lineStart,
qsizetype lineLen,
qsizetype equalsPos 
)
static

Definition at line 1519 of file qsettings.cpp.

References ch, charTraits, i, Q_ASSERT, Space, and Special.

Referenced by readIniFile(), and readIniSection().

+ Here is the caller graph for this function:

◆ readIniSection()

bool QConfFileSettingsPrivate::readIniSection ( const QSettingsKey section,
QByteArrayView  data,
ParsedSettingsMap settingsMap 
)
static

◆ remove()

void QConfFileSettingsPrivate::remove ( const QString key)
overridevirtual

Implements QSettingsPrivate.

Definition at line 1161 of file qsettings.cpp.

References QConfFile::addedKeys, QList< T >::at(), QMap< Key, T >::constEnd(), QMap< Key, T >::contains(), QMap< Key, T >::end(), QMap< Key, T >::erase(), i, QMap< Key, T >::insert(), QList< T >::isEmpty(), j, QMap< Key, T >::lowerBound(), QConfFile::mutex, QConfFile::originalKeys, QMap< Key, T >::remove(), and QConfFile::removedKeys.

+ Here is the call graph for this function:

◆ set()

void QConfFileSettingsPrivate::set ( const QString key,
const QVariant value 
)
overridevirtual

Implements QSettingsPrivate.

Definition at line 1190 of file qsettings.cpp.

References QConfFile::addedKeys, QList< T >::at(), QMap< Key, T >::insert(), QList< T >::isEmpty(), QConfFile::mutex, QMap< Key, T >::remove(), and QConfFile::removedKeys.

+ Here is the call graph for this function:

◆ sync()

void QConfFileSettingsPrivate::sync ( )
overridevirtual

Implements QSettingsPrivate.

Reimplemented in QWasmIDBSettingsPrivate.

Definition at line 1285 of file qsettings.cpp.

Referenced by flush(), initAccess(), and QWasmIDBSettingsPrivate::sync().

+ Here is the caller graph for this function:

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