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 );
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 );
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)
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.