QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Protected Attributes | List of all members
QgsPluginLayerType Class Reference

class for creating plugin specific layers More...

#include <qgspluginlayerregistry.h>

Public Member Functions

 QgsPluginLayerType (const QString &name)
 
virtual ~QgsPluginLayerType ()
 
virtual QgsPluginLayercreateLayer ()
 Return new layer of this type. More...
 
virtual QgsPluginLayercreateLayer (const QString &uri)
 Return new layer of this type, using layer URI (specific to this plugin layer type). More...
 
QString name ()
 
virtual bool showLayerProperties (QgsPluginLayer *layer)
 Show plugin layer properties dialog. More...
 

Protected Attributes

QString mName
 

Detailed Description

class for creating plugin specific layers

Definition at line 30 of file qgspluginlayerregistry.h.

Constructor & Destructor Documentation

◆ QgsPluginLayerType()

QgsPluginLayerType::QgsPluginLayerType ( const QString name)

Definition at line 24 of file qgspluginlayerregistry.cpp.

◆ ~QgsPluginLayerType()

QgsPluginLayerType::~QgsPluginLayerType ( )
virtual

Definition at line 29 of file qgspluginlayerregistry.cpp.

Member Function Documentation

◆ createLayer() [1/2]

QgsPluginLayer * QgsPluginLayerType::createLayer ( )
virtual

Return new layer of this type.

Return NULL on error

Definition at line 38 of file qgspluginlayerregistry.cpp.

◆ createLayer() [2/2]

QgsPluginLayer * QgsPluginLayerType::createLayer ( const QString uri)
virtual

Return new layer of this type, using layer URI (specific to this plugin layer type).

Return NULL on error.

Note
added in 2.10

Definition at line 43 of file qgspluginlayerregistry.cpp.

◆ name()

QString QgsPluginLayerType::name ( )

Definition at line 33 of file qgspluginlayerregistry.cpp.

◆ showLayerProperties()

bool QgsPluginLayerType::showLayerProperties ( QgsPluginLayer layer)
virtual

Show plugin layer properties dialog.

Return false if the dialog cannot be shown.

Definition at line 49 of file qgspluginlayerregistry.cpp.

Member Data Documentation

◆ mName

QString QgsPluginLayerType::mName
protected

Definition at line 51 of file qgspluginlayerregistry.h.


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