changeset 11 | f683e24efca3 |
parent 8 | 3b03c28289e6 |
child 17 | 38bbf2dcd608 |
--- a/qtinternetradio/ui/src/irchannelmodel.cpp Fri Jun 11 13:30:40 2010 +0300 +++ b/qtinternetradio/ui/src/irchannelmodel.cpp Wed Jun 23 18:04:00 2010 +0300 @@ -173,6 +173,15 @@ return iChannelList->at(aIndex); } +void IrChannelModel::cleanupDatabase() +{ + clearAndDestroyItems(); + clearAndDestroyLogos(); + iDB->clearCache(); + + emit dataAvailable(); +} + void IrChannelModel::clearAndDestroyLogos() { for (QMap<int, HbIcon*>::iterator it = iLogos.begin(); it != iLogos.end(); ++it)