equal
deleted
inserted
replaced
284 // MMS.Content.Upload |
284 // MMS.Content.Upload |
285 iUploadServices.ResetAndDestroy(); |
285 iUploadServices.ResetAndDestroy(); |
286 delete iEmailApi; |
286 delete iEmailApi; |
287 delete iEmailNotifHandler; |
287 delete iEmailNotifHandler; |
288 delete iCancelExitFlagOperation; |
288 delete iCancelExitFlagOperation; |
289 delete iMceIAUpdate; |
289 |
290 |
290 if(iMceIAUpdate) |
|
291 { |
|
292 delete iMceIAUpdate; |
|
293 } |
|
294 |
291 if ( iIdArray ) |
295 if ( iIdArray ) |
292 { |
296 { |
293 delete iIdArray; |
297 delete iIdArray; |
294 iIdArray = NULL; |
298 iIdArray = NULL; |
295 } |
299 } |
425 iFolderIndicator = tmp; |
429 iFolderIndicator = tmp; |
426 |
430 |
427 iMailAccountItemArray = new(ELeave) CMceMailAccountItemArray( |
431 iMailAccountItemArray = new(ELeave) CMceMailAccountItemArray( |
428 KMceArrayGranularity ); |
432 KMceArrayGranularity ); |
429 |
433 |
430 iMceIAUpdate = CMceIAUpdateUtils::NewL(*this); |
434 iMceIAUpdate = NULL; |
431 |
435 iIadUpdateVal = EFalse; |
|
436 if(FeatureManager::FeatureSupported( KFeatureIdIAUpdate )) |
|
437 { |
|
438 iIadUpdateVal = ETrue; |
|
439 } |
|
440 |
432 if ( iAlwaysOnline ) |
441 if ( iAlwaysOnline ) |
433 { |
442 { |
434 iConnectionMonitor.ConnectL(); |
443 iConnectionMonitor.ConnectL(); |
435 iConnectionMonitor.NotifyEventL( *this ); |
444 iConnectionMonitor.NotifyEventL( *this ); |
436 } |
445 } |
2680 |
2689 |
2681 if ( tabsToCleanupStack ) |
2690 if ( tabsToCleanupStack ) |
2682 { |
2691 { |
2683 CleanupStack::PopAndDestroy(); // TCleanupItem - will show tabs again |
2692 CleanupStack::PopAndDestroy(); // TCleanupItem - will show tabs again |
2684 } |
2693 } |
|
2694 if ( iMceUiFlags.MceFlag( EMceUiFlagsTabsActive ) && (!tabsToCleanupStack) ) |
|
2695 { |
|
2696 ShowTabsL( iMceListView->ListContainer()->CurrentFolderId() ); |
|
2697 } |
2685 } |
2698 } |
2686 else |
2699 else |
2687 { |
2700 { |
2688 |
2701 |
2689 ReleaseMtmUiData(); |
2702 ReleaseMtmUiData(); |
5554 } |
5567 } |
5555 TBool newPostcardVal = EFalse; |
5568 TBool newPostcardVal = EFalse; |
5556 TBool newAudioMsgVal = EFalse; |
5569 TBool newAudioMsgVal = EFalse; |
5557 newAudioMsgVal = FeatureManager::FeatureSupported( KFeatureIdAudioMessaging ); |
5570 newAudioMsgVal = FeatureManager::FeatureSupported( KFeatureIdAudioMessaging ); |
5558 newPostcardVal = FeatureManager::FeatureSupported( KFeatureIdMmsPostcard ); |
5571 newPostcardVal = FeatureManager::FeatureSupported( KFeatureIdMmsPostcard ); |
|
5572 |
5559 if ( newAudioMsgVal != iAudioMsgEnabled || newPostcardVal != iPostcardEnabled ) |
5573 if ( newAudioMsgVal != iAudioMsgEnabled || newPostcardVal != iPostcardEnabled ) |
5560 { |
5574 { |
5561 TRAP_IGNORE( HandleMTMChangeL() ); |
5575 TRAP_IGNORE( HandleMTMChangeL() ); |
5562 } |
5576 } |
5563 if ( MceViewActive( EMceMainViewActive ) ) |
5577 |
5564 { |
5578 if ( MceViewActive( EMceMainViewActive ) && iIadUpdateVal) |
5565 CheckIAUpdate(); |
5579 { |
|
5580 if(!iMceIAUpdate) // first time messaging view is activated |
|
5581 { |
|
5582 TRAP_IGNORE(iMceIAUpdate = CMceIAUpdateUtils::NewL(*this)); |
|
5583 if(iMceIAUpdate) |
|
5584 { |
|
5585 CheckIAUpdate(); |
|
5586 } |
|
5587 } |
|
5588 else |
|
5589 { |
|
5590 if(iMceIAUpdate->IsUpdateRequired()) |
|
5591 { |
|
5592 CheckIAUpdate(); |
|
5593 } |
|
5594 } |
5566 } |
5595 } |
5567 } |
5596 } |
5568 |
5597 |
5569 // ---------------------------------------------------- |
5598 // ---------------------------------------------------- |
5570 // CMceUi::HandleLosingForeground |
5599 // CMceUi::HandleLosingForeground |