diff -r 000000000000 -r 3553901f7fa8 telephonyserverplugins/simtsy/test/Te_SimPacket/Te_SimPacketTestStepBase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/telephonyserverplugins/simtsy/test/Te_SimPacket/Te_SimPacketTestStepBase.h Tue Feb 02 01:41:59 2010 +0200 @@ -0,0 +1,61 @@ +// 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 + +#include +#include + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#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__