email/pop3andsmtpmtm/imapservermtm/test/inc/T_PARSE_UTC_IMAPStep.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_parse_utc_imap_step.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __T_PARSE_UTC_IMAP_STEP_H__
       
    19 #define __T_PARSE_UTC_IMAP_STEP_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_parse_utc_imapserver.h"
       
    29 #include "imapspoofserver.h"
       
    30 #include "imapclient.h"
       
    31 #include "eventhandler.h"
       
    32 //
       
    33 // CTestUTCParse
       
    34 //
       
    35 
       
    36 class CTestUTCParse : public CTestStep , MImapTestEventHandler
       
    37 	{
       
    38 public:
       
    39 	CTestUTCParse();
       
    40 	~CTestUTCParse();
       
    41 	virtual TVerdict doTestStepPreambleL();
       
    42 	virtual TVerdict doTestStepPostambleL();
       
    43 	virtual TVerdict doTestStepL();
       
    44 private:
       
    45 	void GetDetailsFromIniFileL();
       
    46 	void WriteStoreL();
       
    47 	void CreateImapAccountL();
       
    48 	void PrintEntryTime(TTime* aTIme);
       
    49 	void TraverseL(const TMsvId aTMsvId);
       
    50 	TVerdict CheckTimeStamps();
       
    51 	virtual void HandleEvent(TInt aEventCode);
       
    52 	
       
    53 private:
       
    54 	CImapSpoofServer* iImapServer;
       
    55 	CActiveImapClient* iImapClient;
       
    56 	CConsoleBase* iConsole;
       
    57 	CActiveScheduler* iScheduler;
       
    58 	TMsvId	iImapService;
       
    59 	CEmailTestUtils* iTestUtils;
       
    60 	CMsvSession* iSession;
       
    61 	TInt iMessageEntryCount;
       
    62 	TDummySessionObserver* iSessionObserver;
       
    63 	TPtrC16 iScriptFile;
       
    64 	TTime iExpectedTimeStamp;
       
    65 	TTime iExpectedTimeStamp2;
       
    66 	TTime iActualTimeStamp;
       
    67 	TTime iActualTimeStamp2;
       
    68 	TBool iExpectedTimeStampIsNow;
       
    69 	TBool iExpectedTimeStampIsNow2;	
       
    70 	TBool iFetchWholeMessage;
       
    71 	};
       
    72 
       
    73  		
       
    74 _LIT(KTestUTCParse,"TestUTCParse");
       
    75 	
       
    76 #endif  //__T_PARSE_UTC_IMAP_STEP_H__