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
QConfFile Class Reference

#include <qsettings_p.h>

+ Collaboration diagram for QConfFile:

Public Member Functions

 ~QConfFile ()
 
ParsedSettingsMap mergedKeyMap () const
 
bool isWritable () const
 

Static Public Member Functions

static QConfFilefromName (const QString &name, bool _userPerms)
 
static Q_AUTOTEST_EXPORT void clearCache ()
 

Public Attributes

QString name
 
QDateTime timeStamp
 
qint64 size
 
UnparsedSettingsMap unparsedIniSections
 
ParsedSettingsMap originalKeys
 
ParsedSettingsMap addedKeys
 
ParsedSettingsMap removedKeys
 
QAtomicInt ref
 
QMutex mutex
 
bool userPerms
 

Friends

class QConfFile_createsItself
 

Detailed Description

Definition at line 114 of file qsettings_p.h.

Constructor & Destructor Documentation

◆ ~QConfFile()

QConfFile::~QConfFile ( )

Definition at line 111 of file qsettings.cpp.

Member Function Documentation

◆ clearCache()

void QConfFile::clearCache ( )
static

Definition at line 174 of file qsettings.cpp.

References settingsGlobalMutex.

◆ fromName()

QConfFile * QConfFile::fromName ( const QString & name,
bool _userPerms )
static

Definition at line 153 of file qsettings.cpp.

References QFileInfo::absoluteFilePath(), fileName, and settingsGlobalMutex.

Referenced by QConfFileSettingsPrivate::QConfFileSettingsPrivate(), and QConfFileSettingsPrivate::QConfFileSettingsPrivate().

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

◆ isWritable()

bool QConfFile::isWritable ( ) const

Definition at line 128 of file qsettings.cpp.

References QFileInfo::absolutePath(), dir, QFileInfo::exists(), file, QFile::open(), and QIODeviceBase::ReadWrite.

Referenced by QConfFileSettingsPrivate::isWritable().

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

◆ mergedKeyMap()

ParsedSettingsMap QConfFile::mergedKeyMap ( ) const

Definition at line 117 of file qsettings.cpp.

References addedKeys, QMap< Key, T >::begin(), QMap< Key, T >::end(), i, originalKeys, QMap< Key, T >::remove(), and removedKeys.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QConfFile_createsItself

friend class QConfFile_createsItself
friend

Definition at line 144 of file qsettings_p.h.

Member Data Documentation

◆ addedKeys

ParsedSettingsMap QConfFile::addedKeys

Definition at line 131 of file qsettings_p.h.

Referenced by mergedKeyMap().

◆ mutex

QMutex QConfFile::mutex

Definition at line 134 of file qsettings_p.h.

◆ name

QString QConfFile::name

Definition at line 126 of file qsettings_p.h.

Referenced by QConfFileSettingsPrivate::fileName().

◆ originalKeys

ParsedSettingsMap QConfFile::originalKeys

Definition at line 130 of file qsettings_p.h.

Referenced by mergedKeyMap().

◆ ref

QAtomicInt QConfFile::ref

Definition at line 133 of file qsettings_p.h.

◆ removedKeys

ParsedSettingsMap QConfFile::removedKeys

Definition at line 132 of file qsettings_p.h.

Referenced by mergedKeyMap().

◆ size

qint64 QConfFile::size

Definition at line 128 of file qsettings_p.h.

◆ timeStamp

QDateTime QConfFile::timeStamp

Definition at line 127 of file qsettings_p.h.

◆ unparsedIniSections

UnparsedSettingsMap QConfFile::unparsedIniSections

Definition at line 129 of file qsettings_p.h.

◆ userPerms

bool QConfFile::userPerms

Definition at line 135 of file qsettings_p.h.


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