email/pop3andsmtpmtm/imapservermtm/test/inc/T_DEF062024_IMAP21cnServer_AttachmentCannotBeOpenedStep.h
changeset 25 84d9eb65b26f
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
       
     1 // Copyright (c) 2005-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 // t_DEF062024_IMAP21cnServer_AttachmentCannotBeOpened.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __T_DEF062024_IMAP21CNSERVER_ATTACHMENTCANNOTBEOPENEDSTEP_H__
       
    19 #define __T_DEF062024_IMAP21CNSERVER_ATTACHMENTCANNOTBEOPENEDSTEP_H__
       
    20  
       
    21 #include <test\testexecutestepbase.h>
       
    22 #include "emailtestutils.h"
       
    23 #include "smstestutils.h"
       
    24 #include <stdlib.h>
       
    25 #include <msvapi.h>
       
    26 #include <smuthdr.h> 
       
    27 #include <iapprefs.h>
       
    28 #include "T_DEF062024_Imap_AttachmentCannotBeOpenedServer.h"
       
    29 #include "t_def062024_imapclient.h"
       
    30 
       
    31 //
       
    32 // CTestImapAttachmentStep
       
    33 //
       
    34 
       
    35 class CTestImapAttachmentStep : public CTestStep , MImapTestEventHandler
       
    36 	{
       
    37 public:
       
    38 	CTestImapAttachmentStep();
       
    39 	~CTestImapAttachmentStep();
       
    40 	virtual TVerdict doTestStepPreambleL();
       
    41 	virtual TVerdict doTestStepPostambleL();
       
    42 	virtual TVerdict doTestStepL();
       
    43 private:
       
    44 	void GetDetailsFromIniFileL();
       
    45 	void CreateImapAccountL();
       
    46 	void PrintEntryTime(TTime* aTIme);
       
    47 	TVerdict CheckAttachmentL();
       
    48 	virtual void TestComplete(TInt aErrorCode);
       
    49 	
       
    50 private:
       
    51 	CSpoofServer* iSpoofServer;
       
    52 	CActiveImapClient* iImapClient;
       
    53 	CConsoleBase* iConsole;
       
    54 	CActiveScheduler* iScheduler;
       
    55 	TMsvId	iImapService;
       
    56 	CEmailTestUtils* iTestUtils;
       
    57 	CMsvSession* iSession;
       
    58 	TInt iMessageEntryCount;
       
    59 	TDummySessionObserver* iSessionObserver;
       
    60 	TPtrC16 iScriptFile;
       
    61 	// Path of the source file originally attached to the email fetched
       
    62 	TPtrC16 iAttachmentSourcePath;
       
    63 	// Index of the attachment we want to check in this email
       
    64 	TInt iAttachmentIndex;
       
    65 	};
       
    66 
       
    67  		
       
    68 _LIT(KTestImapAttachment,"TestImapAttachment");
       
    69 	
       
    70 #endif  //__T_DEF062024_IMAP21CNSERVER_ATTACHMENTCANNOTBEOPENEDSTEP_H__