|
1 // Copyright (c) 2007-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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 |
|
20 */ |
|
21 |
|
22 #ifndef RRLP_MEASURE_POSITION_REQUEST_H |
|
23 #define RRLP_MEASURE_POSITION_REQUEST_H |
|
24 |
|
25 #include "rrlpmessagebase.h" |
|
26 #include <lbs/lbsnetcommon.h> |
|
27 #include <lbs/lbsassistancedatabuilderset.h> |
|
28 |
|
29 |
|
30 /** |
|
31 Encapsulation for received CRrlpMeasurePositionRequest messages. |
|
32 |
|
33 @internalTechnology |
|
34 */ |
|
35 NONSHARABLE_CLASS(CRrlpMeasurePositionRequest) : public CRrlpMessageBase |
|
36 { |
|
37 public: |
|
38 IMPORT_C static CRrlpMeasurePositionRequest* NewL(); |
|
39 |
|
40 public: |
|
41 virtual ~CRrlpMeasurePositionRequest(); |
|
42 |
|
43 public: |
|
44 |
|
45 /** Populates aQuality and aMethod according to received PositionInstruction parameters. */ |
|
46 IMPORT_C TInt GetPositionInstruct(TLbsNetPosRequestQuality& aQuality, |
|
47 TLbsNetPosRequestMethod& aMethod); |
|
48 |
|
49 /** Returns ETrue if valid GPS Assistance Data is present in the received message */ |
|
50 IMPORT_C TBool AssistanceDataPresent(); |
|
51 |
|
52 /** Populates aData with received assistance data, and aDataMask to |
|
53 indicate the assistance data parts present */ |
|
54 IMPORT_C TInt BuildAssistanceData(TLbsAsistanceDataGroup& aDataMask, |
|
55 RLbsAssistanceDataBuilderSet& aAssistanceDataBuilderSet); |
|
56 |
|
57 protected: |
|
58 |
|
59 /** gets the extended reference elements */ |
|
60 TInt GetExtendedReference(TRrlpReference& aRrlpRef); |
|
61 |
|
62 private: |
|
63 |
|
64 /** Constructor */ |
|
65 CRrlpMeasurePositionRequest(); |
|
66 |
|
67 /** second stage constructor */ |
|
68 void ConstructL(); |
|
69 |
|
70 /** converts uncertainty constants to uncertainty in meters */ |
|
71 TReal32 UncertaintyToMeters(TInt aUncertainty); |
|
72 |
|
73 /** Prohibit copy constructor */ |
|
74 CRrlpMeasurePositionRequest(const CRrlpMeasurePositionRequest&); |
|
75 |
|
76 /** Prohibit assigment operator */ |
|
77 CRrlpMeasurePositionRequest& operator= (const CRrlpMeasurePositionRequest&); |
|
78 |
|
79 }; |
|
80 |
|
81 #endif // RRLP_MEASURE_POSITION_REQUEST_H |
|
82 |