diff -r 000000000000 -r 9cfd9a3ee49c lbstest/lbstestproduct/lbsclient/inc/ctlbsclientsteplastknownposareasources.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lbstest/lbstestproduct/lbsclient/inc/ctlbsclientsteplastknownposareasources.h Tue Feb 02 01:50:39 2010 +0200 @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2006-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: +* @file CT_LbsClientStep_LastKnownPosArea.h +* This contains the header file for Last Known Position Area Tests +* +*/ + + +#ifndef __CT_LBS_CLIENT_STEP_LAST_KNOWN_POS_AREA_SOURCES_H__ +#define __CT_LBS_CLIENT_STEP_LAST_KNOWN_POS_AREA_SOURCES_H__ + +#include "ctlbsclientstep.h" +#include "ctlbsclientserver.h" +#include "ctlbsclientnotifyposupdao.h" +#include + + +// Literals used +_LIT(KLbsClientStep_LastKnownPosAreaSources, "LbsClientStep_LastKnownPosAreaSources"); + + +class CT_LbsClientStep_LastKnownPosAreaSources : public CT_LbsClientStep, MT_NotifyPosUpdateObserver + { +public: + ~CT_LbsClientStep_LastKnownPosAreaSources(); + static CT_LbsClientStep_LastKnownPosAreaSources* New(CT_LbsClientServer& aParent); + virtual TVerdict doTestStepL(); + void NotifyPositionUpdateCallback(TRequestStatus& aStatus); + +private: + CT_LbsClientStep_LastKnownPosAreaSources(CT_LbsClientServer& aParent); + void Validate(TPositionInfo& aExpectedPosition, TPositionInfo& aActualPosition, TPositionAreaExtendedInfo& aActualArea, + TBool aMccExpected, TBool aMncExpected, TBool aLacExpected, TBool aCidExpected); + TInt VerifyMatchLevel(TPositionAreaExtendedInfo& aExpected, TPositionAreaExtendedInfo& aActual); + TInt DoLastKnownPosAreaL(TPositionInfoBase& aPosInfo, TPositionAreaExtendedInfo& aMatchLevel); + void ConstructL(); + }; + +#endif //__CT_LBS_CLIENT_STEP_LAST_KNOWN_POS_AREA_SOURCES_H__