equal
deleted
inserted
replaced
251 { |
251 { |
252 iActiveShowList.Append(aShowArray[loop]); |
252 iActiveShowList.Append(aShowArray[loop]); |
253 } |
253 } |
254 } |
254 } |
255 |
255 |
256 void CPodcastModel::ResetDB() |
256 void CPodcastModel::DropDB() |
257 { |
257 { |
258 DP("CPodcastModel::ResetDB BEGIN"); |
|
259 |
|
260 if (iDB != NULL) |
258 if (iDB != NULL) |
261 { |
259 { |
262 sqlite3_close(iDB); |
260 sqlite3_close(iDB); |
263 iDB = NULL; |
261 iDB = NULL; |
264 } |
262 } |
|
263 |
|
264 TFileName dbFileName; |
|
265 dbFileName.Copy(iSettingsEngine->PrivatePath()); |
|
266 dbFileName.Append(KDBFileName); |
|
267 |
|
268 // remove the old DB file |
|
269 if (BaflUtils::FileExists(iFsSession, dbFileName)) |
|
270 { |
|
271 BaflUtils::DeleteFile(iFsSession, dbFileName); |
|
272 } |
|
273 } |
|
274 |
|
275 void CPodcastModel::ResetDB() |
|
276 { |
|
277 DP("CPodcastModel::ResetDB BEGIN"); |
|
278 |
|
279 DropDB(); |
265 |
280 |
266 TFileName dbFileName; |
281 TFileName dbFileName; |
267 dbFileName.Copy(iSettingsEngine->PrivatePath()); |
282 dbFileName.Copy(iSettingsEngine->PrivatePath()); |
268 dbFileName.Append(KDBFileName); |
283 dbFileName.Append(KDBFileName); |
269 |
284 |