7#include <QtCore/qfile.h>
8#include <QtCore/qlist.h>
9#include <QtCore/qshareddata.h>
10#include <QtCore/qmetatype.h>
11#include <QtCore/qdatetime.h>
12#include <QtCore/qtimezone.h>
27#ifdef QT_IMPLICIT_QFILEINFO_CONSTRUCTION
28#define QFILEINFO_MAYBE_EXPLICIT Q_IMPLICIT
30#define QFILEINFO_MAYBE_EXPLICIT explicit
41#elif QT_CONFIG(cxx17_filesystem)
42 template<
typename T, QtPrivate::ForceFilesystemPath<T> = 0>
45 template<
typename T, QtPrivate::ForceFilesystemPath<T> = 0>
51#undef QFILEINFO_MAYBE_EXPLICIT
56 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QFileInfo)
59 { d_ptr.swap(
other.d_ptr); }
69#elif QT_CONFIG(cxx17_filesystem)
70 template<
typename T, QtPrivate::ForceFilesystemPath<T> = 0>
80 QString canonicalFilePath()
const;
81#if QT_CONFIG(cxx17_filesystem) || defined(Q_QDOC)
82 std::filesystem::path filesystemFilePath()
const
83 {
return QtPrivate::toFilesystemPath(filePath()); }
84 std::filesystem::path filesystemAbsoluteFilePath()
const
86 std::filesystem::path filesystemCanonicalFilePath()
const
87 {
return QtPrivate::toFilesystemPath(canonicalFilePath()); }
91 QString completeBaseName()
const;
99#if QT_CONFIG(cxx17_filesystem) || defined(Q_QDOC)
100 std::filesystem::path filesystemPath()
const {
return QtPrivate::toFilesystemPath(
path()); }
101 std::filesystem::path filesystemAbsolutePath()
const
103 std::filesystem::path filesystemCanonicalPath()
const
107 QDir absoluteDir()
const;
109 bool isReadable()
const;
110 bool isWritable()
const;
111 bool isExecutable()
const;
112 bool isHidden()
const;
113 bool isNativePath()
const;
121 bool isSymLink()
const;
122 bool isSymbolicLink()
const;
123 bool isShortcut()
const;
124 bool isAlias()
const;
125 bool isJunction()
const;
127 bool isBundle()
const;
131 QString junctionTarget()
const;
133#if QT_CONFIG(cxx17_filesystem) || defined(Q_QDOC)
134 std::filesystem::path filesystemSymLinkTarget()
const
135 {
return QtPrivate::toFilesystemPath(symLinkTarget()); }
137 std::filesystem::path filesystemReadSymLink()
const
138 {
return QtPrivate::toFilesystemPath(
readSymLink()); }
140 std::filesystem::path filesystemJunctionTarget()
const
141 {
return QtPrivate::toFilesystemPath(junctionTarget()); }
145 uint ownerId()
const;
147 uint groupId()
const;
149 bool permission(QFile::Permissions permissions)
const;
150 QFile::Permissions permissions()
const;
166 bool caching()
const;
167 void setCaching(
bool on);
185#ifndef QT_NO_DEBUG_STREAM
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
QDateTime lastRead() const
Returns the date and time when the file was last read (accessed).
QDateTime lastModified() const
Returns the date and time when the file was last modified.
bool operator!=(const QFileInfo &fileinfo) const
Returns true if this QFileInfo object refers to a different file than the one specified by fileinfo; ...
QDateTime birthTime() const
Returns the date and time when the file was created (born), in local time.
QDateTime lastRead(const QTimeZone &tz) const
Returns the date and time when the file was last read (accessed).
QDateTime birthTime(const QTimeZone &tz) const
Returns the date and time when the file was created (born).
QDateTime metadataChangeTime(const QTimeZone &tz) const
Returns the date and time when the file's metadata was last changed.
QDateTime fileTime(QFile::FileTime time) const
QDateTime lastModified(const QTimeZone &tz) const
Returns the date and time when the file was last modified.
QSharedDataPointer< QFileInfoPrivate > d_ptr
QDateTime metadataChangeTime() const
Returns the date and time when the file's metadata was last changed, in local time.
bool isAbsolute() const
Returns true if the file path is absolute, otherwise returns false (i.e.
const T * constData() const noexcept
Returns a const pointer to the shared data object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
#define QFILEINFO_MAYBE_EXPLICIT
Q_CORE_EXPORT QDebug operator<<(QDebug, const QFileInfo &)
static QString readSymLink(const QFileSystemEntry &link)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLsizei const GLchar *const * path
static QT_BEGIN_NAMESPACE bool isRelative(const QString &path)
static QString absolutePath(const QString &path)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
static QString canonicalPath(const QString &rootPath)
static QString absoluteFilePath(const Options *options, const QString &relativeFileName)
info setFile("/etc/hosts")