19 #ifndef QGSMAPLAYERREGISTRY_H
20 #define QGSMAPLAYERREGISTRY_H
25 #include <QStringList>
50 QList<QgsMapLayer *> mapLayersByName( QString layerName );
53 const QMap<QString, QgsMapLayer*> & mapLayers();
78 QList<QgsMapLayer *> addMapLayers( QList<QgsMapLayer *> theMapLayers,
79 bool addToLegend =
true,
80 bool takeOwnership =
true );
107 QgsMapLayer* addMapLayer(
QgsMapLayer * theMapLayer,
bool addToLegend =
true,
bool takeOwnership =
true );
122 void removeMapLayers( QStringList theLayerIds );
137 void removeMapLayer(
const QString& theLayerId );
145 void removeAllMapLayers();
155 void clearAllLayerCaches();
162 void reloadAllLayers();
170 void layersWillBeRemoved( QStringList theLayerIds );
179 void layerWillBeRemoved( QString theLayerId );
186 void layersRemoved( QStringList theLayerIds );
195 void layerRemoved( QString theLayerId );
217 void layersAdded( QList<QgsMapLayer *> theMapLayers );
238 void legendLayersAdded( QList<QgsMapLayer*> theMapLayers );
247 void connectNotify(
const char * signal );
255 #endif //QgsMapLayerRegistry_H