Skip to content
Permalink
Browse files

Allow listing all available plugin layers

  • Loading branch information
wonder-sk committed Oct 8, 2013
1 parent cecfff0 commit 8118f4df8eb687deb1ab2de21778995eee1ea3f3
@@ -33,6 +33,10 @@ class QgsPluginLayerRegistry

~QgsPluginLayerRegistry();

/** list all known layer types
* \note added in v2.1 */
QStringList pluginLayerTypes();

/** add plugin layer type (take ownership) and return true on success */
bool addPluginLayerType( QgsPluginLayerType* pluginLayerType /Transfer/ );

@@ -74,6 +74,11 @@ QgsPluginLayerRegistry::~QgsPluginLayerRegistry()
}
}

QStringList QgsPluginLayerRegistry::pluginLayerTypes()
{
return mPluginLayerTypes.keys();
}

bool QgsPluginLayerRegistry::addPluginLayerType( QgsPluginLayerType* type )
{
if ( type == NULL )
@@ -64,6 +64,10 @@ class CORE_EXPORT QgsPluginLayerRegistry

~QgsPluginLayerRegistry();

/** list all known layer types
* \note added in v2.1 */
QStringList pluginLayerTypes();

/** add plugin layer type (take ownership) and return true on success */
bool addPluginLayerType( QgsPluginLayerType* pluginLayerType );

0 comments on commit 8118f4d

Please sign in to comment.
You can’t perform that action at this time.