QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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 )
32 return Qgis::DataProviderFlags();
53 mProviderProperties.insert( property, value );
58 mProviderProperties.insert( property, value );
63 return mProviderProperties.value( property, defaultValue );
68 return mProviderProperties.value( property, defaultValue );
73 Q_UNUSED( isListening )
83 const QMutexLocker locker( &mOptionsMutex );
89 const QMutexLocker locker( &mOptionsMutex );
Contains information about the context in which a coordinate transform is executed.
virtual Qgis::DataProviderFlags flags() const
Returns the generic data provider flags.
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 for providers with data caches to synchronize, changes in the data s...
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.
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.
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...