|
1 /* |
|
2 * Copyright (c) 2010 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: Positioning Indicators Info private implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef POSITIONINDICATORINFOPRIVATE_H |
|
19 #define POSITIONINDICATORINFOPRIVATE_H |
|
20 |
|
21 #include "posindicatorinfo.h" |
|
22 #include "posindinfochangeobserver.h" |
|
23 #include "posindicatorhelperserver.h" |
|
24 #include "posindicatorhelper.h" |
|
25 |
|
26 class PosGeoAddress; |
|
27 |
|
28 class PosIndicatorInfoPrivate : public MPosIndInfoChangeObserver |
|
29 { |
|
30 public : |
|
31 /** |
|
32 * Constructor |
|
33 */ |
|
34 PosIndicatorInfoPrivate(PosIndicatorInfo *aPositionIndicator); |
|
35 |
|
36 /** |
|
37 * Destructor |
|
38 */ |
|
39 ~PosIndicatorInfoPrivate(); |
|
40 |
|
41 /** |
|
42 * Requests for positioning information from Positioning Indicator |
|
43 * Helper Server.NotifyPosInfoChange() will be called when |
|
44 * position information is available. |
|
45 * |
|
46 */ |
|
47 void RequestPosInfo(); |
|
48 |
|
49 /** |
|
50 * Cancels positon info request. |
|
51 */ |
|
52 void CancelPosInfo(); |
|
53 |
|
54 /** |
|
55 * Derived from MPosIndInfoChangeObserver |
|
56 */ |
|
57 void NotifyPosInfoChange(CPosLandmark* aLandmark, TInt aErrCode); |
|
58 |
|
59 private: |
|
60 void AddToAddress(TPositionFieldId aFieldId, TPtrC aValue); |
|
61 |
|
62 private: |
|
63 |
|
64 // Handle to current server session |
|
65 RPosIndicatorHelperServer mPosIndicatorHelperServer; |
|
66 |
|
67 // Handle to current subsession |
|
68 RPosIndicatorHelper mPosIndicatorHelper; |
|
69 |
|
70 /** |
|
71 * It contains the latest position information |
|
72 * Owns |
|
73 */ |
|
74 PosGeoAddress* mPosGeoAddress; |
|
75 |
|
76 /* |
|
77 * Handler to PosIndicatorInfo. |
|
78 * It is required to emit PosInfoUpdated() signal |
|
79 * |
|
80 * |
|
81 */ |
|
82 PosIndicatorInfo* q_ptr; |
|
83 |
|
84 Q_DECLARE_PUBLIC(PosIndicatorInfo); |
|
85 }; |
|
86 |
|
87 |
|
88 #endif /* POSITIONINDICATORINFOPRIVATE_H */ |