QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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 ()=default
 
virtual QgsPluginLayercreateLayer ()
 Returns new layer of this type. Return NULL on error. More...
 
virtual QgsPluginLayercreateLayer (const QString &uri)
 Returns 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. Return false if the dialog cannot be shown. More...
 

Protected Attributes

QString mName
 

Detailed Description

class for creating plugin specific layers

Definition at line 34 of file qgspluginlayerregistry.h.

Constructor & Destructor Documentation

QgsPluginLayerType::QgsPluginLayerType ( const QString &  name)

Definition at line 24 of file qgspluginlayerregistry.cpp.

virtual QgsPluginLayerType::~QgsPluginLayerType ( )
virtualdefault

Member Function Documentation

QgsPluginLayer * QgsPluginLayerType::createLayer ( )
virtual

Returns new layer of this type. Return NULL on error.

Definition at line 34 of file qgspluginlayerregistry.cpp.

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

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

Return NULL on error.

Since
QGIS 2.10

Definition at line 39 of file qgspluginlayerregistry.cpp.

QString QgsPluginLayerType::name ( )

Definition at line 29 of file qgspluginlayerregistry.cpp.

bool QgsPluginLayerType::showLayerProperties ( QgsPluginLayer layer)
virtual

Show plugin layer properties dialog. Return false if the dialog cannot be shown.

Definition at line 45 of file qgspluginlayerregistry.cpp.

Member Data Documentation

QString QgsPluginLayerType::mName
protected

Definition at line 56 of file qgspluginlayerregistry.h.


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