19#include "moc_qgspluginlayer.cpp"
71QgsPluginLayerDataProvider::QgsPluginLayerDataProvider(
const QString &layerType,
const ProviderOptions &options,
Qgis::DataProviderReadFlags flags )
81QString QgsPluginLayerDataProvider::name()
const
86QString QgsPluginLayerDataProvider::description()
const
96bool QgsPluginLayerDataProvider::isValid()
const
Provides global constants and enumerations for use throughout the application.
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
@ Plugin
Plugin based layer.
Represents a coordinate reference system (CRS).
Abstract base class for spatial data provider implementations.
static QIcon iconForLayerType(Qgis::LayerType type)
Returns the default icon for the specified layer type.
virtual Q_INVOKABLE QgsRectangle extent() const
Returns the extent of the layer.
QString source() const
Returns the source for the layer.
QgsMapLayer(Qgis::LayerType type=Qgis::LayerType::Vector, const QString &name=QString(), const QString &source=QString())
Constructor for QgsMapLayer.
void willBeDeleted()
Emitted in the destructor when the layer is about to be deleted, but it is still in a perfectly valid...
virtual void setExtent(const QgsRectangle &rect)
Sets the extent.
QString mDataSource
Data source description string, varies by layer type.
QgsPluginLayer(const QString &layerType, const QString &layerName=QString())
void setSource(const QString &source)
Set source string.
~QgsPluginLayer() override
QString pluginLayerType() const
Returns plugin layer type (the same as used in QgsPluginLayerRegistry).
QgsDataProvider * dataProvider() override
Returns the layer's data provider, it may be nullptr.
virtual QIcon icon() const
Returns an icon for the layer.
void setExtent(const QgsRectangle &extent) override
Sets extent of the layer.
QgsDataProvider * mDataProvider
A rectangle specified with double values.
Setting options for creating vector data providers.