emailuis/emailui/inc/FreestyleMessageHeaderURLEventHandler.h
branchRCL_3
changeset 23 dcf0eedfc1a3
parent 4 e7aa27f58ae1
equal deleted inserted replaced
22:d620048b4810 23:dcf0eedfc1a3
    68     void ConstructL();
    68     void ConstructL();
    69     
    69     
    70 private:
    70 private:
    71     const TAttachmentData& FindAttachmentL( const CFreestyleMessageHeaderURL& aAttachmentUrl );
    71     const TAttachmentData& FindAttachmentL( const CFreestyleMessageHeaderURL& aAttachmentUrl );
    72     void LaunchAttachmentMenuL( const TAttachmentData& aAttachment );
    72     void LaunchAttachmentMenuL( const TAttachmentData& aAttachment );
       
    73     TBool LaunchAttachmentMenuHWKeyL( const TAttachmentData& aAttachment );
    73     void HandAttachmentActionMenuCommandL( TActionMenuCustomItemId aSelectedActionMenuItem,
    74     void HandAttachmentActionMenuCommandL( TActionMenuCustomItemId aSelectedActionMenuItem,
    74                                            const TAttachmentData& aAttachment );    
    75                                            const TAttachmentData& aAttachment );    
    75     void LaunchEmailAddressMenuL( );
    76     void LaunchEmailAddressMenuL( );
       
    77     TBool LaunchEmailAddressMenuHWKeyL();
    76     void LaunchWebAddressMenuL( );
    78     void LaunchWebAddressMenuL( );
       
    79     TBool LaunchWebAddressMenuHWKeyL( );    
    77     
    80     
    78 private:
    81 private:
    79     CFreestyleMessageHeaderURL*     iMessageHeaderURL;
    82     CFreestyleMessageHeaderURL*     iMessageHeaderURL;
    80     CFreestyleEmailUiAppUi&         iAppUi;
    83     CFreestyleEmailUiAppUi&         iAppUi;
    81     CFsEmailUiHtmlViewerView&       iView;
    84     CFsEmailUiHtmlViewerView&       iView;
    88     TBool                          iMenuVisible;
    91     TBool                          iMenuVisible;
    89     TBool                           iPendingReload;
    92     TBool                           iPendingReload;
    90     CFSHtmlReloadAO*                iHTMLReloadAO; 
    93     CFSHtmlReloadAO*                iHTMLReloadAO; 
    91     };
    94     };
    92 
    95 
       
    96 
       
    97 /******************************************************************************
       
    98  * class TPopupMenuItem
       
    99  ******************************************************************************/
       
   100 
       
   101 NONSHARABLE_CLASS (TPopupMenuItem) 
       
   102     {
       
   103 public:        
       
   104     TInt iCommandId;
       
   105     TBuf<KMaxName> iText;
       
   106     TBool iDimmed;
       
   107     TInt iListIndex;
       
   108     };
       
   109 
       
   110 
       
   111 /******************************************************************************
       
   112  * class CFreestylePopupMenu
       
   113  ******************************************************************************/
       
   114 
       
   115 NONSHARABLE_CLASS  (CFreestylePopupMenu) : public CBase 
       
   116     {
       
   117 public:
       
   118     static CFreestylePopupMenu* NewL( TInt aResourceId ); 
       
   119     ~CFreestylePopupMenu();
       
   120     
       
   121 private:
       
   122     CFreestylePopupMenu( TInt aResourceId );
       
   123     void ConstructL();
       
   124     
       
   125 public:
       
   126     TInt LaunchPopupMenuL();  // returns command id or KErrCancel
       
   127     void SetDimmed( TInt aCommandId, TBool aDimmed );
       
   128     
       
   129 private:
       
   130     TInt CommandIdFromListIndex( TInt aListIndex );
       
   131     void ConstructFromResourceL( TResourceReader& aReader );
       
   132     void StrCopy( TDes& aTarget, const TDesC& aSource );
       
   133     
       
   134 private:
       
   135     TInt iResourceId;
       
   136     
       
   137     RArray<TPopupMenuItem> iItemList;
       
   138     };
       
   139 
       
   140 
    93 #endif //__CFREESTYLE_MESSAGE_HEADER_EVENTHANDLER_URL_H__
   141 #endif //__CFREESTYLE_MESSAGE_HEADER_EVENTHANDLER_URL_H__