55 void fetchContent(
const QUrl &url,
const QString &authcfg = QString() );
65 void fetchContent(
const QNetworkRequest &request,
const QString &authcfg = QString() );
71 QNetworkReply *reply();
78 QString contentDispositionFilename()
const;
84 QString contentAsString()
const;
97 bool wasCanceled()
const;
117 void errorOccurred( QNetworkReply::NetworkError code,
const QString &errorMsg );
122 QNetworkReply *mReply =
nullptr;
124 bool mContentLoaded =
false;
126 bool mIsCanceled =
false;
133 QTextCodec *codecForHtml( QByteArray &array )
const;
141 void contentLoaded(
bool ok =
true );
HTTP network content fetcher.
QgsNetworkContentFetcher()=default
void finished()
Emitted when content has loaded.
void errorOccurred(QNetworkReply::NetworkError code, const QString &errorMsg)
Emitted when an error with code error occurred while processing the request errorMsg is a textual des...
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
Emitted when data is received.