748
|
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 the License "Symbian Foundation License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// @file ctlbsclientsteppartialupdate.h
|
|
15 |
// This contains the header file for Update Options Tests
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
#ifndef __CT_LBS_CLIENT_PARTIALUPDATE_H__
|
|
20 |
#define __CT_LBS_CLIENT_PARTIALUPDATE_H__
|
|
21 |
|
|
22 |
#include "ctlbsclientserver.h"
|
|
23 |
#include "ctlbsnetsimstep.h"
|
|
24 |
#include "ctlbsdoposupdate.h"
|
|
25 |
|
|
26 |
|
|
27 |
// Literals used
|
|
28 |
_LIT(KLbsClientStep_PartialUpdate, "LbsClientStep_PartialUpdate");
|
|
29 |
|
|
30 |
class CT_LbsClientStep_PartialUpdate : public CT_LbsNetSimStep, MT_LbsDoPosUpdateObserver
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
~CT_LbsClientStep_PartialUpdate();
|
|
34 |
|
|
35 |
static CT_LbsClientStep_PartialUpdate* New(CT_LbsClientServer& aParent);
|
|
36 |
virtual TVerdict doTestStepL();
|
|
37 |
|
|
38 |
// From MLbsNetSimTestObserver.
|
|
39 |
virtual void Connected();
|
|
40 |
virtual void NotifyRegisterLcsMoLr(const TDesC& aData);
|
|
41 |
virtual void NotifyReleaseLcsMoLr(TInt aReason);
|
|
42 |
virtual void NotifyMeasurementControlLocation(const TPositionInfo& aPosition, const RLbsAssistanceDataBuilderSet& aData, const TLbsNetPosRequestQuality& aQuality);
|
|
43 |
virtual void NotifyMeasurementReportLocation(const TPositionInfo& aPosition);
|
|
44 |
virtual void NotifyFacilityLcsMoLrResult(TInt aReason, const TPositionInfo& aPosition);
|
|
45 |
|
|
46 |
void MT_LbsDoPosUpdateCallback(TRequestStatus& aStatus);
|
|
47 |
|
|
48 |
private:
|
|
49 |
CT_LbsClientStep_PartialUpdate(CT_LbsClientServer& aParent);
|
|
50 |
void ConstructL();
|
|
51 |
|
|
52 |
TInt OpenNetSim();
|
|
53 |
void CloseNetSim();
|
|
54 |
void VerifyPosInfos();
|
|
55 |
|
|
56 |
private:
|
|
57 |
|
|
58 |
enum TPosUpdateStatus
|
|
59 |
{
|
|
60 |
EPositionUpdateStart,
|
|
61 |
EPositionUpdateContinue,
|
|
62 |
EPositionUpdateComplete
|
|
63 |
};
|
|
64 |
|
|
65 |
|
|
66 |
TInt iTestCaseId;
|
|
67 |
TPosUpdateStatus iPosUpdateStatus;
|
|
68 |
|
|
69 |
CT_LbsDoPosUpdate* iDoPosUpdatePtr;
|
|
70 |
CT_LbsClientServer& iParent;
|
|
71 |
|
|
72 |
TPositionInfo* iPosInfoPtr1;
|
|
73 |
TPositionInfo* iPosInfoPtr2;
|
|
74 |
TPosition iRefPos;
|
|
75 |
|
|
76 |
};
|
|
77 |
|
|
78 |
#endif //__CT_LBS_CLIENT_PARTIALUPDATE_H__
|