16 #include <QMutexLocker> 22 : mDataSourceURI( uri ),
23 mOptions( providerOptions )
29 mProviderProperties.insert( property, value );
34 mProviderProperties.insert( property, value );
39 return mProviderProperties.value( property, defaultValue );
44 return mProviderProperties.value( property, defaultValue );
49 Q_UNUSED( isListening )
59 QMutexLocker locker( &mOptionsMutex );
65 QMutexLocker locker( &mOptionsMutex );
QVariant providerProperty(ProviderProperty property, const QVariant &defaultValue=QVariant()) const
Gets the current value of a certain provider property.
static QString SUBLAYER_SEPARATOR
String sequence used for separating components of sublayers strings.
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.
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.
virtual void setTransformContext(const QgsCoordinateTransformContext &transformContext)
Sets data coordinate transform context to transformContext.
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.