19 #ifndef QGSMAPLAYERREGISTRY_H
20 #define QGSMAPLAYERREGISTRY_H
25 #include <QStringList>
50 QList<QgsMapLayer *> mapLayersByName( QString layerName );
53 const QMap<QString, QgsMapLayer*> & mapLayers();
77 QList<QgsMapLayer *> addMapLayers( QList<QgsMapLayer *> theMapLayers,
78 bool addToLegend =
true,
79 bool takeOwnership =
true );
105 QgsMapLayer* addMapLayer(
QgsMapLayer * theMapLayer,
bool addToLegend =
true,
bool takeOwnership =
true );
120 void removeMapLayers( QStringList theLayerIds );
135 void removeMapLayer(
const QString& theLayerId );
143 void removeAllMapLayers();
153 void clearAllLayerCaches();
160 void reloadAllLayers();
168 void layersWillBeRemoved( QStringList theLayerIds );
177 void layerWillBeRemoved( QString theLayerId );
184 void layersRemoved( QStringList theLayerIds );
193 void layerRemoved( QString theLayerId );
215 void layersAdded( QList<QgsMapLayer *> theMapLayers );
236 void legendLayersAdded( QList<QgsMapLayer*> theMapLayers );
245 void connectNotify(
const char * signal );
258 #endif //QgsMapLayerRegistry_H