equal
deleted
inserted
replaced
146 { |
146 { |
147 // This application has be uninstalled/removed |
147 // This application has be uninstalled/removed |
148 TLbtAppInfo appInfo = iCurrentInstalledApps[i]; |
148 TLbtAppInfo appInfo = iCurrentInstalledApps[i]; |
149 |
149 |
150 // The removed application resided in the MMC card |
150 // The removed application resided in the MMC card |
151 TInt error = iAppList.Append( appInfo ); |
151 iAppList.Append( appInfo ); |
152 if( error != KErrNone ) |
|
153 { |
|
154 LOG1("Failed to append appInfo:%d",error); |
|
155 return; |
|
156 } |
|
157 |
152 |
158 // Check if the application resides in MMC |
153 // Check if the application resides in MMC |
159 if( appInfo.iFullName.FindC(iMMCDriveChar) >= 0 ) |
154 if( appInfo.iFullName.FindC(iMMCDriveChar) >= 0 ) |
160 { |
155 { |
161 appsInMMC = ETrue; |
156 appsInMMC = ETrue; |
204 TLbtAppInfo appInfo = aNewAppList[i]; |
199 TLbtAppInfo appInfo = aNewAppList[i]; |
205 |
200 |
206 if( appInfo.iFullName.FindC( iMMCDriveChar ) >= 0 ) |
201 if( appInfo.iFullName.FindC( iMMCDriveChar ) >= 0 ) |
207 { |
202 { |
208 // Append to the array only if the application resides on the MMC |
203 // Append to the array only if the application resides on the MMC |
209 TInt error = iAppList.Append( appInfo ); |
204 iAppList.Append( appInfo ); |
210 if( error != KErrNone ) |
|
211 { |
|
212 LOG1("Failed to append appInfo to the array:%d",error); |
|
213 return; |
|
214 } |
|
215 } |
205 } |
216 } |
206 } |
217 } |
207 } |
218 if(iAppList.Count() > 0) |
208 if(iAppList.Count() > 0) |
219 { |
209 { |
322 |
312 |
323 iCurrentInstalledApps.Reset(); |
313 iCurrentInstalledApps.Reset(); |
324 |
314 |
325 for( TInt i=0;i<newAppList.Count();i++ ) |
315 for( TInt i=0;i<newAppList.Count();i++ ) |
326 { |
316 { |
327 TInt error = iCurrentInstalledApps.Append( newAppList[i] ); |
317 iCurrentInstalledApps.Append( newAppList[i] ); |
328 if( error != KErrNone ) |
|
329 { |
|
330 LOG1("Failed to append new applist to the array:%d",error); |
|
331 break; |
|
332 } |
|
333 } |
318 } |
334 newAppList.Close(); |
319 newAppList.Close(); |
335 } |
320 } |
336 |
321 |
337 // --------------------------------------------------------------------------- |
322 // --------------------------------------------------------------------------- |
658 // The list operation is a success. Hence invalidate the triggers now |
643 // The list operation is a success. Hence invalidate the triggers now |
659 RArray<TLbtTriggerId> triggerIds; |
644 RArray<TLbtTriggerId> triggerIds; |
660 |
645 |
661 for(TInt i=0;i<iTriggerEntries.Count();++i) |
646 for(TInt i=0;i<iTriggerEntries.Count();++i) |
662 { |
647 { |
663 triggerIds.AppendL(iTriggerEntries[i]->TriggerEntry()->Id()); |
648 triggerIds.Append(iTriggerEntries[i]->TriggerEntry()->Id()); |
664 } |
649 } |
665 |
650 |
666 TLbtTriggerDynamicInfo::TLbtTriggerValidity validity; |
651 TLbtTriggerDynamicInfo::TLbtTriggerValidity validity; |
667 |
652 |
668 if(iOperation == EOpMMCRemovalListingTriggerForStartupProcess) |
653 if(iOperation == EOpMMCRemovalListingTriggerForStartupProcess) |