19#ifndef QGSPLUGINLAYERREGSITRY_H
20#define QGSPLUGINLAYERREGSITRY_H
102 typedef QMap<QString, QgsPluginLayerType *> PluginLayerTypes;
104 PluginLayerTypes mPluginLayerTypes;
bool addPluginLayerType(QgsPluginLayerType *pluginLayerType)
Add plugin layer type (take ownership) and return true on success.
QgsPluginLayerRegistry()=default
QgsPluginLayerRegistry & operator=(const QgsPluginLayerRegistry &rh)=delete
bool removePluginLayerType(const QString &typeName)
Remove plugin layer type and return true on success.
QStringList pluginLayerTypes()
List all known layer types.
QgsPluginLayerType * pluginLayerType(const QString &typeName)
Returns plugin layer type metadata or nullptr if doesn't exist.
QgsPluginLayerRegistry(const QgsPluginLayerRegistry &rh)=delete
QgsPluginLayer * createLayer(const QString &typeName, const QString &uri=QString())
Returns new layer if corresponding plugin has been found else returns nullptr.
Responsible for creating plugin specific map layers.
virtual bool showLayerProperties(QgsPluginLayer *layer)
Show plugin layer properties dialog. Return false if the dialog cannot be shown.
QgsPluginLayerType(const QString &name)
virtual QgsPluginLayer * createLayer()
Returns new layer of this type. Return nullptr on error.
virtual ~QgsPluginLayerType()=default
Base class for plugin layers.