QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | List of all members
QgsPluginLayerRegistry Class Reference

a registry of plugin layers types More...

#include <qgspluginlayerregistry.h>

Public Member Functions

 ~QgsPluginLayerRegistry ()
 
QStringList pluginLayerTypes ()
 list all known layer types More...
 
bool addPluginLayerType (QgsPluginLayerType *pluginLayerType)
 add plugin layer type (take ownership) and return true on success More...
 
bool removePluginLayerType (QString typeName)
 remove plugin layer type and return true on success More...
 
QgsPluginLayerTypepluginLayerType (QString typeName)
 return plugin layer type metadata or NULL if doesn't exist More...
 
QgsPluginLayercreateLayer (QString typeName)
 return new layer if corresponding plugin has been found, else return NULL More...
 

Static Public Member Functions

static QgsPluginLayerRegistryinstance ()
 means of accessing canonical single instance More...
 

Detailed Description

a registry of plugin layers types

Note
added in v1.5

Constructor & Destructor Documentation

QgsPluginLayerRegistry::~QgsPluginLayerRegistry ( )

Member Function Documentation

bool QgsPluginLayerRegistry::addPluginLayerType ( QgsPluginLayerType pluginLayerType)

add plugin layer type (take ownership) and return true on success

QgsPluginLayer * QgsPluginLayerRegistry::createLayer ( QString  typeName)

return new layer if corresponding plugin has been found, else return NULL

QgsPluginLayerRegistry * QgsPluginLayerRegistry::instance ( )
static

means of accessing canonical single instance

QgsPluginLayerType * QgsPluginLayerRegistry::pluginLayerType ( QString  typeName)

return plugin layer type metadata or NULL if doesn't exist

QStringList QgsPluginLayerRegistry::pluginLayerTypes ( )

list all known layer types

Note
added in v2.1
bool QgsPluginLayerRegistry::removePluginLayerType ( QString  typeName)

remove plugin layer type and return true on success


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