lbstest/lbstestproduct/lbsconflict/inc/ctlbsconflictstepx3ptimerpush.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // @file ctlbsconflictstepx3ptimerpush.h
       
    15 // This contains the header file for Location Data Source Tests
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __CT_LBS_CONFLICT_STEP_X3PTIMERPUSH_H__
       
    20 #define __CT_LBS_CONFLICT_STEP_X3PTIMERPUSH_H__
       
    21 
       
    22 // LBS includes.
       
    23 #include <lbs.h>
       
    24 #include <lbscommon.h>
       
    25 #include <lbs/lbsnetcommon.h>
       
    26 //#include <lbs/lbsprivacycontroller.h>
       
    27 
       
    28 // LBS test includes.
       
    29 #include "ctlbsconflictstep.h"
       
    30 #include "ctlbsconflictserver.h"
       
    31 #include "ctlbsdoposupdate.h"
       
    32 #include "ctlbsdox3p.h"
       
    33 //#include "ctlbsassdatamoduledata.h"
       
    34 
       
    35 // Literals used
       
    36 _LIT(KLbsConflictStep_X3PTimerPush, "LbsConflictStep_X3PTimerPush");
       
    37 
       
    38 
       
    39 class CT_LbsConflictStep_X3PTimerPush :	public	CT_LbsConflictStep,
       
    40 										public	MT_LbsDoX3PObserver
       
    41 	{
       
    42 public:
       
    43 	~CT_LbsConflictStep_X3PTimerPush();
       
    44 
       
    45 	static CT_LbsConflictStep_X3PTimerPush* New(CT_LbsConflictServer& aParent);
       
    46 	virtual TVerdict doTestStepL();
       
    47 
       
    48 	// From CT_LbsNetSimStep via CT_LbsConflictStep
       
    49 	void Connected();
       
    50 	void Disconnected();
       
    51 	void NotifyRegisterLcsMoLr(const TDesC& aData);
       
    52 	void NotifyReleaseLcsMoLr(TInt aReason);
       
    53 	void NotifyMeasurementControlLocation(const TPositionInfo& aPosition, const RLbsAssistanceDataBuilderSet& aData, const TLbsNetPosRequestQuality& aQuality);
       
    54 	void NotifyReleaseLcsLocationNotification(const CLbsNetworkProtocolBase::TLbsPrivacyResponse& aResult);
       
    55 	void NotifyFacilityLcsMoLrResult(TInt aReason, const TPositionInfo& aPosition);
       
    56 	void NotifyMeasurementReportLocation(const TPositionInfo& aPosition);
       
    57 	void NotifyMeasurementReportRequestMoreAssistanceData(const TLbsAssistanceDataGroup& aFilter);
       
    58 	void NotifyMeasurementReportControlFailure(TInt aReason);
       
    59 
       
    60 	// From MT_LbsDoX3PObserver - X3P transmit callback.
       
    61 	void MT_LbsDoX3PCallback(TInt aTransmitId, TRequestStatus& aStatus);
       
    62 
       
    63 
       
    64 private:
       
    65 	CT_LbsConflictStep_X3PTimerPush(CT_LbsConflictServer& aParent);
       
    66 	void ConstructL();		
       
    67 
       
    68 	void SetExpectedSeq();
       
    69 	void VerifyPosInfos();
       
    70 
       
    71 	void StartX3PL(TInt aTransmitId);
       
    72 
       
    73 	enum {	EReqX3PTimer = CT_LbsConflictStep::ELast,
       
    74 			EReqX3PPush, EReqX3PTimer2};
       
    75 
       
    76 	/** Active object wrapper to allow X3Ps.
       
    77 	*/
       
    78 	CT_LbsDoX3P* iDoX3PTimer;
       
    79 	CT_LbsDoX3P* iDoX3PPush;
       
    80 	};
       
    81 
       
    82 #endif //__CT_LBS_CONFLICT_STEP_X3PTIMERPUSH_H__