16 #include <QMutexLocker> 19 #define SUBLAYER_SEPARATOR QStringLiteral( "!!::!!" ) 22 : mDataSourceURI( uri ),
23 mOptions( providerOptions )
35 mProviderProperties.insert( property, value );
40 mProviderProperties.insert( property, value );
45 return mProviderProperties.value( property, defaultValue );
50 return mProviderProperties.value( property, defaultValue );
55 Q_UNUSED( isListening )
65 QMutexLocker locker( &mOptionsMutex );
71 QMutexLocker locker( &mOptionsMutex );
QVariant providerProperty(ProviderProperty property, const QVariant &defaultValue=QVariant()) const
Gets the current value of a certain provider property.
virtual void reloadData()
Reloads the data from the source by calling reloadProviderData() implemented by providers with data c...
QgsDataProvider(const QString &uri=QString(), const QgsDataProvider::ProviderOptions &providerOptions=QgsDataProvider::ProviderOptions())
Create a new dataprovider with the specified in the uri.
double maxRenderingTimeMs
Default maximum allowable render time, in ms.
void dataChanged()
Emitted whenever a change is made to the data provider which may have caused changes in the provider'...
virtual void setListening(bool isListening)
Set whether the provider will listen to datasource notifications If set, the provider will issue noti...
Contains information about the context in which a coordinate transform is executed.
void setProviderProperty(ProviderProperty property, const QVariant &value)
Allows setting arbitrary properties on the provider.
virtual bool renderInPreview(const QgsDataProvider::PreviewContext &context)
Returns whether the layer must be rendered in preview jobs.
QgsCoordinateTransformContext transformContext
QgsCoordinateTransformContext transformContext() const
Returns data provider coordinate transform context.
Setting options for creating vector data providers.
static QString sublayerSeparator()
String sequence used for separating components of sublayers strings.
virtual void setTransformContext(const QgsCoordinateTransformContext &transformContext)
Sets data coordinate transform context to transformContext.
#define SUBLAYER_SEPARATOR
double lastRenderingTimeMs
Previous rendering time for the layer, in ms.
Stores settings related to the context in which a preview job runs.
ProviderProperty
Properties are used to pass custom configuration options into data providers.