email/pop3andsmtpmtm/imapservermtm/test/inc/T_ImapNewMsgDuringSyncIdleCancelStep.h
author William Roberts <williamr@symbian.org>
Thu, 17 Jun 2010 09:57:06 +0100
branchGCC_SURGE
changeset 35 a32b19fb291e
parent 25 84d9eb65b26f
permissions -rw-r--r--
Select the EABI def file when buidling with GCCE

// 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__