19 #ifndef QGSMAPLAYERSTORE_H 
   20 #define QGSMAPLAYERSTORE_H 
   22 #include "qgis_core.h" 
   57     int validCount() 
const;
 
   66     sipRes = sipCpp->count();
 
   92     QList<QgsMapLayer *> mapLayersByName( 
const QString &name ) 
const;
 
  100     QMap<QString, QgsMapLayer *> mapLayers() 
const;
 
  109     QMap<QString, QgsMapLayer *> validMapLayers() 
const;
 
  123     template <
typename T>
 
  127       QMap<QString, QgsMapLayer *>::const_iterator layerIt = mMapLayers.constBegin();
 
  128       for ( ; layerIt != mMapLayers.constEnd(); ++layerIt )
 
  130         T tLayer = qobject_cast<T>( layerIt.value() );
 
  163     QList<QgsMapLayer *> addMapLayers( 
const QList<QgsMapLayer *> &layers 
SIP_TRANSFER,
 
  204     void removeMapLayers( 
const QStringList &layerIds ) 
SIP_PYNAME( removeMapLayersById );
 
  219     void removeMapLayers( 
const QList<QgsMapLayer *> &layers );
 
  233     void removeMapLayer( 
const QString &
id );
 
  265     void removeAllMapLayers();
 
  283     void layersWillBeRemoved( 
const QStringList &layerIds );
 
  292     void layersWillBeRemoved( 
const QList<QgsMapLayer *> &layers );
 
  303     void layerWillBeRemoved( 
const QString &layerId );
 
  322     void layersRemoved( 
const QStringList &layerIds );
 
  332     void layerRemoved( 
const QString &layerId );
 
  340     void allLayersRemoved();
 
  349     void layersAdded( 
const QList<QgsMapLayer *> &layers );
 
  361     void onMapLayerDeleted( QObject *obj );
 
  365     QMap<QString, QgsMapLayer *> mMapLayers;
 
  369 #endif //QGSMAPLAYERSTORE_H