Skip to content
Permalink
Browse files
[WFS provider] Transmit error message of feature downloader to provider
  • Loading branch information
rouault authored and nyalldawson committed May 21, 2021
1 parent b5c5cc7 commit bc3ba060c42283b4718e80336fff462188f5e80c
@@ -177,6 +177,8 @@ void QgsFeatureDownloaderImpl::endOfRun( bool serializeFeatures,

if ( serializeFeatures )
mSharedBase->endOfDownload( success, totalDownloadedFeatureCount, truncatedResponse, interrupted, errorMessage );
else if ( !errorMessage.isEmpty() )
mSharedBase->pushError( errorMessage );

// We must emit the signal *AFTER* the previous call to mShared->endOfDownload()
// to avoid issues with iterators that would start just now, wouldn't detect
@@ -179,6 +179,9 @@ class QgsBackgroundCachedSharedData
//! Return layer name
virtual QString layerName() const = 0;

//! Called when an error must be raised to the provider
virtual void pushError( const QString &errorMsg ) = 0;

protected:

//////////// Input members. Implementations should define them to meaningful values
@@ -318,9 +321,6 @@ class QgsBackgroundCachedSharedData

///////////////// PURE VIRTUAL METHODS ////////////////////////

//! Called when an error must be raised to the provider
virtual void pushError( const QString &errorMsg ) = 0;

//! Called when the extent is updated
virtual void emitExtentUpdated() = 0;

0 comments on commit bc3ba06

Please sign in to comment.