messagingfw/msgtestfw/TestActions/Email/Smtp/inc/CMtfTestActionSmtpAddFileAttachmentByPath.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 #ifndef __CMTFTESTACTIONSMTPADDFILEATTACHMENTBYPATH_H__
       
    18 #define __CMTFTESTACTIONSMTPADDFILEATTACHMENTBYPATH_H__
       
    19 
       
    20 #include "CMtfTestAction.h"
       
    21 
       
    22 _LIT(KTestActionSmtpAddFileAttachmentByPath,"SmtpAddFileAttachmentByPath");
       
    23 
       
    24 #include <cmsvattachment.h>
       
    25 
       
    26 class CMsvEntry;
       
    27 class CImEmailMessage;
       
    28 class CMsvAttachment;
       
    29 
       
    30 class CMtfTestActionSmtpAddFileAttachmentByPath : public CMtfTestAction
       
    31 	{
       
    32 public:
       
    33 	static CMtfTestAction* NewL(CMtfTestCase& aTestCase,CMtfTestActionParameters* ActionParameters);
       
    34 	virtual ~CMtfTestActionSmtpAddFileAttachmentByPath(); 
       
    35 
       
    36 public:
       
    37 	virtual void ExecuteActionL();
       
    38 
       
    39 private:
       
    40 	CMtfTestActionSmtpAddFileAttachmentByPath(CMtfTestCase& aTestCase);
       
    41 	
       
    42 	void RunTestL();
       
    43 	void RunL();
       
    44 	void DoCancel();
       
    45 	TInt RunError(TInt aError);
       
    46 	
       
    47 private:
       
    48 	CMsvEntry* iEntry;	
       
    49 	CImEmailMessage* imEmailMsg;
       
    50 	CMsvAttachment* iAttachment;
       
    51 	TMsvAttachmentId iAttachmentId;
       
    52 	};
       
    53 
       
    54 
       
    55 #endif // __CMTFTESTACTIONSMTPADDFILEATTACHMENTBYPATH_H__