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 );
71 virtual QIcon icon() const;
74 QString mPluginLayerType;
89 QgsPluginLayerDataProvider(
const QString &layerType,
92 void setExtent(
const QgsRectangle &extent ) { mExtent = extent; }
94 QString name()
const override;
95 QString description()
const override;
97 bool isValid()
const override;
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 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.