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