emailuis/emailui/src/FreestyleEmailUiHtmlViewerContainer.cpp
branchRCL_3
changeset 13 0396474f30f5
parent 12 f5907b1a1053
child 16 4ce476e64c59
--- a/emailuis/emailui/src/FreestyleEmailUiHtmlViewerContainer.cpp	Fri Mar 12 15:41:14 2010 +0200
+++ b/emailuis/emailui/src/FreestyleEmailUiHtmlViewerContainer.cpp	Mon Mar 15 12:39:10 2010 +0200
@@ -357,7 +357,8 @@
                               TBrCtlDefs::ECapabilityDisplayScrollBar |
                               TBrCtlDefs::ECapabilityClientNotifyURL |
                               TBrCtlDefs::ECapabilityLoadHttpFw |
-                              TBrCtlDefs::ECapabilityCursorNavigation;
+                              TBrCtlDefs::ECapabilityCursorNavigation |
+                              TBrCtlDefs::ECapabilityPinchZoom;
 
     // Set browsercontrol to whole screen
     TRect rect( TPoint(), Size() );
@@ -514,7 +515,7 @@
 // ---------------------------------------------------------------------------
 //
 void CFsEmailUiHtmlViewerContainer::LoadContentFromMailMessageL(
-    CFSMailMessage* aMailMessage, TBool aResetScrollPos )
+        CFSMailMessage* aMailMessage, TBool aResetScrollPos )
     {
     FUNC_LOG;
     ASSERT( aMailMessage );
@@ -803,7 +804,7 @@
             {
             iAppUi.DownloadInfoMediator()->StopObserving( this );
             }
-
+               
         if ( iMessage && linkContent )
             {
             CFSMailMessagePart* part = iMessage->ChildPartL( aPart.iMessagePartId );
@@ -817,10 +818,10 @@
             CleanupStack::PopAndDestroy( &contentFile );
             CleanupStack::PopAndDestroy( part );
             }
+        
         if ( iMessage )
             {
-            LoadContentFromMailMessageL( iMessage );
-            
+            LoadContentFromMailMessageL( iMessage, EFalse );            
             UpdateOverlayButtons( ETrue );
             }
         }
@@ -1495,13 +1496,13 @@
     _LIT8( KHttps, "https://");
     _LIT8( KWww, "www."); 
     
-    TBool eos( EFalse );
+    TBool eos( aSource.Size() <= 0 );
     TInt position( 0 );
     TInt carryOverInc( 0 );
     
     while ( !eos )
         {
-        while ( carryOverInc >= aSource.Ptr( position ).Length() )
+        while ( carryOverInc >= aSource.Ptr( position ).Length() && aSource.Size() != 0 )
             { // Skip segments of overlapping url string
             carryOverInc -= aSource.Ptr( position ).Length();
             position += aSource.Ptr( position ).Length();
@@ -2219,3 +2220,9 @@
     iStatusIndicator->ShowIndicatorL( image, imageMask, statusText, aDuration );
     }
 
+void CFsEmailUiHtmlViewerContainer::MailListModelUpdatedL()
+    {
+    FUNC_LOG;
+    UpdateOverlayButtons( IsVisible() );    
+    }
+