email/mail/PluginSrc/MailHtmlView/CLoadHtmlFile.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2005 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:  State for message loading
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef HTML_LOAD_HTML_FILE_H
       
    21 #define HTML_LOAD_HTML_FILE_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <f32file.h>
       
    26 #include <MMessageLoadObserver.h>
       
    27 #include "MMLoadState.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class MMailAppUiInterface;
       
    31 class MLoadState;
       
    32 class CMailMessage;
       
    33 class CMailHtmlBodyControl;
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  CLoadHtmlFile
       
    38 *  Load and set html message
       
    39 *
       
    40 *  @since Series 60 3.0
       
    41 */
       
    42 class CLoadHtmlFile : public CBase, public MLoadState
       
    43 	{
       
    44 	public:
       
    45 		
       
    46 		~CLoadHtmlFile();	
       
    47 	private: // Functions from base classes
       
    48 		// From: MMessageLoadObserver
       
    49 		void MessageLoadingL(TInt aStatus, CMailMessage& aMessage);
       
    50 		// From MLoadState
       
    51 		MLoadState* NextStateL();
       
    52 		void MakeRequestL( 
       
    53 			TRequestStatus& aStatus,
       
    54 			CMailMessage& aMessage );		
       
    55 	public:
       
    56 		/// Ctor
       
    57 		CLoadHtmlFile( 
       
    58 			MMailAppUiInterface* aAppUI, 
       
    59 			CMailHtmlBodyControl& aHtmlControl );
       
    60 			
       
    61 	private: // implementation	
       
    62 	    void LoadHtmlFileL( CMailMessage& aMessage );
       
    63 	
       
    64 	private: // data
       
    65 	// Ref: to html control
       
    66 	CMailHtmlBodyControl& iHtmlControl;
       
    67 	};
       
    68 
       
    69 #endif // HTML_LOAD_HTML_FILE_H   
       
    70             
       
    71 // End of File