email/mail/PluginSrc/MailPlainView/CLoadAttachments.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 for loading message attachments
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef PLAIN_MAIL_LOAD_STATE_ATTACHMENTS_H
       
    21 #define PLAIN_MAIL_LOAD_STATE_ATTACHMENTS_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <MMessageLoadObserver.h>
       
    26 #include "MMailState.h"
       
    27 // FORWARD DECLARATIONS
       
    28 class MStateMachine;
       
    29 class MMailAppUiInterface;
       
    30 class CMailMessage;
       
    31 class MMsvAttachmentManager;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  CLoadAttachments
       
    37 *  Load and set message attachments
       
    38 *
       
    39 *  @since Series 60 3.0
       
    40 */	
       
    41 class CLoadAttachments: public CBase, public MLoadState
       
    42 	{
       
    43 	public:
       
    44 		
       
    45 		~CLoadAttachments();	
       
    46 	private: // Functions from base classes
       
    47 		// From: MMessageLoadObserver
       
    48 		void MessageLoadingL(TInt aStatus, CMailMessage& aMessage);
       
    49 		// From MLoadState
       
    50 		MLoadState* NextStateL();
       
    51 		void MakeRequestL( 
       
    52 			TRequestStatus& aStatus,
       
    53 			CMailMessage& aMessage );	
       
    54 			
       
    55     private: // Implementation    
       
    56         void AddAttachmentsToAppUiL( MMsvAttachmentManager& aManager );
       
    57         
       
    58 	public:
       
    59 		/// Ctor
       
    60 		CLoadAttachments( MMailAppUiInterface* aAppUI );
       
    61 	};
       
    62 	
       
    63 
       
    64 #endif      // PLAIN_MAIL_LOAD_STATE_ATTACHMENTS_H   
       
    65             
       
    66 // End of File