diff -r 000000000000 -r 3553901f7fa8 telephonyserverplugins/simtsy/test/Te_SimPhBk/Te_SimPhBkTestStepBase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/telephonyserverplugins/simtsy/test/Te_SimPhBk/Te_SimPhBkTestStepBase.h Tue Feb 02 01:41:59 2010 +0200 @@ -0,0 +1,66 @@ +// 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_SIMPHBK_TESTSTEP_BASE__ +#define __TE_SIMPHBK_TESTSTEP_BASE__ + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include "SimTsy.h" +#include "mmretrieve.h" + +_LIT(KSimtsyName,"SIM"); + +#define CHECKPOINT(code,expected,msg){\ + TEST((code)==(expected));\ + if (TestStepResult() != EPass ){\ + INFO_PRINTF1(_L("Failed Checkpoint:"));\ + INFO_PRINTF1(msg);\ + }\ + } + +class CSimPhBkTestStepBase : public CTestStep + { +public: + virtual TVerdict doTestStepPreambleL(); + virtual TVerdict doTestStepPostambleL(); + static void CleanUp(TAny *aPtr) ; + +protected: + void GetGoodNumber(TDes& aNum) ; + TInt ClearPhoneBookL(const TDesC& aPhoneBookName) ; + void CheckPhoneBookInfoL(RMobilePhoneStore::TMobilePhoneStoreInfoV1& aInfo) ; + void WriteBatchOfEntriesToThePhoneL() ; + // TCleanupItem operator for objects of this class + operator TCleanupItem() ; + +protected: + RTelServer iTelServer; + RMobilePhone iPhone; + RMobileLine iLine; + RMobileCall iCall; + TBool iMESupported; + TBool iMTSupported; + }; + +#endif // __TE_SIMPHBK_TESTSTEP_BASE__