equal
deleted
inserted
replaced
1323 if ( iFolderListVisualiser && iFolderListVisualiser->HandleWsEventL( aEvent ) ) |
1323 if ( iFolderListVisualiser && iFolderListVisualiser->HandleWsEventL( aEvent ) ) |
1324 { |
1324 { |
1325 return; |
1325 return; |
1326 } |
1326 } |
1327 |
1327 |
|
1328 if (aEvent.Type() == EEventPointer) |
|
1329 { |
|
1330 TAdvancedPointerEvent* pointerEvent(aEvent.Pointer()); |
|
1331 iLastPointerPosition = pointerEvent->iParentPosition; |
|
1332 } |
|
1333 |
1328 TInt key = aEvent.Key()->iScanCode; |
1334 TInt key = aEvent.Key()->iScanCode; |
1329 // <cmail> |
1335 // <cmail> |
1330 // to disable voice commands during creating new mail message |
1336 // to disable voice commands during creating new mail message |
1331 if (EStdKeyYes == key && aEvent.Type() == EEventKeyDown && iCurrentActiveView == iComposeView ) |
1337 if (EStdKeyYes == key && aEvent.Type() == EEventKeyDown && iCurrentActiveView == iComposeView ) |
1332 { |
1338 { |
2171 { |
2177 { |
2172 case StartingSync: |
2178 case StartingSync: |
2173 { |
2179 { |
2174 TIMESTAMP( "Starting sync" ); |
2180 TIMESTAMP( "Starting sync" ); |
2175 //If syncs were started by user, show the synchoronisation indicator |
2181 //If syncs were started by user, show the synchoronisation indicator |
2176 TIMESTAMP( "Sync error" ); |
|
2177 if(iManualMailBoxSyncAll) |
2182 if(iManualMailBoxSyncAll) |
2178 { |
2183 { |
2179 ManualMailBoxSyncAll(EFalse); |
2184 ManualMailBoxSyncAll(EFalse); |
2180 } |
2185 } |
2181 } |
2186 } |
2182 break; |
2187 break; |
2183 case SyncError: |
2188 case SyncError: |
2184 { |
2189 { |
2185 // error occured during "Connect" or "Send and receive" operation |
2190 // error occured during "Connect" or "Send and receive" operation |
2186 // check if user needs to be notified |
2191 // check if user needs to be notified |
|
2192 TIMESTAMP( "Sync error" ); |
2187 if ( iManualMailBoxSync ) |
2193 if ( iManualMailBoxSync ) |
2188 { |
2194 { |
2189 // since error id is not provided by plugin, lets popup general note |
2195 // since error id is not provided by plugin, lets popup general note |
2190 HBufC* text = StringLoader::LoadL( R_FS_MSERVER_TEXT_UNABLE_TO_COMPLETE ); |
2196 HBufC* text = StringLoader::LoadL( R_FS_MSERVER_TEXT_UNABLE_TO_COMPLETE ); |
2191 CleanupStack::PushL( text ); |
2197 CleanupStack::PushL( text ); |
2247 // Refresh grid if mailbox settings are changed, |
2253 // Refresh grid if mailbox settings are changed, |
2248 // name/branding might have changed. |
2254 // name/branding might have changed. |
2249 gridContentsChanged = ETrue; |
2255 gridContentsChanged = ETrue; |
2250 break; |
2256 break; |
2251 case TFSEventMailDeleted: |
2257 case TFSEventMailDeleted: |
|
2258 case TFSEventMailDeletedFromViewer: |
2252 { |
2259 { |
2253 RArray<TFSMailMsgId>* entries = reinterpret_cast<RArray<TFSMailMsgId>*>(aParam1); |
2260 RArray<TFSMailMsgId>* entries = reinterpret_cast<RArray<TFSMailMsgId>*>(aParam1); |
2254 for (TInt i = entries->Count() - 1; i >= 0; i--) |
2261 for (TInt i = entries->Count() - 1; i >= 0; i--) |
2255 { |
2262 { |
2256 iDisplayImagesCache.RemoveMessage(aMailbox, entries->operator[](i)); |
2263 iDisplayImagesCache.RemoveMessage(aMailbox, entries->operator[](i)); |
2294 iCurrentActiveView->Id() == AttachmentMngrViewId) |
2301 iCurrentActiveView->Id() == AttachmentMngrViewId) |
2295 { |
2302 { |
2296 iAttachmentListVisualiser->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 ); |
2303 iAttachmentListVisualiser->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 ); |
2297 } |
2304 } |
2298 // Handle mail deleted event in Html view list, as the mails might become obsolete |
2305 // Handle mail deleted event in Html view list, as the mails might become obsolete |
2299 else if ( iHtmlViewerView && (aEvent == TFSEventMailDeleted || aEvent == TFSEventNewMail) && |
2306 else if ( iHtmlViewerView && (aEvent == TFSEventMailDeleted || |
2300 iCurrentActiveView->Id() == HtmlViewerId) |
2307 aEvent == TFSEventMailDeletedFromViewer || |
|
2308 aEvent == TFSEventNewMail) && iCurrentActiveView->Id() == HtmlViewerId) |
2301 { |
2309 { |
2302 iHtmlViewerView->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 ); |
2310 iHtmlViewerView->HandleMailBoxEventL( aEvent, aMailbox, aParam1, aParam2, aParam3 ); |
2303 } |
2311 } |
2304 // Download manager removed |
2312 // Download manager removed |
2305 |
2313 |
2894 { |
2902 { |
2895 return iEditorStartedFromEmbeddedApp; |
2903 return iEditorStartedFromEmbeddedApp; |
2896 } |
2904 } |
2897 |
2905 |
2898 // ----------------------------------------------------------------------------- |
2906 // ----------------------------------------------------------------------------- |
|
2907 // CFreestyleEmailUiAppUi::LastSeenPointerPosition |
|
2908 // ----------------------------------------------------------------------------- |
|
2909 const TPoint& CFreestyleEmailUiAppUi::LastSeenPointerPosition() const |
|
2910 { |
|
2911 return iLastPointerPosition; |
|
2912 } |
|
2913 |
|
2914 // ----------------------------------------------------------------------------- |
2899 // |
2915 // |
2900 // ----------------------------------------------------------------------------- |
2916 // ----------------------------------------------------------------------------- |
2901 void CFreestyleEmailUiAppUi::ConstructNaviPaneL() |
2917 void CFreestyleEmailUiAppUi::ConstructNaviPaneL() |
2902 { |
2918 { |
2903 FUNC_LOG; |
2919 FUNC_LOG; |