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 );
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;
288 QList<QgsGeoNodeRequest::ServiceLayerDetail> parseLayers(
const QByteArray &layerResponse );
291 QNetworkReply *requestUrl(
const QString &url );
Request handler for GeoNode servers.
void layersFetched(const QList< QgsGeoNodeRequest::ServiceLayerDetail > &layers)
Emitted when the result of a fetchLayers call has been received and processed.
void requestFinished()
Emitted when the existing request has been completed.
QString lastError() const
Returns the most recent error string for any encountered errors, or an empty string if no errors have...
BackendServer
GeoNode backend server type.
void statusChanged(const QString &statusQString)
Emitted when the status of an ongoing request is changed.
QByteArray lastResponse() const
Returns the most recent response obtained from the server.
QMap< QString, QString > QgsStringMap
Service layer details for an individual layer from a GeoNode connection.
QString typeName
Layer type name.
QString wmsURL
WMS URL for layer.
QString title
Layer title.
QString wfsURL
WFS URL for layer.
QString xyzURL
XYZ tileserver URL for layer.
QUuid uuid
Unique identifier (generate on the client side, not at the GeoNode server)
QString wcsURL
WCS URL for layer.
Encapsulates information about a GeoNode layer style.
QString id
Unique style ID.
QString styleUrl
Associated URL.
QDomDocument body
DOM documenting containing style.
QString title
Style title.