15#ifndef QGSPLUGINLAYER_H
16#define QGSPLUGINLAYER_H
24using namespace Qt::StringLiterals;
42 QgsPluginLayer(
const QString &layerType,
const QString &layerName = QString() );
47 SIP_PYOBJECT __repr__();
49 QString str = u
"<QgsPluginLayer: '%1'>"_s.arg( sipCpp->name() );
50 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
80 virtual QIcon
icon() const;
101 QString
name()
const override;
102 QString description()
const override;
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
Represents a coordinate reference system (CRS).
Abstract base class for spatial data provider implementations.
virtual Q_INVOKABLE QgsRectangle extent() const
Returns the extent of the layer.
QString source() const
Returns the source for the layer.
QgsCoordinateReferenceSystem crs
QgsMapLayer(Qgis::LayerType type=Qgis::LayerType::Vector, const QString &name=QString(), const QString &source=QString())
Constructor for QgsMapLayer.
QgsMapLayer::LayerFlags flags
virtual void setExtent(const QgsRectangle &rect)
Sets the extent.
virtual Q_INVOKABLE QgsDataProvider * dataProvider()
Returns the layer's data provider, it may be nullptr.
QgsPluginLayer(const QString &layerType, const QString &layerName=QString())
void setSource(const QString &source)
Set source string.
QString pluginLayerType() const
Returns plugin layer type (the same as used in QgsPluginLayerRegistry).
virtual QIcon icon() const
Returns an icon for the layer.
void setExtent(const QgsRectangle &extent) override
Sets extent of the layer.
QgsDataProvider * mDataProvider
QgsPluginLayer * clone() const override=0
Returns a new instance equivalent to this one.
A rectangle specified with double values.
Setting options for creating vector data providers.