54 void fetchContent(
const QUrl &url,
const QString &authcfg = QString() );
64 void fetchContent(
const QNetworkRequest &request,
const QString &authcfg = QString() );
70 QNetworkReply *reply();
77 QString contentDispositionFilename()
const;
83 QString contentAsString()
const;
96 bool wasCanceled()
const;
116 void errorOccurred( QNetworkReply::NetworkError code,
const QString &errorMsg );
121 QNetworkReply *mReply =
nullptr;
123 bool mContentLoaded =
false;
125 bool mIsCanceled =
false;
132 QTextCodec *codecForHtml( QByteArray &array )
const;
140 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.