55 if ( _instance == NULL )
63 QgsPluginLayerRegistry::QgsPluginLayerRegistry()
69 if ( !mPluginLayerTypes.isEmpty() )
71 QgsDebugMsg(
"QgsPluginLayerRegistry::~QgsPluginLayerRegistry(): creator list not empty" );
72 foreach ( QString typeName, mPluginLayerTypes.keys() )
79 return mPluginLayerTypes.keys();
86 if ( mPluginLayerTypes.contains( type->
name() ) )
89 mPluginLayerTypes[type->
name()] = type;
96 if ( !mPluginLayerTypes.contains( typeName ) )
109 QStringList() << layer->
id() );
114 delete mPluginLayerTypes.take( typeName );
120 return mPluginLayerTypes.value( typeName, NULL );
129 QgsDebugMsg(
"Unknown plugin layer type: " + typeName );