1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description:SuplPosInit |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSTUBSUPLPOSINIT_H_ |
|
20 #define CSTUBSUPLPOSINIT_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <e32def.h> |
|
24 #include <e32cmn.h> |
|
25 #include "epos_comasuplasnbase.h" |
|
26 #include "epos_comasuplasnmessagebase.h" |
|
27 #include "epos_comasuplposinit.h" |
|
28 #include "asnimplementationbase.h" |
|
29 |
|
30 |
|
31 class CStubSuplPosInit : public COMASuplPosInit |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Factory function that instantiates a new object of CStubSuplPosInit |
|
36 * |
|
37 */ |
|
38 IMPORT_C static CStubSuplPosInit* NewL(); |
|
39 /** |
|
40 * Destructor |
|
41 */ |
|
42 IMPORT_C ~CStubSuplPosInit(); |
|
43 /** |
|
44 * Method for Encoding... |
|
45 */ |
|
46 virtual HBufC8* EncodeL(TInt& aErrorCode); |
|
47 |
|
48 private: |
|
49 |
|
50 void InitializeL(); |
|
51 |
|
52 void InitializeRequestData(); |
|
53 |
|
54 void InitializePosition(); |
|
55 |
|
56 void InitializePositionEstimate(TOMASuplPositionEstimate& posEstimate); |
|
57 |
|
58 void InitializeTime(const TOMASuplUtcTime aUtcTime); |
|
59 |
|
60 void InitializePosPayLoad(); |
|
61 |
|
62 void IntializeHorizVelocity(const COMASuplHorizVelocity* aVelocity); |
|
63 |
|
64 void IntializeHorizAndVertVelocity(const COMASuplHorizVelocity* aVelocity); |
|
65 |
|
66 void IntializeHorizUncertVelocity(const COMASuplHorizVelocity* aVelocity); |
|
67 |
|
68 void IntializeHorizVertUncertVelocity(const COMASuplHorizVelocity* aVelocity); |
|
69 |
|
70 /** |
|
71 * Initialize SetCapabilities |
|
72 */ |
|
73 void InitializeSetCapabilities(); |
|
74 /** |
|
75 * Initialize LocationId |
|
76 */ |
|
77 void InitializeLocationId(); |
|
78 /** |
|
79 * Initialize Qop |
|
80 */ |
|
81 void InitializeECellId(); |
|
82 /** |
|
83 * Initialize GSM ECellId |
|
84 */ |
|
85 void InitializeGSMECellId(); |
|
86 /** |
|
87 * Initialize WCDMA ECellId |
|
88 */ |
|
89 void InitializeWCDMAECellId(); |
|
90 |
|
91 TInt FillFrequencyInfo(TOMASuplFrequencyInfo& aOMASuplFrequencyInfo); |
|
92 |
|
93 TInt FillMeasuredResultsList(TOMASuplNetworkMeasureReport aNwkMeasureReport[]); |
|
94 |
|
95 TInt FillCellMeasuredResult(TOMASuplCellMeasuredResult aCellMeasuredResult[]); |
|
96 |
|
97 TInt FillModeSpecificInfo(TOMASuplCellMeasuredResult& aCellMeasuredResult); |
|
98 |
|
99 void FillFrequencyInfoULInfo(TInt aFddUL,TInt& aRetErrorCode); |
|
100 |
|
101 void FillFrequencyInfoDT(TInt aTddDt,TInt& aRetErrorCode); |
|
102 private: |
|
103 /** |
|
104 * Default C++ Constructor |
|
105 */ |
|
106 CStubSuplPosInit(); |
|
107 |
|
108 void ConstructL(); |
|
109 |
|
110 |
|
111 }; |
|
112 |
|
113 #endif /* CSTUBSUPLSTARTIMPLE_H_ */ |
|