equal
deleted
inserted
replaced
302 // copy template to new DB |
302 // copy template to new DB |
303 TFileName dbTemplate; |
303 TFileName dbTemplate; |
304 dbTemplate.Copy(iSettingsEngine->PrivatePath()); |
304 dbTemplate.Copy(iSettingsEngine->PrivatePath()); |
305 dbTemplate.Append(KDBTemplateFileName); |
305 dbTemplate.Append(KDBTemplateFileName); |
306 |
306 |
|
307 DP1("Copy template DB from: %S", &dbTemplate); |
|
308 DP1("Copy template DB to: %S", &dbFileName); |
|
309 |
307 BaflUtils::CopyFile(iFsSession, dbTemplate,dbFileName); |
310 BaflUtils::CopyFile(iFsSession, dbTemplate,dbFileName); |
|
311 |
|
312 // important to set this file to not be read only if copying from Z: |
|
313 iFsSession.SetAtt(dbFileName, 0, KEntryAttReadOnly); |
|
314 |
308 iIsFirstStartup = ETrue; |
315 iIsFirstStartup = ETrue; |
309 DP("CPodcastModel::ResetDB END"); |
316 DP("CPodcastModel::ResetDB END"); |
310 } |
317 } |
311 |
318 |
312 |
319 |