equal
deleted
inserted
replaced
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(); |