15 #ifndef QGSGEONODEREQUEST_H
16 #define QGSGEONODEREQUEST_H
19 #include "qgis_core.h"
20 #include <QNetworkReply>
21 #include <QDomDocument>
112 QgsGeoNodeRequest(
const QString &baseUrl,
bool forceRefresh, QObject *parent =
nullptr );
128 void request(
const QString &endPoint );
139 bool requestBlocking(
const QString &endPoint );
165 QList<QgsGeoNodeRequest::ServiceLayerDetail> fetchLayersBlocking();
175 QList<QgsGeoNodeStyle> fetchStylesBlocking(
const QString &layerName );
199 QStringList fetchServiceUrlsBlocking(
const QString &serviceType );
207 QgsStringMap fetchServiceUrlDataBlocking(
const QString &serviceType );
224 QString protocol()
const;
230 void setProtocol(
const QString &protocol );
249 void statusChanged(
const QString &statusQString );
254 void requestFinished();
259 void layersFetched(
const QList<QgsGeoNodeRequest::ServiceLayerDetail> &layers );
262 void replyFinished();
263 void replyProgress( qint64, qint64 );
274 QNetworkReply *mGeoNodeReply =
nullptr;
280 QString mErrorFormat;
283 QByteArray mHttpGeoNodeResponse;
285 bool mIsAborted =
false;
286 bool mForceRefresh =
false;
287 bool mParsingLayers =
false;
289 QList<QgsGeoNodeRequest::ServiceLayerDetail> parseLayers(
const QByteArray &layerResponse );
292 QNetworkReply *requestUrl(
const QString &url );
296 #endif // QGSGEONODEREQUEST_H