15 #ifndef QGSGEONODEREQUEST_H 16 #define QGSGEONODEREQUEST_H 19 #include "qgis_core.h" 20 #include <QNetworkReply> 21 #include <QDomDocument> 96 QgsGeoNodeRequest(
const QString &baseUrl,
bool forceRefresh, QObject *parent =
nullptr );
112 void request(
const QString &endPoint );
123 bool requestBlocking(
const QString &endPoint );
149 QList<QgsGeoNodeRequest::ServiceLayerDetail> fetchLayersBlocking();
159 QList<QgsGeoNodeStyle> fetchStylesBlocking(
const QString &layerName );
183 QStringList fetchServiceUrlsBlocking(
const QString &serviceType );
191 QgsStringMap fetchServiceUrlDataBlocking(
const QString &serviceType );
208 QString protocol()
const;
214 void setProtocol(
const QString &protocol );
228 void statusChanged(
const QString &statusQString );
233 void requestFinished();
238 void layersFetched(
const QList<QgsGeoNodeRequest::ServiceLayerDetail> &layers );
241 void replyFinished();
242 void replyProgress( qint64, qint64 );
253 QNetworkReply *mGeoNodeReply =
nullptr;
259 QString mErrorFormat;
262 QByteArray mHttpGeoNodeResponse;
264 bool mIsAborted =
false;
265 bool mForceRefresh =
false;
267 QList<QgsGeoNodeRequest::ServiceLayerDetail> parseLayers(
const QByteArray &layerResponse );
270 QNetworkReply *requestUrl(
const QString &url );
274 #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.
QString wmsURL
WMS URL for layer.
QString lastError() const
Returns the most recent error string for any encountered errors, or an empty string if no errors have...
QMap< QString, QString > QgsStringMap
QString typeName
Layer type name.
QDomDocument body
DOM documenting containing style.
QByteArray lastResponse() const
Returns the most recent response obtained from the server.
QString title
Layer title.
QString xyzURL
XYZ tileserver URL for layer.
QString wfsURL
WFS URL for layer.
QString id
Unique style ID.
QUuid uuid
Unique identifier (generate on the client side, not at the GeoNode server)
QString title
Style title.