emailuis/emailui/src/FreestyleEmailUiAppui.cpp
branchRCL_3
changeset 11 0396474f30f5
parent 10 f5907b1a1053
child 12 4ce476e64c59
--- a/emailuis/emailui/src/FreestyleEmailUiAppui.cpp	Fri Mar 12 15:41:14 2010 +0200
+++ b/emailuis/emailui/src/FreestyleEmailUiAppui.cpp	Mon Mar 15 12:39:10 2010 +0200
@@ -1325,6 +1325,12 @@
         return;
         }
 
+    if (aEvent.Type() == EEventPointer)
+        {
+        TAdvancedPointerEvent* pointerEvent(aEvent.Pointer());
+        iLastPointerPosition = pointerEvent->iParentPosition;
+        }
+    
 	TInt key = aEvent.Key()->iScanCode;
     // <cmail>
     // to disable voice commands during creating new mail message
@@ -2173,7 +2179,6 @@
                         {
                         TIMESTAMP( "Starting sync" );
                         //If syncs were started by user, show the synchoronisation indicator
-                        TIMESTAMP( "Sync error" );
                         if(iManualMailBoxSyncAll)
                             {
                             ManualMailBoxSyncAll(EFalse);
@@ -2184,6 +2189,7 @@
                         {
                         // error occured during "Connect" or "Send and receive" operation
                         // check if user needs to be notified
+                        TIMESTAMP( "Sync error" );
                         if ( iManualMailBoxSync )
                             {
                             // since error id is not provided by plugin, lets popup general note
@@ -2249,6 +2255,7 @@
 	   	 	gridContentsChanged = ETrue;
 			break;
         case TFSEventMailDeleted:
+        case TFSEventMailDeletedFromViewer:
             {
             RArray<TFSMailMsgId>* entries = reinterpret_cast<RArray<TFSMailMsgId>*>(aParam1);
             for (TInt i = entries->Count() - 1; i >= 0; i--)
@@ -2296,8 +2303,9 @@
     	iAttachmentListVisualiser->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 );
     	}
     // Handle mail deleted event in Html view list, as the mails might become obsolete
-    else if ( iHtmlViewerView && (aEvent == TFSEventMailDeleted || aEvent == TFSEventNewMail) &&
-    	 iCurrentActiveView->Id() == HtmlViewerId)
+    else if ( iHtmlViewerView && (aEvent == TFSEventMailDeleted || 
+                                  aEvent == TFSEventMailDeletedFromViewer || 
+                                  aEvent == TFSEventNewMail) && iCurrentActiveView->Id() == HtmlViewerId)
     	{
     	iHtmlViewerView->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 );
     	}
@@ -2896,6 +2904,14 @@
     }
 
 // -----------------------------------------------------------------------------
+// CFreestyleEmailUiAppUi::LastSeenPointerPosition
+// -----------------------------------------------------------------------------
+const TPoint& CFreestyleEmailUiAppUi::LastSeenPointerPosition() const
+    {
+    return iLastPointerPosition;
+    }
+
+// -----------------------------------------------------------------------------
 //
 // -----------------------------------------------------------------------------
 void CFreestyleEmailUiAppUi::ConstructNaviPaneL()