199 // CPreviouslyInstalledAppsCache::ConstructL |
199 // CPreviouslyInstalledAppsCache::ConstructL |
200 // ----------------------------------------------------------------------- |
200 // ----------------------------------------------------------------------- |
201 // |
201 // |
202 void CPreviouslyInstalledAppsCache::ConstructL() |
202 void CPreviouslyInstalledAppsCache::ConstructL() |
203 { |
203 { |
|
204 FLOG( _L("Daemon: CPreviouslyInstalledAppsCache::ConstructL ") ); |
204 User::LeaveIfError(iFs.Connect()); |
205 User::LeaveIfError(iFs.Connect()); |
205 TInt drive = 0; |
206 TInt drive = 0; |
206 iFs.CharToDrive( |
207 iFs.CharToDrive( |
207 TParsePtrC( PathInfo::PhoneMemoryRootPath() ).Drive()[0], |
208 TParsePtrC( PathInfo::PhoneMemoryRootPath() ).Drive()[0], |
208 drive ); |
209 drive ); |
209 |
210 |
210 iFs.CreatePrivatePath( drive ); |
211 iFs.CreatePrivatePath( drive ); |
211 |
212 |
212 // Read cache file |
213 // Read cache file |
213 TRAP_IGNORE(InitFromCacheFileL()); |
214 TRAP_IGNORE(InitFromCacheFileL()); |
214 |
215 |
215 TRAPD( err, UpdateAllL() ); |
216 //TODO: Test if this is really needed. Let's not do updateall 2 time in boot. |
216 if(err == KErrNone) |
217 // TRAPD( err, UpdateAllL() ); |
217 { |
218 // if(err == KErrNone) |
218 // If we managed to scan the registry, and update the cache, flush to disk. |
219 // { |
219 TRAP_IGNORE(FlushToDiskL()); |
220 // TRAP_IGNORE(FlushToDiskL()); |
220 } |
221 // } |
221 |
222 |
222 } |
223 } |
223 |
224 |
224 // ----------------------------------------------------------------------- |
225 // ----------------------------------------------------------------------- |
225 // CPreviouslyInstalledAppsCache::InitFromCacheFileL |
226 // CPreviouslyInstalledAppsCache::InitFromCacheFileL |