QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #include <QMutexLocker>
20 #define SUBLAYER_SEPARATOR QStringLiteral( "!!::!!" )
23 : mDataSourceURI( uri ),
24 mOptions( providerOptions )
46 mProviderProperties.insert( property, value );
51 mProviderProperties.insert( property, value );
56 return mProviderProperties.value( property, defaultValue );
61 return mProviderProperties.value( property, defaultValue );
66 Q_UNUSED( isListening )
76 QMutexLocker locker( &mOptionsMutex );
82 QMutexLocker locker( &mOptionsMutex );
Setting options for creating vector data providers.
QgsDataProvider(const QString &uri=QString(), const QgsDataProvider::ProviderOptions &providerOptions=QgsDataProvider::ProviderOptions())
Create a new dataprovider with the specified in the uri.
void dataChanged()
Emitted whenever a change is made to the data provider which may have caused changes in the provider'...
ProviderProperty
Properties are used to pass custom configuration options into data providers.
QgsCoordinateTransformContext transformContext() const
Returns data provider coordinate transform context.
virtual void reloadData()
Reloads the data from the source by calling reloadProviderData() implemented by providers with data c...
Stores settings related to the context in which a preview job runs.
#define SUBLAYER_SEPARATOR
double maxRenderingTimeMs
Default maximum allowable render time, in ms.
virtual bool renderInPreview(const QgsDataProvider::PreviewContext &context)
Returns whether the layer must be rendered in preview jobs.
virtual QgsDataProviderTemporalCapabilities * temporalCapabilities()
Returns the provider's temporal capabilities.
virtual void setTransformContext(const QgsCoordinateTransformContext &transformContext)
Sets data coordinate transform context to transformContext.
static QString sublayerSeparator()
String sequence used for separating components of sublayers strings.
void setProviderProperty(ProviderProperty property, const QVariant &value)
Allows setting arbitrary properties on the provider.
QgsCoordinateTransformContext transformContext
double lastRenderingTimeMs
Previous rendering time for the layer, in ms.
QVariant providerProperty(ProviderProperty property, const QVariant &defaultValue=QVariant()) const
Gets the current value of a certain provider property.
virtual void setListening(bool isListening)
Set whether the provider will listen to datasource notifications If set, the provider will issue noti...