57 void fetchContent(
const QUrl &url,
const QString &authcfg = QString() );
67 void fetchContent(
const QNetworkRequest &request,
const QString &authcfg = QString() );
73 QNetworkReply *reply();
80 QString contentDispositionFilename()
const;
86 QString contentAsString()
const;
99 bool wasCanceled()
const;
119 void errorOccurred( QNetworkReply::NetworkError code,
const QString &errorMsg );
124 QNetworkReply *mReply =
nullptr;
126 bool mContentLoaded =
false;
128 bool mIsCanceled =
false;
135 QTextCodec *codecForHtml( QByteArray &array )
const;
143 void contentLoaded(
bool ok =
true );
HTTP network content fetcher.
QgsNetworkContentFetcher()=default
Constructor for QgsNetworkContentFetcher.
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.