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

#include <qfilesystementry_p.h>

Collaboration diagram for QFileSystemEntry:

Classes

struct  FromInternalPath
struct  FromNativePath

Public Types

typedef QByteArray NativePath

Public Member Functions

Q_AUTOTEST_EXPORT QFileSystemEntry ()
Q_AUTOTEST_EXPORT QFileSystemEntry (const QString &filePath)
Q_AUTOTEST_EXPORT QFileSystemEntry (const QString &filePath, FromInternalPath dummy)
Q_AUTOTEST_EXPORT QFileSystemEntry (const NativePath &nativeFilePath, FromNativePath dummy)
Q_AUTOTEST_EXPORT QFileSystemEntry (const QString &filePath, const NativePath &nativeFilePath)
Q_AUTOTEST_EXPORT QString filePath () const
Q_AUTOTEST_EXPORT QString fileName () const
Q_AUTOTEST_EXPORT QString path () const
Q_AUTOTEST_EXPORT NativePath nativeFilePath () const
Q_AUTOTEST_EXPORT QString baseName () const
Q_AUTOTEST_EXPORT QString completeBaseName () const
Q_AUTOTEST_EXPORT QString suffix () const
Q_AUTOTEST_EXPORT QString completeSuffix () const
Q_AUTOTEST_EXPORT bool isAbsolute () const
Q_AUTOTEST_EXPORT bool isRelative () const
Q_AUTOTEST_EXPORT bool isClean () const
Q_AUTOTEST_EXPORT bool isRoot () const
Q_AUTOTEST_EXPORT bool isEmpty () const
void clear ()

Static Public Member Functions

static Q_CORE_EXPORT bool isRootPath (const QString &path)

Detailed Description

Definition at line 25 of file qfilesystementry_p.h.

Member Typedef Documentation

◆ NativePath

Definition at line 30 of file qfilesystementry_p.h.

Constructor & Destructor Documentation

◆ QFileSystemEntry() [1/5]

QFileSystemEntry::QFileSystemEntry ( )

Definition at line 45 of file qfilesystementry.cpp.

◆ QFileSystemEntry() [2/5]

QFileSystemEntry::QFileSystemEntry ( const QString & filePath)
explicit

Use this constructor when the path is supplied by user code, as it may contain a mix of '/' and the native separator.

Definition at line 57 of file qfilesystementry.cpp.

◆ QFileSystemEntry() [3/5]

QFileSystemEntry::QFileSystemEntry ( const QString & filePath,
FromInternalPath dummy )

Use this constructor when the path is guaranteed to be in internal format, i.e. all directory separators are '/' and not the native separator.

Definition at line 70 of file qfilesystementry.cpp.

◆ QFileSystemEntry() [4/5]

QFileSystemEntry::QFileSystemEntry ( const NativePath & nativeFilePath,
FromNativePath dummy )

Use this constructor when the path comes from a native API

Definition at line 82 of file qfilesystementry.cpp.

◆ QFileSystemEntry() [5/5]

QFileSystemEntry::QFileSystemEntry ( const QString & filePath,
const NativePath & nativeFilePath )

Definition at line 90 of file qfilesystementry.cpp.

Member Function Documentation

◆ baseName()

QString QFileSystemEntry::baseName ( ) const

Definition at line 165 of file qfilesystementry.cpp.

◆ clear()

void QFileSystemEntry::clear ( )
inline

Definition at line 65 of file qfilesystementry_p.h.

◆ completeBaseName()

QString QFileSystemEntry::completeBaseName ( ) const

Definition at line 181 of file qfilesystementry.cpp.

◆ completeSuffix()

QString QFileSystemEntry::completeSuffix ( ) const

Definition at line 207 of file qfilesystementry.cpp.

◆ fileName()

QString QFileSystemEntry::fileName ( ) const

Definition at line 136 of file qfilesystementry.cpp.

◆ filePath()

QString QFileSystemEntry::filePath ( ) const

Definition at line 99 of file qfilesystementry.cpp.

◆ isAbsolute()

bool QFileSystemEntry::isAbsolute ( ) const

Definition at line 242 of file qfilesystementry.cpp.

◆ isClean()

bool QFileSystemEntry::isClean ( ) const

Definition at line 375 of file qfilesystementry.cpp.

◆ isEmpty()

bool QFileSystemEntry::isEmpty ( ) const

Definition at line 311 of file qfilesystementry.cpp.

◆ isRelative()

bool QFileSystemEntry::isRelative ( ) const

Definition at line 237 of file qfilesystementry.cpp.

◆ isRoot()

bool QFileSystemEntry::isRoot ( ) const

Definition at line 305 of file qfilesystementry.cpp.

◆ isRootPath()

bool QFileSystemEntry::isRootPath ( const QString & path)
static

Definition at line 292 of file qfilesystementry.cpp.

◆ nativeFilePath()

QFileSystemEntry::NativePath QFileSystemEntry::nativeFilePath ( ) const

Definition at line 105 of file qfilesystementry.cpp.

◆ path()

QString QFileSystemEntry::path ( ) const

Definition at line 146 of file qfilesystementry.cpp.

◆ suffix()

QString QFileSystemEntry::suffix ( ) const

Definition at line 197 of file qfilesystementry.cpp.


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