emailuis/emailui/inc/FreestyleEmailUiHtmlViewerContainer.h
changeset 3 a4d6f1ea0416
parent 2 5253a20d2a1e
child 4 e7aa27f58ae1
equal deleted inserted replaced
2:5253a20d2a1e 3:a4d6f1ea0416
    29 #include "OverlayControl.h"
    29 #include "OverlayControl.h"
    30 
    30 
    31 class CFSMailMessage;
    31 class CFSMailMessage;
    32 class CFreestyleEmailUiAppUi;
    32 class CFreestyleEmailUiAppUi;
    33 class CFreestyleMessageHeaderURLEventHandler;
    33 class CFreestyleMessageHeaderURLEventHandler;
       
    34 class CFreestyleEmailUiAknStatusIndicator;
       
    35 struct TAttachmentData;
    34 
    36 
    35 /**
    37 /**
    36  * Html viewer container.
    38  * Html viewer container.
    37  */
    39  */
    38 class CFsEmailUiHtmlViewerContainer : public CCoeControl,
    40 class CFsEmailUiHtmlViewerContainer : public CCoeControl,
   108     void RefreshCurrentMailHeader();
   110     void RefreshCurrentMailHeader();
   109     /** Handles asynchronous reload of page for case when orientation
   111     /** Handles asynchronous reload of page for case when orientation
   110      * changed
   112      * changed
   111      */
   113      */
   112     void ReloadPageL();
   114     void ReloadPageL();
       
   115     
       
   116     void ShowAttacthmentDownloadStatusL( TFSProgress::TFSProgressStatus aProgressStatus, const TAttachmentData& aAttachmentData );
       
   117     TBool AttacthmentDownloadStatusVisible();
       
   118     void HideAttacthmentDownloadStatus();
       
   119     
   113 private:
   120 private:
   114 
   121 
   115     // Second phase constructor.
   122     // Second phase constructor.
   116     void ConstructL();
   123     void ConstructL();
   117     // C++ constructor.
   124     // C++ constructor.
   172     CBrCtlInterface* OpenWindowL( TDesC& aUrl, TDesC* aTargetName, 
   179     CBrCtlInterface* OpenWindowL( TDesC& aUrl, TDesC* aTargetName, 
   173                                   TBool aUserInitiated, TAny* aReserved );
   180                                   TBool aUserInitiated, TAny* aReserved );
   174     CBrCtlInterface* FindWindowL( const TDesC& aTargetName ) const;  
   181     CBrCtlInterface* FindWindowL( const TDesC& aTargetName ) const;  
   175     void HandleWindowCommandL( const TDesC& aTargetName, TBrCtlWindowCommand aCommand ); 
   182     void HandleWindowCommandL( const TDesC& aTargetName, TBrCtlWindowCommand aCommand ); 
   176        
   183        
       
   184     TRect CalcAttachmentStatusRect();
   177 
   185 
   178 private: // data
   186 private: // data
   179 
   187 
   180     // Reference to AppUi.
   188     // Reference to AppUi.
   181     CFreestyleEmailUiAppUi& iAppUi;
   189     CFreestyleEmailUiAppUi& iAppUi;
   205     CFreestyleMessageHeaderURLEventHandler* iEventHandler;
   213     CFreestyleMessageHeaderURLEventHandler* iEventHandler;
   206     TBool iObservingDownload;
   214     TBool iObservingDownload;
   207     TInt iScrollPosition;
   215     TInt iScrollPosition;
   208     COverlayControl* iOverlayControlNext;
   216     COverlayControl* iOverlayControlNext;
   209     COverlayControl* iOverlayControlPrev;
   217     COverlayControl* iOverlayControlPrev;
       
   218 
       
   219     CFreestyleEmailUiAknStatusIndicator* iAttachmentStatus;
   210     };
   220     };
   211 
   221 
   212 
   222 
   213 #endif // __FREESTYLEEMAILUI_HTML_VIEWER_CONTAINER_H__
   223 #endif // __FREESTYLEEMAILUI_HTML_VIEWER_CONTAINER_H__