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

#include <qfileinfo_p.h>

Inheritance diagram for QFileInfoPrivate:
Collaboration diagram for QFileInfoPrivate:

Public Types

enum  {
  CachedFileFlags = 0x01 , CachedLinkTypeFlag = 0x02 , CachedBundleTypeFlag = 0x04 , CachedSize = 0x08 ,
  CachedATime = 0x10 , CachedBTime = 0x20 , CachedMCTime = 0x40 , CachedMTime = 0x80 ,
  CachedPerms = 0x100
}

Public Member Functions

 QFileInfoPrivate ()
 QFileInfoPrivate (const QFileInfoPrivate &copy)
 QFileInfoPrivate (const QString &file)
 QFileInfoPrivate (const QFileSystemEntry &file, const QFileSystemMetaData &data)
 QFileInfoPrivate (const QFileSystemEntry &file, const QFileSystemMetaData &data, std::unique_ptr< QAbstractFileEngine > engine)
void clearFlags () const
void clear ()
uint getFileFlags (QAbstractFileEngine::FileFlags) const
QDateTimegetFileTime (QFile::FileTime) const
QString getFileName (QAbstractFileEngine::FileName) const
QString getFileOwner (QAbstractFileEngine::FileOwner own) const
bool getCachedFlag (uint c) const
void setCachedFlag (uint c) const
template<typename Ret, typename FSLambda, typename EngineLambda>
Ret checkAttribute (Ret defaultValue, QFileSystemMetaData::MetaDataFlags fsFlags, FSLambda fsLambda, EngineLambda engineLambda) const
template<typename Ret, typename FSLambda, typename EngineLambda>
Ret checkAttribute (QFileSystemMetaData::MetaDataFlags fsFlags, FSLambda fsLambda, EngineLambda engineLambda) const
Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
QSharedDataoperator= (const QSharedData &)=delete
 ~QSharedData ()=default

Static Public Member Functions

static QFileInfoPrivateget (QFileInfo *fi)

Public Attributes

QFileSystemEntry fileEntry
QFileSystemMetaData metaData
std::unique_ptr< QAbstractFileEngine > const fileEngine
QString fileNames [QAbstractFileEngine::NFileNames]
QString fileOwners [2]
QDateTime fileTimes [4]
uint cachedFlags: 30
bool const isDefaultConstructed: 1
bool cache_enabled: 1
uint fileFlags
qint64 fileSize
Public Attributes inherited from QSharedData
QAtomicInt ref

Detailed Description

Definition at line 33 of file qfileinfo_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
CachedFileFlags 
CachedLinkTypeFlag 
CachedBundleTypeFlag 
CachedSize 
CachedATime 
CachedBTime 
CachedMCTime 
CachedMTime 
CachedPerms 

Definition at line 36 of file qfileinfo_p.h.

Constructor & Destructor Documentation

◆ QFileInfoPrivate() [1/5]

QFileInfoPrivate::QFileInfoPrivate ( )
inline

Definition at line 51 of file qfileinfo_p.h.

References QFileInfoPrivate(), QSharedData::QSharedData(), cache_enabled, and isDefaultConstructed.

Referenced by QFileInfoPrivate().

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

◆ QFileInfoPrivate() [2/5]

QFileInfoPrivate::QFileInfoPrivate ( const QFileInfoPrivate & copy)
inline

Definition at line 57 of file qfileinfo_p.h.

References QFileInfoPrivate(), cache_enabled, and isDefaultConstructed.

Referenced by QFileInfoPrivate().

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

◆ QFileInfoPrivate() [3/5]

QFileInfoPrivate::QFileInfoPrivate ( const QString & file)
inline

Definition at line 70 of file qfileinfo_p.h.

References QFileInfoPrivate(), cache_enabled, and isDefaultConstructed.

Referenced by QFileInfoPrivate().

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

◆ QFileInfoPrivate() [4/5]

QFileInfoPrivate::QFileInfoPrivate ( const QFileSystemEntry & file,
const QFileSystemMetaData & data )
inline

Definition at line 83 of file qfileinfo_p.h.

References QFileInfoPrivate(), QSharedData::QSharedData(), cache_enabled, and isDefaultConstructed.

Referenced by QFileInfoPrivate().

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

◆ QFileInfoPrivate() [5/5]

QFileInfoPrivate::QFileInfoPrivate ( const QFileSystemEntry & file,
const QFileSystemMetaData & data,
std::unique_ptr< QAbstractFileEngine > engine )
inline

