QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
a registry of plugin layers types More...
#include <qgspluginlayerregistry.h>
Public Member Functions | |
~QgsPluginLayerRegistry () | |
bool | addPluginLayerType (QgsPluginLayerType *pluginLayerType) |
Add plugin layer type (take ownership) and return true on success. More... | |
QgsPluginLayer * | createLayer (const QString &typeName, const QString &uri=QString()) |
Return new layer if corresponding plugin has been found, else return NULL. More... | |
QgsPluginLayerType * | pluginLayerType (const QString &typeName) |
Return plugin layer type metadata or NULL if doesn't exist. More... | |
QStringList | pluginLayerTypes () |
List all known layer types. More... | |
bool | removePluginLayerType (const QString &typeName) |
Remove plugin layer type and return true on success. More... | |
Static Public Member Functions | |
static QgsPluginLayerRegistry * | instance () |
Means of accessing canonical single instance. More... | |
a registry of plugin layers types
Definition at line 59 of file qgspluginlayerregistry.h.
QgsPluginLayerRegistry::~QgsPluginLayerRegistry | ( | ) |
Definition at line 73 of file qgspluginlayerregistry.cpp.
bool QgsPluginLayerRegistry::addPluginLayerType | ( | QgsPluginLayerType * | pluginLayerType | ) |
Add plugin layer type (take ownership) and return true on success.
Definition at line 91 of file qgspluginlayerregistry.cpp.
QgsPluginLayer * QgsPluginLayerRegistry::createLayer | ( | const QString & | typeName, |
const QString & | uri = QString() |
||
) |
Return new layer if corresponding plugin has been found, else return NULL.
Definition at line 134 of file qgspluginlayerregistry.cpp.
|
static |
Means of accessing canonical single instance.
Definition at line 59 of file qgspluginlayerregistry.cpp.
QgsPluginLayerType * QgsPluginLayerRegistry::pluginLayerType | ( | const QString & | typeName | ) |
Return plugin layer type metadata or NULL if doesn't exist.
Definition at line 128 of file qgspluginlayerregistry.cpp.
QStringList QgsPluginLayerRegistry::pluginLayerTypes | ( | ) |
List all known layer types.
Definition at line 86 of file qgspluginlayerregistry.cpp.
bool QgsPluginLayerRegistry::removePluginLayerType | ( | const QString & | typeName | ) |
Remove plugin layer type and return true on success.
Definition at line 104 of file qgspluginlayerregistry.cpp.