40 #ifndef QFILESYSTEMENGINE_P_H
41 #define QFILESYSTEMENGINE_P_H
57 #include <QtCore/private/qsystemerror_p.h>
63 #define Q_RETURN_ON_INVALID_FILENAME(message, result) \
65 QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).warning(message); \
72 return name.contains(
'\0');
85 #define Q_CHECK_FILE_NAME(name, result) \
87 if (Q_UNLIKELY((name).isEmpty())) \
88 Q_RETURN_ON_INVALID_FILENAME("Empty filename passed to function", (result)); \
89 if (Q_UNLIKELY(qIsFilenameBroken(name))) \
90 Q_RETURN_ON_INVALID_FILENAME("Broken filename passed to function", (result)); \
113 #if defined(Q_OS_UNIX)
118 #if defined(Q_OS_DARWIN)
126 #if defined(Q_OS_UNIX)
130 static bool setFileTime(
int fd,
const QDateTime &newDate,
135 #if defined(Q_OS_WIN)
149 static bool isDirPath(
const QString &
path,
bool *existed);
157 std::optional<QFile::Permissions> permissions = std::nullopt);
182 #if defined(Q_OS_WIN)
The QByteArray class provides an array of bytes.
The QDateTime class provides date and time functions.
static QString bundleName(const QFileSystemEntry &)
static bool isCaseSensitive()
The QString class provides a Unicode character string.
The QStringList class provides a list of strings.
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 return DBusPendingCall DBusPendingCall return DBusPendingCall return dbus_int32_t return DBusServer * server
bool qIsFilenameBroken(const QByteArray &name)
#define Q_AUTOTEST_EXPORT
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei GLsizei GLchar * source
GLsizei const GLchar *const * path
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.