email/mail/PluginSrc/MailHtmlView/CMailMessageHtmlView.h
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Message Html view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CMailMessageHtmlView_H
       
    21 #define CMailMessageHtmlView_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <CMailMessageView.h>
       
    25 #include <MSVSTD.H>
       
    26 #include <e32base.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CEikMenuPane;
       
    30 class MMailAppUiInterface;
       
    31 class CHtmlLoadStateMachine;
       
    32 class CImHeader;
       
    33 class CMailHtmlBodyControl;
       
    34 
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  Mail message plain view.
       
    40 *  Plain text message viewer plug-in.
       
    41 *  @since Series 60 3.0
       
    42 */
       
    43 class CMailMessageHtmlView : public CMailMessageView
       
    44     {
       
    45     public:  // Constructors and destructor
       
    46         
       
    47         /**
       
    48         * NewL
       
    49         * Called from the ECOM plug-in framework.
       
    50         */
       
    51         static CMailMessageHtmlView* NewL();
       
    52 
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         ~CMailMessageHtmlView();
       
    57 
       
    58 
       
    59     private: // Functions from base classes
       
    60 
       
    61         /**
       
    62         * From MMailMessageView
       
    63         */
       
    64         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
    65         TBool HandleCommandL(TInt aCommand);
       
    66         TKeyResponse HandleKeyEventL(
       
    67             const TKeyEvent& aKeyEvent,
       
    68             TEventCode aType);
       
    69 		void MessageLoadL(TInt aState, CMailMessage& aMessage);         
       
    70         void ViewMessageL(
       
    71             CMailMessage& aMessge,
       
    72             MMailAppUiInterface& aUICallBack,
       
    73             TUint& aParam);
       
    74         		                
       
    75     protected:  // Functions from base classes
       
    76 
       
    77         
       
    78     private: // Implementation
       
    79         void CreateBrControlL();
       
    80         void SetHeaderControlTextL(
       
    81     		CMailMessage& aMessage, 
       
    82     		CImHeader& aHeader);
       
    83     	TBool HtmlSettingValueL( CMailMessage& aMessage );
       
    84         
       
    85         /**
       
    86         * C++ default constructor.
       
    87         */
       
    88         CMailMessageHtmlView();
       
    89     
       
    90     private:    // Data               
       
    91         /// Ref: app UI call back
       
    92         MMailAppUiInterface* iAppUI;
       
    93         /// Ref: Mail message
       
    94         CMailMessage* iMessage;
       
    95         /// Ref: HTML body control
       
    96         CMailHtmlBodyControl* iHtmlBodyControl;
       
    97         /// Own: Load state machine
       
    98         CHtmlLoadStateMachine* iLoadStateMachine;
       
    99         
       
   100 
       
   101     };
       
   102 
       
   103 #endif      // CMailMessageHtmlView_H   
       
   104             
       
   105 // End of File