29 typedef QByteArray NativePath;
31 typedef QString NativePath;
33 struct FromNativePath{};
34 struct FromInternalPath{};
36 Q_AUTOTEST_EXPORT QFileSystemEntry();
37 Q_AUTOTEST_EXPORT
explicit QFileSystemEntry(
const QString &filePath);
39 Q_AUTOTEST_EXPORT QFileSystemEntry(
const QString &filePath, FromInternalPath dummy);
40 Q_AUTOTEST_EXPORT QFileSystemEntry(
const NativePath &nativeFilePath, FromNativePath dummy);
41 Q_AUTOTEST_EXPORT QFileSystemEntry(
const QString &filePath,
const NativePath &nativeFilePath);
43 Q_AUTOTEST_EXPORT QString filePath()
const;
44 Q_AUTOTEST_EXPORT QString fileName()
const;
45 Q_AUTOTEST_EXPORT QString path()
const;
46 Q_AUTOTEST_EXPORT NativePath nativeFilePath()
const;
47 Q_AUTOTEST_EXPORT QString baseName()
const;
48 Q_AUTOTEST_EXPORT QString completeBaseName()
const;
49 Q_AUTOTEST_EXPORT QString suffix()
const;
50 Q_AUTOTEST_EXPORT QString completeSuffix()
const;
51 Q_AUTOTEST_EXPORT
bool isAbsolute()
const;
52 Q_AUTOTEST_EXPORT
bool isRelative()
const;
53 Q_AUTOTEST_EXPORT
bool isClean()
const;
56 Q_AUTOTEST_EXPORT
bool isDriveRoot()
const;
57 static bool isDriveRootPath(
const QString &path);
58 static QString removeUncOrLongPathPrefix(QString path);
60 Q_AUTOTEST_EXPORT
bool isRoot()
const;
62 Q_AUTOTEST_EXPORT
bool isEmpty()
const;
66 *
this = QFileSystemEntry();
69 Q_CORE_EXPORT
static bool isRootPath(
const QString &path);
73 void resolveFilePath()
const;
75 void resolveNativeFilePath()
const;
77 void findLastSeparator()
const;
79 void findFileNameSeparators()
const;
81 mutable QString m_filePath;
82 mutable NativePath m_nativeFilePath;
84 mutable qint16 m_lastSeparator;
85 mutable qint16 m_firstDotInFileName;
86 mutable qint16 m_lastDotInFileName;