42 #if _WIN32_WINNT < 0x0500 44 #define _WIN32_WINNT 0x0500 49 #include "qplatformdefs.h" 51 #include <QtCore/qt_windows.h> 54 #ifndef QT_NO_FILESYSTEMITERATOR 59 const QStringList &nameFilters, QDirIterator::IteratorFlags flags)
60 : nativePath(entry.nativeFilePath())
61 , dirPath(entry.filePath())
62 , findFileHandle(INVALID_HANDLE_VALUE)
91 bool haveData =
false;
92 WIN32_FIND_DATA findData;
97 DWORD dwAdditionalFlags = 0;
100 dwAdditionalFlags = 2;
108 FINDEX_SEARCH_OPS(searchOps), 0, dwAdditionalFlags);
151 #endif // QT_NO_FILESYSTEMITERATOR static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
#define QT_END_NAMESPACE
This macro expands to.
QFileSystemEntry::NativePath nativePath
static WinVersion windowsVersion()
Returns the version of the Windows operating system on which the application is run (Windows only)...
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
The QString class provides a Unicode character string.
static bool uncListSharesOnServer(const QString &server, QStringList *list)
QFileSystemEntry::NativePath dirPath
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
NativePath nativeFilePath() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
static QFileSystemEntry getLinkTarget(const QFileSystemEntry &link, QFileSystemMetaData &data)
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)
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
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...
static QString fileName(const QString &fileUrl)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
const ushort * utf16() const
Returns the QString as a '\0\'-terminated array of unsigned shorts.