4#include "qplatformdefs.h" 
   23    if (fileEngine == 
nullptr) { 
 
   66        ret = fileEngine->fileName(
name);
 
  111    QAbstractFileEngine::FileFlags req;
 
  395    : d_ptr(fileinfo.d_ptr)
 
  454        if (
d->fileEngine->caseSensitive() != fileinfo.
d_ptr->
fileEngine->caseSensitive())
 
  559    if (
d->isDefaultConstructed)
 
  576    if (
d->isDefaultConstructed)
 
  603    if (
d->isDefaultConstructed)
 
  619    if (
d->isDefaultConstructed)
 
  636    if (
d->isDefaultConstructed)
 
  638    return d->fileEntry.path();
 
  666    if (
d->isDefaultConstructed)
 
  668    if (
d->fileEngine == 
nullptr)
 
  669        return d->fileEntry.isRelative();
 
  670    return d->fileEngine->isRelativePath();
 
  699    if (
d->isDefaultConstructed)
 
  701    if (
d->fileEngine == 
nullptr) {
 
  704        return d->metaData.exists();
 
  726    std::unique_ptr<QAbstractFileEngine> 
engine 
  733    return data.exists();
 
  755    if (
d->isDefaultConstructed)
 
  757    return d->fileEntry.filePath();
 
  774    if (
d->isDefaultConstructed)
 
  777        return d->fileEntry.fileName();
 
  796    if (
d->isDefaultConstructed)
 
  820    if (
d->isDefaultConstructed)
 
  823        return d->fileEntry.baseName();
 
  841    if (
d->isDefaultConstructed)
 
  844        return d->fileEntry.completeBaseName();
 
  863    if (
d->isDefaultConstructed)
 
  865    return d->fileEntry.completeSuffix();
 
  886    if (
d->isDefaultConstructed)
 
  888    return d->fileEntry.suffix();
 
  913    return QDir(
d->fileEntry.path());
 
  940    return d->checkAttribute<
bool>(
 
  960    return d->checkAttribute<
bool>(
 
  977    return d->checkAttribute<
bool>(
 
  997    return d->checkAttribute<
bool>(
 
  999                [
d]() { 
return d->metaData.isHidden(); },
 
 1019    if (
d->isDefaultConstructed)
 
 1021    if (
d->fileEngine == 
nullptr)
 
 1040    return d->checkAttribute<
bool>(
 
 1042                [
d]() { 
return d->metaData.isFile(); },
 
 1060    return d->checkAttribute<
bool>(
 
 1062                [
d]() { 
return d->metaData.isDirectory(); },
 
 1080    return d->checkAttribute<
bool>(
 
 1082                [
d]() { 
return d->metaData.isBundle(); },
 
 1112    return d->checkAttribute<
bool>(
 
 1114                [
d]() { 
return d->metaData.isLegacyLink(); },
 
 1142    return d->checkAttribute<
bool>(
 
 1144                [
d]() { 
return d->metaData.isLink(); },
 
 1168    return d->checkAttribute<
bool>(
 
 1170            [
d]() { 
return d->metaData.isLnkFile(); },
 
 1192    return d->checkAttribute<
bool>(
 
 1194            [
d]() { 
return d->metaData.isAlias(); },
 
 1212    return d->checkAttribute<
bool>(
 
 1214            [
d]() { 
return d->metaData.isJunction(); },
 
 1226    if (
d->isDefaultConstructed)
 
 1228    if (
d->fileEngine == 
nullptr) {
 
 1229        if (
d->fileEntry.isRoot()) {
 
 1230#if defined(Q_OS_WIN) 
 1235            return d->metaData.exists();
 
 1261    if (
d->isDefaultConstructed)
 
 1280    if (
d->isDefaultConstructed)
 
 1302    if (
d->isDefaultConstructed)
 
 1324    if (
d->isDefaultConstructed)
 
 1343    return d->checkAttribute(
uint(-2),
 
 1345                [
d]() { 
return d->metaData.userId(); },
 
 1365    if (
d->isDefaultConstructed)
 
 1384    return d->checkAttribute(
uint(-2),
 
 1386                [
d]() { 
return d->metaData.groupId(); },
 
 1413    auto fseFlags = QFileSystemMetaData::MetaDataFlags::fromInt(
permissions.toInt());
 
 1414    auto feFlags = QAbstractFileEngine::FileFlags::fromInt(
permissions.toInt());
 
 1415    return d->checkAttribute<
bool>(
 
 1436    return d->checkAttribute<QFile::Permissions>(
 
 1438                [
d]() { 
return d->metaData.permissions(); },
 
 1457    return d->checkAttribute<
qint64>(
 
 1459                [
d]() { 
return d->metaData.size(); },
 
 1463                d->fileSize = 
d->fileEngine->size();
 
 1601#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) && !defined(QT_BOOTSTRAPPED) 
 1650    QFileSystemMetaData::MetaDataFlags flag;
 
 1666    auto fsLambda = [
d, fetime]() { 
return d->metaData.fileTime(fetime); };
 
 1667    auto engineLambda = [
d, fetime]() { 
return d->getFileTime(fetime); };
 
 1688    return d->cache_enabled;
 
 1732#ifndef QT_NO_DEBUG_STREAM 
\inmodule QtCore \reentrant
 
FileOwner
\value OwnerUser The user who owns the file.
 
FileTime
These are used by the fileTime() function.
 
\inmodule QtCore\reentrant
 
QDateTime toTimeZone(const QTimeZone &toZone) const
 
QString filePath(const QString &fileName) const
Returns the path name of a file in the directory.
 
static QString toNativeSeparators(const QString &pathName)
 
bool const isDefaultConstructed
 
QFileSystemMetaData metaData
 
std::unique_ptr< QAbstractFileEngine > const fileEngine
 
uint getFileFlags(QAbstractFileEngine::FileFlags) const
 
void setCachedFlag(uint c) const
 
QString getFileOwner(QAbstractFileEngine::FileOwner own) const
 
bool getCachedFlag(uint c) const
 
QDateTime & getFileTime(QAbstractFileEngine::FileTime) const
 
QFileSystemEntry fileEntry
 
\inmodule QtCore \reentrant
 
void refresh()
Refreshes the information about the file, i.e.
 
bool isSymLink() const
Returns true if this object points to a symbolic link, shortcut, or alias; otherwise returns false.
 
bool isNativePath() const
 
QString baseName() const
Returns the base name of the file without the path.
 
bool isSymbolicLink() const
Returns true if this object points to a symbolic link; otherwise returns false.
 
QString completeSuffix() const
Returns the complete suffix (extension) of the file.
 
QString symLinkTarget() const
 
QString suffix() const
Returns the suffix (extension) of the file.
 
~QFileInfo()
Destroys the QFileInfo and frees its resources.
 
bool makeAbsolute()
Converts the file's path to an absolute path if it is not already in that form.
 
QFileInfo & operator=(const QFileInfo &fileinfo)
Move-assigns other to this QFileInfo instance.
 
uint groupId() const
Returns the id of the group the file belongs to.
 
bool isRoot() const
Returns true if the object points to a directory or to a symbolic link to a directory,...
 
void stat()
Reads all attributes from the file system.
 
void setCaching(bool on)
If enable is true, enables caching of file information.
 
QString fileName() const
Returns the name of the file, excluding the path.
 
QString bundleName() const
 
bool isExecutable() const
Returns true if the file is executable; otherwise returns false.
 
void setFile(const QString &file)
Sets the file that the QFileInfo provides information about to file.
 
QString absoluteFilePath() const
Returns an absolute path including the file name.
 
QString readSymLink() const
 
bool isFile() const
Returns true if this object points to a file or to a symbolic link to a file.
 
QString canonicalPath() const
Returns the file's path canonical path (excluding the file name), i.e.
 
QString completeBaseName() const
Returns the complete base name of the file without the path.
 
QFileInfo()
Constructs an empty QFileInfo object.
 
bool isAlias() const
Returns true if this object points to an alias; otherwise returns false.
 
QDateTime fileTime(QFile::FileTime time) const
 
bool isDir() const
Returns true if this object points to a directory or to a symbolic link to a directory.
 
bool operator==(const QFileInfo &fileinfo) const
Returns true if this QFileInfo object refers to a file in the same location as fileinfo; otherwise re...
 
QString owner() const
Returns the owner of the file.
 
QSharedDataPointer< QFileInfoPrivate > d_ptr
 
QString absolutePath() const
Returns a file's path absolute path.
 
bool isWritable() const
Returns true if the user can write to the file; otherwise returns false.
 
uint ownerId() const
Returns the id of the owner of the file.
 
qint64 size() const
Returns the file size in bytes.
 
QString junctionTarget() const
 
QString canonicalFilePath() const
Returns the canonical path including the file name, i.e.
 
QDir absoluteDir() const
Returns the file's absolute path as a QDir object.
 
QDir dir() const
Returns the path of the object's parent directory as a QDir object.
 
bool isHidden() const
Returns true if this is a ‘hidden’ file; otherwise returns false.
 
bool caching() const
Returns true if caching is enabled; otherwise returns false.
 
bool isRelative() const
Returns true if the file path is relative, otherwise returns false (i.e.
 
bool permission(QFile::Permissions permissions) const
Tests for file permissions.
 
QString path() const
Returns the file's path.
 
bool isShortcut() const
Returns true if this object points to a shortcut; otherwise returns false.
 
QString filePath() const
Returns the file name, including the path (which may be absolute or relative).
 
bool exists() const
Returns true if the file exists; otherwise returns false.
 
bool isReadable() const
Returns true if the user can read the file; otherwise returns false.
 
QFile::Permissions permissions() const
Returns the complete OR-ed together combination of QFile::Permissions for the file.
 
QString group() const
Returns the group of the file.
 
static QFileSystemEntry getLinkTarget(const QFileSystemEntry &link, QFileSystemMetaData &data)
 
static QFileSystemEntry canonicalName(const QFileSystemEntry &entry, QFileSystemMetaData &data)
 
static QAbstractFileEngine * resolveEntryAndCreateLegacyEngine(QFileSystemEntry &entry, QFileSystemMetaData &data)
 
static QFileSystemEntry getRawLinkPath(const QFileSystemEntry &link, QFileSystemMetaData &data)
 
static bool fillMetaData(const QFileSystemEntry &entry, QFileSystemMetaData &data, QFileSystemMetaData::MetaDataFlags what)
 
static QString bundleName(const QFileSystemEntry &)
 
static QFileSystemEntry getJunctionTarget(const QFileSystemEntry &link, QFileSystemMetaData &data)
 
static QFileSystemEntry absoluteName(const QFileSystemEntry &entry)
 
static QString resolveUserName(const QFileSystemEntry &entry, QFileSystemMetaData &data)
 
static QString resolveGroupName(const QFileSystemEntry &entry, QFileSystemMetaData &data)
 
static bool isCaseSensitive()
 
Q_AUTOTEST_EXPORT QString baseName() const
 
Q_AUTOTEST_EXPORT QString completeBaseName() const
 
Q_AUTOTEST_EXPORT bool isRelative() const
 
Q_AUTOTEST_EXPORT QString filePath() const
 
QString fileName() const override
Returns the name set by setFileName() or to the QFile constructors.
 
const T * constData() const noexcept
Returns a const pointer to the shared data object.
 
T * data()
Returns a pointer to the shared data object.
 
\macro QT_RESTRICTED_CAST_FROM_ASCII
 
int compare(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
Combined button and popup list for selecting options.
 
QDebug operator<<(QDebug dbg, const QFileInfo &fi)
 
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
 
QFileInfo fi("c:/temp/foo")
[newstuff]
 
QNetworkRequest request(url)