42 #include "qplatformdefs.h" 45 #ifndef QT_NO_FILESYSTEMITERATOR 53 const QStringList &nameFilters, QDirIterator::IteratorFlags flags)
54 : nativePath(entry.nativeFilePath())
57 #
if defined(Q_OS_QNX) && defined(__EXT_QNX__READDIR_R)
73 #if defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_CYGWIN) 76 if (maxPathName ==
size_t(-1))
77 maxPathName = FILENAME_MAX;
78 maxPathName +=
sizeof(QT_DIRENT) + 1;
80 QT_DIRENT *p =
reinterpret_cast<QT_DIRENT*
>(::malloc(maxPathName));
84 #if defined(Q_OS_QNX) && defined(__EXT_QNX__READDIR_R) 85 direntSize = maxPathName;
90 if (dircntl(dir, D_SETFLAG, D_FLAG_STAT) == -1)
108 #if defined(Q_OS_QNX) && defined(QT_EXT_QNX_READDIR_R) 109 lastError = QT_EXT_QNX_READDIR_R(dir, mt_file.data(), &dirEntry, direntSize);
112 #elif defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_CYGWIN) 113 lastError = QT_READDIR_R(dir, mt_file.data(), &dirEntry);
118 dirEntry = QT_READDIR(dir);
119 #endif // _POSIX_THREAD_SAFE_FUNCTIONS 133 #endif // QT_NO_FILESYSTEMITERATOR #define QT_END_NAMESPACE
This macro expands to.
QFileSystemEntry::NativePath nativePath
The QByteArray class provides an array of bytes.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStringList class provides a list of strings.
bool advance(QFileSystemEntry &fileEntry, QFileSystemMetaData &metaData)
static const char *const filters[3]
QString & append(QChar c)
QFileSystemIterator(const QFileSystemEntry &entry, QDir::Filters filters, const QStringList &nameFilters, QDirIterator::IteratorFlags flags=QDirIterator::FollowSymlinks|QDirIterator::Subdirectories)
if(void) toggleToolbarShown
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
const QChar * constData() const
Returns a pointer to the data stored in the QString.