email/pop3andsmtpmtm/imapservermtm/test/inc/T_ImapNewMsgDuringSyncIdleCancelStep.h
// 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 <testexecutestepbase.h>
#include "cspoofserver.h"
#include <msvapi.h>
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__