1314 if (aEvent.Type() == EEventPointer) |
1314 if (aEvent.Type() == EEventPointer) |
1315 { |
1315 { |
1316 TAdvancedPointerEvent* pointerEvent(aEvent.Pointer()); |
1316 TAdvancedPointerEvent* pointerEvent(aEvent.Pointer()); |
1317 iLastPointerPosition = pointerEvent->iParentPosition; |
1317 iLastPointerPosition = pointerEvent->iParentPosition; |
1318 } |
1318 } |
1319 |
1319 |
1320 TInt key = aEvent.Key()->iScanCode; |
1320 TInt key = aEvent.Key()->iScanCode; |
1321 // <cmail> |
1321 // <cmail> |
1322 // to disable voice commands during creating new mail message |
1322 // to disable voice commands during creating new mail message |
1323 if (EStdKeyYes == key && aEvent.Type() == EEventKeyDown && iCurrentActiveView == iComposeView ) |
1323 if (EStdKeyYes == key && aEvent.Type() == EEventKeyDown && iCurrentActiveView == iComposeView ) |
1324 { |
1324 { |
1359 { |
1359 { |
1360 if( iCurrentActiveView ) |
1360 if( iCurrentActiveView ) |
1361 { |
1361 { |
1362 iCurrentActiveView->HandleAppForegroundEventL( EFalse ); |
1362 iCurrentActiveView->HandleAppForegroundEventL( EFalse ); |
1363 } |
1363 } |
1364 // in case the popupmenu is shown propagate event to it |
1364 // in case the popupmenu is shown propagate event to it |
1365 if( iFolderListVisualiser && iFolderListVisualiser->IsPopupShown() ) |
1365 if( iFolderListVisualiser && iFolderListVisualiser->IsPopupShown() ) |
1366 { |
1366 { |
1367 iFolderListVisualiser->HandleAppForegroundEventL( EFalse ); |
1367 iFolderListVisualiser->HandleAppForegroundEventL( EFalse ); |
1368 } |
1368 } |
1369 } |
1369 } |
1382 // Call status indicator's foreground event to resize the connection screen after the screensaver |
1382 // Call status indicator's foreground event to resize the connection screen after the screensaver |
1383 if ( iStatusIndicator ) |
1383 if ( iStatusIndicator ) |
1384 { |
1384 { |
1385 iStatusIndicator->HandleForegroundEventL(); |
1385 iStatusIndicator->HandleForegroundEventL(); |
1386 } |
1386 } |
1387 // in case the popupmenu is shown propagate event to it |
1387 // in case the popupmenu is shown propagate event to it |
1388 if( iFolderListVisualiser && iFolderListVisualiser->IsPopupShown() ) |
1388 if( iFolderListVisualiser && iFolderListVisualiser->IsPopupShown() ) |
1389 { |
1389 { |
1390 iFolderListVisualiser->HandleAppForegroundEventL( ETrue ); |
1390 iFolderListVisualiser->HandleAppForegroundEventL( ETrue ); |
1391 } |
1391 } |
1392 } |
1392 } |
1452 switch ( aType ) |
1452 switch ( aType ) |
1453 { |
1453 { |
1454 case KEikDynamicLayoutVariantSwitch: |
1454 case KEikDynamicLayoutVariantSwitch: |
1455 iEnv->NotifyLayoutChangedL(); |
1455 iEnv->NotifyLayoutChangedL(); |
1456 break; |
1456 break; |
1457 case KAknsMessageSkinChange: |
1457 case KAknsMessageSkinChange: |
1458 iEnv->NotifySkinChangedL(); |
1458 iEnv->NotifySkinChangedL(); |
1459 break; |
1459 break; |
1460 } |
1460 } |
1461 TRAPD( error, DoHandleResourceChangeL( aType ) ); |
1461 TRAPD( error, DoHandleResourceChangeL( aType ) ); |
1462 iEnv->SetRefreshMode( EAlfRefreshModeAutomatic ); |
1462 iEnv->SetRefreshMode( EAlfRefreshModeAutomatic ); |
1471 // compose screen loadbackgroundcontext sends 2 skin change events |
1471 // compose screen loadbackgroundcontext sends 2 skin change events |
1472 //if( aType == KAknsMessageSkinChange && iConstructComplete ) |
1472 //if( aType == KAknsMessageSkinChange && iConstructComplete ) |
1473 // { |
1473 // { |
1474 // CAlfEnv::Static()->NotifySkinChangedL(); |
1474 // CAlfEnv::Static()->NotifySkinChangedL(); |
1475 // } |
1475 // } |
1476 |
1476 |
1477 if ( aType == KEikDynamicLayoutVariantSwitch ) |
1477 if ( aType == KEikDynamicLayoutVariantSwitch ) |
1478 { |
1478 { |
1479 // Changing layout for status pane (just in case it is not switched |
1479 // Changing layout for status pane (just in case it is not switched |
1480 // correctly), fix for HMNN-82BAGR error |
1480 // correctly), fix for HMNN-82BAGR error |
1481 // it's not related with skin change so "moved up" TJOS-83DELP fix |
1481 // it's not related with skin change so "moved up" TJOS-83DELP fix |
1482 TBool landscape(Layout_Meta_Data::IsLandscapeOrientation()); |
1482 TBool landscape(Layout_Meta_Data::IsLandscapeOrientation()); |
1483 CEikStatusPane* statusPane = StatusPane(); |
1483 CEikStatusPane* statusPane = StatusPane(); |
1484 if(landscape) |
1484 if(landscape) |
1485 { |
1485 { |
1486 if( statusPane->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT) |
1486 if( statusPane->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT) |
2197 // error occured during "Connect" or "Send and receive" operation |
2197 // error occured during "Connect" or "Send and receive" operation |
2198 // check if user needs to be notified |
2198 // check if user needs to be notified |
2199 TIMESTAMP( "Sync error" ); |
2199 TIMESTAMP( "Sync error" ); |
2200 if ( iManualMailBoxSync ) |
2200 if ( iManualMailBoxSync ) |
2201 { |
2201 { |
2202 /* |
2202 /* |
2203 * As a fix to TJOS-82ZFCW, this general popup is no longer needed |
2203 * As a fix to TJOS-82ZFCW, this general popup is no longer needed |
2204 * // since error id is not provided by plugin, lets popup general note |
2204 * // since error id is not provided by plugin, lets popup general note |
2205 * HBufC* text = StringLoader::LoadL( R_FS_MSERVER_TEXT_UNABLE_TO_COMPLETE ); |
2205 * HBufC* text = StringLoader::LoadL( R_FS_MSERVER_TEXT_UNABLE_TO_COMPLETE ); |
2206 * CleanupStack::PushL( text ); |
2206 * CleanupStack::PushL( text ); |
2207 * CAknInformationNote* infoNote = new ( ELeave ) CAknInformationNote; |
2207 * CAknInformationNote* infoNote = new ( ELeave ) CAknInformationNote; |
2306 { |
2306 { |
2307 iAttachmentListVisualiser->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 ); |
2307 iAttachmentListVisualiser->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 ); |
2308 } |
2308 } |
2309 // Handle mail deleted event in Html view list, as the mails might become obsolete |
2309 // Handle mail deleted event in Html view list, as the mails might become obsolete |
2310 // Pass sync finished event there too in order to dismiss status dialogs |
2310 // Pass sync finished event there too in order to dismiss status dialogs |
2311 else if ( iHtmlViewerView && (aEvent == TFSEventMailDeleted || |
2311 else if ( iHtmlViewerView && (aEvent == TFSEventMailDeleted || |
2312 aEvent == TFSEventMailDeletedFromViewer || |
2312 aEvent == TFSEventMailDeletedFromViewer || |
2313 aEvent == TFSEventMailboxSyncStateChanged || |
2313 aEvent == TFSEventMailboxSyncStateChanged || |
2314 aEvent == TFSEventNewMail) && iCurrentActiveView->Id() == HtmlViewerId) |
2314 aEvent == TFSEventNewMail) && iCurrentActiveView->Id() == HtmlViewerId) |
2315 { |
2315 { |
2316 iHtmlViewerView->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 ); |
2316 iHtmlViewerView->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 ); |
2317 } |
2317 } |
2318 // Download manager removed |
2318 // Download manager removed |
2538 FUNC_LOG; |
2538 FUNC_LOG; |
2539 iForcedConnectionStatus = aForcedStatus; |
2539 iForcedConnectionStatus = aForcedStatus; |
2540 |
2540 |
2541 if ( iConnectionStatusVisible ) |
2541 if ( iConnectionStatusVisible ) |
2542 { |
2542 { |
|
2543 |
2543 // Get connection status of the current mailbox |
2544 // Get connection status of the current mailbox |
2544 TFSMailBoxStatus connectionStatus = EFSMailBoxOffline; |
2545 TFSMailBoxStatus connectionStatus = EFSMailBoxOffline; |
2545 TSSMailSyncState syncState = Idle; |
2546 TSSMailSyncState syncState = Idle; |
2546 CFSMailBox* mb = GetActiveMailbox(); |
2547 CFSMailBox* mb = GetActiveMailbox(); |
2547 if ( mb ) |
2548 if ( mb ) |
2548 { |
2549 { |
2549 connectionStatus = mb->GetMailBoxStatus(); |
2550 connectionStatus = mb->GetMailBoxStatus(); |
2550 syncState = mb->CurrentSyncState(); |
2551 syncState = mb->CurrentSyncState(); |
2551 } |
2552 } |
|
2553 |
2552 TUid titlePaneUid = TUid::Uid( EEikStatusPaneUidTitle ); |
2554 TUid titlePaneUid = TUid::Uid( EEikStatusPaneUidTitle ); |
2553 CEikStatusPaneBase::TPaneCapabilities subPaneTitle = |
2555 CEikStatusPaneBase::TPaneCapabilities subPaneTitle = |
2554 StatusPane()->PaneCapabilities( titlePaneUid ); |
2556 StatusPane()->PaneCapabilities( titlePaneUid ); |
2555 |
2557 |
2556 if ( subPaneTitle.IsPresent() && subPaneTitle.IsAppOwned() ) |
2558 if ( subPaneTitle.IsPresent() && subPaneTitle.IsAppOwned() ) |
2557 { |
2559 { |
2558 CAknTitlePane* titlePane = NULL; |
2560 CAknTitlePane* titlePane = NULL; |
2559 TRAP_IGNORE( titlePane = |
2561 TRAP_IGNORE( titlePane = |