QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
A registry of plugin layers types. More...
#include <qgspluginlayerregistry.h>
Public Member Functions | |
QgsPluginLayerRegistry ()=default | |
QgsPluginLayerRegistry (const QgsPluginLayerRegistry &rh)=delete | |
~QgsPluginLayerRegistry () | |
bool | addPluginLayerType (QgsPluginLayerType *pluginLayerType) |
Add plugin layer type (take ownership) and return true on success. | |
QgsPluginLayer * | createLayer (const QString &typeName, const QString &uri=QString()) |
Returns new layer if corresponding plugin has been found else returns nullptr . | |
QgsPluginLayerRegistry & | operator= (const QgsPluginLayerRegistry &rh)=delete |
QgsPluginLayerType * | pluginLayerType (const QString &typeName) |
Returns plugin layer type metadata or nullptr if doesn't exist. | |
QStringList | pluginLayerTypes () |
List all known layer types. | |
bool | removePluginLayerType (const QString &typeName) |
Remove plugin layer type and return true on success. | |
A registry of plugin layers types.
QgsPluginLayerRegistry is not usually directly created, but rather accessed through QgsApplication::pluginLayerRegistry().
Definition at line 67 of file qgspluginlayerregistry.h.
|
default |
QgsPluginLayerRegistry::~QgsPluginLayerRegistry | ( | ) |
Definition at line 55 of file qgspluginlayerregistry.cpp.
|
delete |
bool QgsPluginLayerRegistry::addPluginLayerType | ( | QgsPluginLayerType * | pluginLayerType | ) |
Add plugin layer type (take ownership) and return true
on success.
Definition at line 73 of file qgspluginlayerregistry.cpp.
QgsPluginLayer * QgsPluginLayerRegistry::createLayer | ( | const QString & | typeName, |
const QString & | uri = QString() |
||
) |
Returns new layer if corresponding plugin has been found else returns nullptr
.
Definition at line 117 of file qgspluginlayerregistry.cpp.
|
delete |
QgsPluginLayerType * QgsPluginLayerRegistry::pluginLayerType | ( | const QString & | typeName | ) |
Returns plugin layer type metadata or nullptr
if doesn't exist.
Definition at line 111 of file qgspluginlayerregistry.cpp.
QStringList QgsPluginLayerRegistry::pluginLayerTypes | ( | ) |
List all known layer types.
Definition at line 68 of file qgspluginlayerregistry.cpp.
bool QgsPluginLayerRegistry::removePluginLayerType | ( | const QString & | typeName | ) |
Remove plugin layer type and return true
on success.
Definition at line 86 of file qgspluginlayerregistry.cpp.