email/email/smtp/inc/T_SmtpSendEmail.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 /**
       
     2 * Copyright (c) 2006-2009 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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * This is the header file for CT_MsgSmtpSendEmail
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 /**
       
    25  @file
       
    26 */
       
    27 
       
    28 
       
    29 #ifndef __T_SMTP_SEND_EMAIL_H__
       
    30 #define __T_SMTP_SEND_EMAIL_H__
       
    31 
       
    32 
       
    33 // user includes
       
    34 #include <testexecutestepbase.h>
       
    35 #include "T_MsgAsyncStepSMTP.h"
       
    36 #include "T_MsgSharedDataSmtp.h"
       
    37 
       
    38 
       
    39 //Literals Used
       
    40 _LIT(KSmtpSendEmail,"SmtpSendEmail");
       
    41 _LIT(KNone, "NONE");
       
    42 
       
    43 
       
    44 // Forward declaration
       
    45 class CT_MsgUtilsSendEmail;
       
    46 class CT_MsgUtilsConfigFileMachineName;
       
    47 
       
    48 
       
    49 /**
       
    50 Implements a test step to send an email
       
    51 */
       
    52 class CT_MsgSmtpSendEmail :  public CT_MsgAsyncStepSMTP
       
    53 	{
       
    54 public:
       
    55 	static CT_MsgSmtpSendEmail* NewL(CT_MsgSharedDataSmtp& aSharedDataSMTP);
       
    56 	~CT_MsgSmtpSendEmail();
       
    57 
       
    58 	//	CTestStep implementation
       
    59 	virtual TVerdict	doTestStepL();
       
    60 
       
    61 private:
       
    62 	CT_MsgSmtpSendEmail(CT_MsgSharedDataSmtp& aSharedDataSMTP);
       
    63 
       
    64 	//	CT_MsgAsyncStep implementation
       
    65 	virtual void	ProgressL(TBool bFinal);
       
    66 
       
    67 	//	MT_MsgActiveCallback implementation
       
    68 	virtual void	CancelStep();
       
    69 
       
    70 public:
       
    71  	CT_MsgUtilsSendEmail*				iSendEmail;  
       
    72  	CT_MsgUtilsConfigFileMachineName*	iMachineNameFile;   
       
    73 	};
       
    74 
       
    75 #endif //__T_SMTP_SEND_EMAIL_H__