qtinternetradio/ui/src/irchannelmodel.cpp
changeset 11 f683e24efca3
parent 8 3b03c28289e6
child 17 38bbf2dcd608
equal deleted inserted replaced
8:3b03c28289e6 11:f683e24efca3
   171     }
   171     }
   172     
   172     
   173     return iChannelList->at(aIndex);
   173     return iChannelList->at(aIndex);
   174 }
   174 }
   175 
   175 
       
   176 void IrChannelModel::cleanupDatabase()
       
   177 {
       
   178     clearAndDestroyItems();
       
   179     clearAndDestroyLogos();
       
   180     iDB->clearCache();
       
   181     
       
   182     emit dataAvailable();
       
   183 }
       
   184 
   176 void IrChannelModel::clearAndDestroyLogos()
   185 void IrChannelModel::clearAndDestroyLogos()
   177 {
   186 {
   178     for (QMap<int, HbIcon*>::iterator it = iLogos.begin(); it != iLogos.end(); ++it)
   187     for (QMap<int, HbIcon*>::iterator it = iLogos.begin(); it != iLogos.end(); ++it)
   179     {
   188     {
   180         delete it.value();
   189         delete it.value();