telephonyserverplugins/simtsy/test/Te_SimPacket/Te_SimPacketTestStepBase.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 31 Mar 2010 23:24:02 +0300
branchRCL_3
changeset 7 fe8b59ab9fa0
parent 0 3553901f7fa8
permissions -rw-r--r--
Revision: 201013 Kit: 201013

// 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 __TE_SIMPACKET_TESTSTEP_BASE__
#define __TE_SIMPACKET_TESTSTEP_BASE__

#include <test/testexecutestepbase.h>

#include <e32base.h>
#include <etelpckt.h>

#include <e32test.h>
#include <c32comm.h>
#include <e32keys.h>
#include <f32file.h>

#include <etel.h>
#include <etelmm.h>
#include <mmretrieve.h>
#include <pcktcs.h>
#include <etelqos.h>
#include <etelsat.h>
#include <pcktlist.h>
#include "SimTsy.h"

_LIT(KSimtsyName,"SIM");

class CSimPacketTestStepBase : public CTestStep
	{
public:
 	virtual TVerdict doTestStepPreambleL();
	virtual TVerdict doTestStepPostambleL();

	static void CleanUp(TAny *aPtr) ;
protected:
	operator TCleanupItem() ;
	void TestConfigParamsL(RPacketQoS::TQoSGPRSNegotiated& aArg1, RPacketQoS::TQoSGPRSNegotiated& aArg2) ;
	void TestConfigParamsL(RPacketContext::TContextConfigGPRS& aArg1, RPacketContext::TContextConfigGPRS& aArg2);
    void SetSimtsyTestNumberL(TInt aTestNumber);
   	void WaitWithTimeout(TRequestStatus& aStatus, TInt aNumberOfMicroSeconds);

protected:
	RTelServer iTelServer;
	RMobilePhone iPhone;
	RPacketService iPacketService;
	RPacketContext iPacketContext[11]; //SIMTSY supports only 11 contexts
	};

#endif // __TE_SIMPACKET_TESTSTEP_BASE__