15 #ifndef QGSGEONODEREQUEST_H
16 #define QGSGEONODEREQUEST_H
19 #include "qgis_core.h"
20 #include <QNetworkReply>
21 #include <QDomDocument>
110 QgsGeoNodeRequest(
const QString &baseUrl,
bool forceRefresh, QObject *parent =
nullptr );
126 void request(
const QString &endPoint );
137 bool requestBlocking(
const QString &endPoint );
163 QList<QgsGeoNodeRequest::ServiceLayerDetail> fetchLayersBlocking();
173 QList<QgsGeoNodeStyle> fetchStylesBlocking(
const QString &layerName );
197 QStringList fetchServiceUrlsBlocking(
const QString &serviceType );
205 QgsStringMap fetchServiceUrlDataBlocking(
const QString &serviceType );
222 QString protocol()
const;
228 void setProtocol(
const QString &protocol );
247 void statusChanged(
const QString &statusQString );
252 void requestFinished();
257 void layersFetched(
const QList<QgsGeoNodeRequest::ServiceLayerDetail> &layers );
260 void replyFinished();
261 void replyProgress( qint64, qint64 );
272 QNetworkReply *mGeoNodeReply =
nullptr;
278 QString mErrorFormat;
281 QByteArray mHttpGeoNodeResponse;
283 bool mIsAborted =
false;
284 bool mForceRefresh =
false;
286 QList<QgsGeoNodeRequest::ServiceLayerDetail> parseLayers(
const QByteArray &layerResponse );
289 QNetworkReply *requestUrl(
const QString &url );
293 #endif // QGSGEONODEREQUEST_H