16#include "moc_qgspluginlayer.cpp"
20 , mPluginLayerType( layerType )
63QgsPluginLayerDataProvider::QgsPluginLayerDataProvider(
const QString &layerType,
64 const ProviderOptions &options,
75QString QgsPluginLayerDataProvider::name()
const
80QString QgsPluginLayerDataProvider::description()
const
90bool QgsPluginLayerDataProvider::isValid()
const
The Qgis class provides global constants for use throughout the application.
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
This class represents a coordinate reference system (CRS).
Abstract base class for spatial data provider implementations.
Base class for all map layer types.
virtual QgsRectangle extent() const
Returns the extent of the layer.
QString source() const
Returns the source for the layer.
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
QgsDataProvider * dataProvider() override
Returns the layer's data provider, it may be nullptr.
void setExtent(const QgsRectangle &extent) override
Sets extent of the layer.
QString pluginLayerType()
Returns plugin layer type (the same as used in QgsPluginLayerRegistry)
QgsDataProvider * mDataProvider
A rectangle specified with double values.
Setting options for creating vector data providers.