15#ifndef QGSPLUGINLAYER_H
16#define QGSPLUGINLAYER_H
36 QgsPluginLayer(
const QString &layerType,
const QString &layerName = QString() );
40 SIP_PYOBJECT __repr__();
42 QString
str = QStringLiteral(
"<QgsPluginLayer: '%1'>" ).arg( sipCpp->name() );
43 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
54 QString pluginLayerType();
62 void setSource(
const QString &source );
68 QString mPluginLayerType;
83 QgsPluginLayerDataProvider(
const QString &layerType,
85 QgsDataProvider::ReadFlags flags );
86 void setExtent(
const QgsRectangle &extent ) { mExtent = extent; }
88 QString name()
const override;
89 QString description()
const override;
91 bool isValid()
const override;
This class represents a coordinate reference system (CRS).
Abstract base class for spatial data provider implementations.
Base class for all map layer types.
virtual void setExtent(const QgsRectangle &rect)
Sets the extent.
virtual Q_INVOKABLE QgsDataProvider * dataProvider()
Returns the layer's data provider, it may be nullptr.
Base class for plugin layers.
QgsPluginLayer * clone() const override=0
Returns a new instance equivalent to this one.
A rectangle specified with double values.
const QgsCoordinateReferenceSystem & crs
Setting options for creating vector data providers.