58 void fetchContent(
const QUrl &url,
const QString &authcfg = QString() );
68 void fetchContent(
const QNetworkRequest &request,
const QString &authcfg = QString() );
74 QNetworkReply *reply();
81 QString contentDispositionFilename()
const;
87 QString contentAsString()
const;
100 bool wasCanceled()
const;
120 void errorOccurred( QNetworkReply::NetworkError code,
const QString &errorMsg );
125 QNetworkReply *mReply =
nullptr;
127 bool mContentLoaded =
false;
129 bool mIsCanceled =
false;
136 QTextCodec *codecForHtml( QByteArray &array )
const;
144 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.