Definition at line 98 of file qfileinfo_p.h.

References QFileInfoPrivate().

Referenced by QFileInfoPrivate().

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

Member Function Documentation

◆ checkAttribute() [1/2]

template<typename Ret, typename FSLambda, typename EngineLambda>
Ret QFileInfoPrivate::checkAttribute ( QFileSystemMetaData::MetaDataFlags fsFlags,
FSLambda fsLambda,
EngineLambda engineLambda ) const
inline

Definition at line 167 of file qfileinfo_p.h.

◆ checkAttribute() [2/2]

template<typename Ret, typename FSLambda, typename EngineLambda>
Ret QFileInfoPrivate::checkAttribute ( Ret defaultValue,
QFileSystemMetaData::MetaDataFlags fsFlags,
FSLambda fsLambda,
EngineLambda engineLambda ) const
inline

Definition at line 152 of file qfileinfo_p.h.

References isDefaultConstructed.

◆ clear()

void QFileInfoPrivate::clear ( )
inline

Definition at line 118 of file qfileinfo_p.h.

References clearFlags().

Here is the call graph for this function:

◆ clearFlags()

void QFileInfoPrivate::clearFlags ( ) const
inline

Definition at line 112 of file qfileinfo_p.h.

Referenced by clear(), and getFileTime().

Here is the caller graph for this function:

◆ get()

QFileInfoPrivate * QFileInfoPrivate::get ( QFileInfo * fi)
inlinestatic

Definition at line 49 of file qfileinfo_p.h.

◆ getCachedFlag()

bool QFileInfoPrivate::getCachedFlag ( uint c) const
inline

Definition at line 146 of file qfileinfo_p.h.

◆ getFileFlags()

uint QFileInfoPrivate::getFileFlags ( QAbstractFileEngine::FileFlags request) const

Definition at line 100 of file qfileinfo.cpp.

References CachedBundleTypeFlag, CachedFileFlags, CachedLinkTypeFlag, and CachedPerms.

◆ getFileName()

QString QFileInfoPrivate::getFileName ( QAbstractFileEngine::FileName name) const

Definition at line 18 of file qfileinfo.cpp.

◆ getFileOwner()

QString QFileInfoPrivate::getFileOwner ( QAbstractFileEngine::FileOwner own) const

Definition at line 76 of file qfileinfo.cpp.

◆ getFileTime()

QDateTime & QFileInfoPrivate::getFileTime ( QFile::FileTime request) const

Definition at line 161 of file qfileinfo.cpp.

References cache_enabled, CachedATime, CachedBTime, CachedMCTime, CachedMTime, and clearFlags().

Here is the call graph for this function:

◆ setCachedFlag()

void QFileInfoPrivate::setCachedFlag ( uint c) const
inline

Definition at line 148 of file qfileinfo_p.h.

Member Data Documentation

◆ cache_enabled

bool QFileInfoPrivate::cache_enabled

◆ cachedFlags

uint QFileInfoPrivate::cachedFlags
mutable

Definition at line 141 of file qfileinfo_p.h.

◆ fileEngine

std::unique_ptr<QAbstractFileEngine> const QFileInfoPrivate::fileEngine

Definition at line 135 of file qfileinfo_p.h.

◆ fileEntry

QFileSystemEntry QFileInfoPrivate::fileEntry

Definition at line 132 of file qfileinfo_p.h.

◆ fileFlags

uint QFileInfoPrivate::fileFlags
mutable

Definition at line 144 of file qfileinfo_p.h.

◆ fileNames

QString QFileInfoPrivate::fileNames[QAbstractFileEngine::NFileNames]
mutable

Definition at line 137 of file qfileinfo_p.h.

◆ fileOwners

QString QFileInfoPrivate::fileOwners[2]
mutable

Definition at line 138 of file qfileinfo_p.h.

◆ fileSize

qint64 QFileInfoPrivate::fileSize
mutable

Definition at line 145 of file qfileinfo_p.h.

◆ fileTimes

QDateTime QFileInfoPrivate::fileTimes[4]
mutable

Definition at line 139 of file qfileinfo_p.h.

◆ isDefaultConstructed

bool const QFileInfoPrivate::isDefaultConstructed

◆ metaData

QFileSystemMetaData QFileInfoPrivate::metaData
mutable

Definition at line 133 of file qfileinfo_p.h.


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