engine/src/PodcastModel.cpp
branch3rded
changeset 343 9c56bf585696
parent 176 1c8b56cb6409
child 390 d7abecc9d189
equal deleted inserted replaced
281:1cae65a87b5e 343:9c56bf585696
   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