QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #include <QMutexLocker>
20 #define SUBLAYER_SEPARATOR QStringLiteral( "!!::!!" )
23 QgsDataProvider::ReadFlags flags )
24 : mDataSourceURI( uri ),
25 mOptions( providerOptions )
48 mProviderProperties.insert( property, value );
53 mProviderProperties.insert( property, value );
58 return mProviderProperties.value( property, defaultValue );
63 return mProviderProperties.value( property, defaultValue );
68 Q_UNUSED( isListening )
78 QMutexLocker locker( &mOptionsMutex );
84 QMutexLocker locker( &mOptionsMutex );
Contains information about the context in which a coordinate transform is executed.
Setting options for creating vector data providers.
QgsDataProvider(const QString &uri=QString(), const QgsDataProvider::ProviderOptions &providerOptions=QgsDataProvider::ProviderOptions(), QgsDataProvider::ReadFlags flags=QgsDataProvider::ReadFlags())
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.
Base class for handling properties relating to a data provider's temporal capabilities.
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.
QgsDataProvider::ReadFlags mReadFlags
Read flags. It's up to the subclass to respect these when needed.
virtual void setTransformContext(const QgsCoordinateTransformContext &transformContext)
Sets data coordinate transform context to transformContext.
virtual QgsDataProviderTemporalCapabilities * temporalCapabilities()
Returns the provider's temporal capabilities.
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
Coordinate transform context.
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...