diff -r fa1df4b99609 -r ebe688cedc25 email/pop3andsmtpmtm/imapservermtm/test/inc/T_ImapNewMsgDuringSyncIdleCancelStep.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/email/pop3andsmtpmtm/imapservermtm/test/inc/T_ImapNewMsgDuringSyncIdleCancelStep.h Tue Aug 31 15:11:31 2010 +0300 @@ -0,0 +1,59 @@ +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __T_IMAPNEWMSGDURINGSYNCIDLECANCELSTEP_H__ +#define __T_IMAPNEWMSGDURINGSYNCIDLECANCELSTEP_H__ + +#include +#include "cspoofserver.h" +#include + +class CImapNewMsgDuringSyncIdleCancelClient; +class CEmailTestUtils; +class TDummySessionObserver; + +class CImapNewMsgDuringSyncIdleCancelStep : public CTestStep, MImapTestEventHandler + { +public: + CImapNewMsgDuringSyncIdleCancelStep(); + ~CImapNewMsgDuringSyncIdleCancelStep(); + virtual TVerdict doTestStepPreambleL(); + virtual TVerdict doTestStepPostambleL(); + virtual TVerdict doTestStepL(); + +private: + void GetDetailsFromIniFileL(); + void CreateImapAccountL(); + void PrintEntryTime(TTime* aTIme); + TInt GetEntryCountL(); + virtual void TestComplete(TInt aErrorCode); + +private: + CSpoofServer* iSpoofServer; + CImapNewMsgDuringSyncIdleCancelClient* iImapClient; + CConsoleBase* iConsole; + CActiveScheduler* iScheduler; + TMsvId iImapService; + CEmailTestUtils* iTestUtils; + CMsvSession* iSession; + TInt iMessageEntryCount; + TDummySessionObserver* iSessionObserver; + TPtrC16 iScriptFile; + TInt iExpectedEntryCount; + }; + +_LIT(KTestImapNewMsgDuringSyncIdleCancel,"TestImapNewMsgDuringSyncIdleCancel"); + +#endif //__T_IMAPNEWMSGDURINGSYNCIDLECANCELSTEP_H__