6#include <QtCore/QDebug>
7#include <QNetworkReply>
8#include <QtCore/QDateTime>
9#include <QtCore/QFileInfo>
10#include <QtCore/QMetaObject>
11#include <QtCore/QCoreApplication>
31 "Cannot open %1: Path is a directory").
arg(
fileName());
58#include "moc_qnetworkfile_p.cpp"
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
void close() override
Calls QFileDevice::flush() and closes the file.
\inmodule QtCore \reentrant
QDateTime lastModified() const
Returns the date and time when the file was last modified.
bool isDir() const
Returns true if this object points to a directory or to a symbolic link to a directory.
qint64 size() const
Returns the file size in bytes.
bool open(OpenMode flags) override
Opens the file using OpenMode mode, returning true if successful; otherwise false.
QString fileName() const override
Returns the name set by setFileName() or to the QFile constructors.
bool exists() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString errorString() const
Returns a human-readable description of the last device error that occurred.
void error(QNetworkReply::NetworkError error, const QString &message)
void headerRead(QNetworkRequest::KnownHeaders header, const QVariant &value)
@ ContentOperationNotPermittedError
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString arg(qlonglong a, int fieldwidth=0, int base=10, QChar fillChar=u' ') const
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
QFileInfo fi("c:/temp/foo")
[newstuff]