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 Request handler for GeoNode servers.
Encapsulates information about a GeoNode layer style.
QString styleUrl
Associated URL.
Service layer details for an individual layer from a GeoNode connection.
QByteArray lastResponse() const
Returns the most recent response obtained from the server.
QString wmsURL
WMS URL for layer.
QMap< QString, QString > QgsStringMap
QString typeName
Layer type name.
QDomDocument body
DOM documenting containing style.
QString title
Layer title.
BackendServer
GeoNode backend server type.
QString xyzURL
XYZ tileserver URL for layer.
QString wfsURL
WFS URL for layer.
QString id
Unique style ID.
QString lastError() const
Returns the most recent error string for any encountered errors, or an empty string if no errors have...
QUuid uuid
Unique identifier (generate on the client side, not at the GeoNode server)
QString title
Style title.