QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | List of all members
QgsPluginLayerRegistry Class Reference

A registry of plugin layers types. More...

#include <qgspluginlayerregistry.h>

Public Member Functions

 QgsPluginLayerRegistry ()=default
 Constructor for QgsPluginLayerRegistry. More...
 
 QgsPluginLayerRegistry (const QgsPluginLayerRegistry &rh)=delete
 QgsPluginLayerRegistry cannot be copied. More...
 
 ~QgsPluginLayerRegistry ()
 
bool addPluginLayerType (QgsPluginLayerType *pluginLayerType)
 Add plugin layer type (take ownership) and return true on success. More...
 
QgsPluginLayercreateLayer (const QString &typeName, const QString &uri=QString())
 Returns new layer if corresponding plugin has been found else returns a nullptr. More...
 
QgsPluginLayerRegistryoperator= (const QgsPluginLayerRegistry &rh)=delete
 QgsPluginLayerRegistry cannot be copied. More...
 
QgsPluginLayerTypepluginLayerType (const QString &typeName)
 Returns 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...
 

Detailed Description

A registry of plugin layers types.

QgsPluginLayerRegistry is not usually directly created, but rather accessed through QgsApplication::pluginLayerRegistry().

Definition at line 68 of file qgspluginlayerregistry.h.

Constructor & Destructor Documentation

QgsPluginLayerRegistry::QgsPluginLayerRegistry ( )
default

Constructor for QgsPluginLayerRegistry.

QgsPluginLayerRegistry::~QgsPluginLayerRegistry ( )

Definition at line 55 of file qgspluginlayerregistry.cpp.

QgsPluginLayerRegistry::QgsPluginLayerRegistry ( const QgsPluginLayerRegistry rh)
delete

QgsPluginLayerRegistry cannot be copied.

Member Function Documentation

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 a nullptr.

Note
parameter uri has been added in QGIS 2.10

Definition at line 116 of file qgspluginlayerregistry.cpp.

QgsPluginLayerRegistry& QgsPluginLayerRegistry::operator= ( const QgsPluginLayerRegistry rh)
delete

QgsPluginLayerRegistry cannot be copied.

QgsPluginLayerType * QgsPluginLayerRegistry::pluginLayerType ( const QString &  typeName)

Returns plugin layer type metadata or NULL if doesn't exist.

Definition at line 110 of file qgspluginlayerregistry.cpp.

QStringList QgsPluginLayerRegistry::pluginLayerTypes ( )

List all known layer types.

Since
QGIS

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.


The documentation for this class was generated from the following files: