|
1 /* |
|
2 * Copyright (c) 2005-2006 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: Internal constants for Map and Navigation FW |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MN_INTERNAL_H |
|
20 #define MN_INTERNAL_H |
|
21 |
|
22 #include <eikserverapp.h> |
|
23 #include <lbsposition.h> |
|
24 #include "mnmapview.h" |
|
25 #include "mnmapimage.h" |
|
26 |
|
27 // Map and Navigation Library resource file |
|
28 _LIT( KLibResourceFile, "\\resource\\mnclientlib.rsc" ); |
|
29 |
|
30 // Internal panic category |
|
31 _LIT( KMnPanicInternal, "MnInternal" ); |
|
32 |
|
33 // IPC constants |
|
34 enum TMnIpcCode |
|
35 { |
|
36 EMnIpcNone = -1, |
|
37 EMnIpcStart = REikAppServiceBase::KServiceCmdBase, |
|
38 EMnIpcCancel, |
|
39 |
|
40 EMnIpcMapViewOffset = 1000, |
|
41 EMnIpcShowMap, |
|
42 EMnIpcShowCurrentLocation, |
|
43 EMnIpcSelectFromMap, |
|
44 EMnIpcGetSelectionResultLandmark, |
|
45 EMnIpcGetSelectionResultDbUri, |
|
46 EMnIpcAddLmIdsToShow, |
|
47 EMnIpcAddLandmarksToShow, |
|
48 EMnIpcResetLandmarksToShow, |
|
49 EMnIpcInitRequestText, |
|
50 |
|
51 EMnIpcNavigationOffset = 2000, |
|
52 EMnIpcNavigateTo, |
|
53 |
|
54 EMnIpcGeocodingOffset = 3000, |
|
55 EMnIpcCoordToAddress, |
|
56 EMnIpcAddressToCoord, |
|
57 EMnIpcPlainAddressToCoord, |
|
58 EMnIpcGetConversionResult, |
|
59 |
|
60 EMnIpcRenderImage = 4000, |
|
61 EMnIpcGetImageCoordinate, |
|
62 EMnIpcGetWorldCoordinate |
|
63 }; |
|
64 |
|
65 enum TMnIpcParams |
|
66 { |
|
67 // common params |
|
68 EMnIpcCancelRequestIdIndex = 0, |
|
69 |
|
70 // mapview params |
|
71 EMnIpcMapOptionsParamIndex = 0, |
|
72 EMnIpcMapSelectionTextParamIndex = 1, |
|
73 EMnIpcMapSelectionResultInfoParamIndex = 2, |
|
74 |
|
75 EMnIpcMapDbUriParamIndex = 0, |
|
76 EMnIpcMapLmIdsParamIndex = 1, |
|
77 |
|
78 EMnIpcMapLandmarksParamIndex = 0, |
|
79 |
|
80 EMnIpcMapSelResultBufferParamIndex = 0, |
|
81 |
|
82 // navigation params |
|
83 EMnIpcNaviLandmarkParamIndex = 0, |
|
84 |
|
85 // geocoding params |
|
86 EMnIpcGeoOptionsParamIndex = 0, |
|
87 EMnIpcGeoResultSizeParamIndex = 1, |
|
88 EMnIpcGeoLandmarkParamIndex = 2, |
|
89 EMnIpcGeoPlainAddressParamIndex = 2, |
|
90 |
|
91 EMnIpcGeoResultParamIndex = 0, |
|
92 EMnIpcGeoResultTypeParamIndex = 1, |
|
93 |
|
94 // mapimage params |
|
95 EMnIpcImageParamsParamIndex = 0, |
|
96 EMnIpcImageOptionsParamIndex = 1, |
|
97 EMnIpcImageBitmapHandleParamIndex = 2, |
|
98 }; |
|
99 |
|
100 enum TMnMapSelectionResultType |
|
101 { |
|
102 EMnMapSelResultNone, |
|
103 EMnMapSelResultLandmarkLink, |
|
104 EMnMapSelResultLandmarkInstance |
|
105 }; |
|
106 |
|
107 enum TMnGeocodingResultType |
|
108 { |
|
109 EMnGeoResultNone, |
|
110 EMnGeoResultCoordinates, |
|
111 EMnGeoResultAddress |
|
112 }; |
|
113 |
|
114 class TMnMapOptions |
|
115 { |
|
116 public: |
|
117 CMnMapView::TOptions iOptions; |
|
118 CMnMapView::TCurrentLocationOption iCurrentLocationOption; |
|
119 |
|
120 TCoordinate iCentralPoint; |
|
121 TReal iRadius; |
|
122 }; |
|
123 |
|
124 class TMnMapImageOptions |
|
125 { |
|
126 public: |
|
127 CMnMapImage::TShowOptions iShowOptions; |
|
128 TPoint iTargetOrigin; |
|
129 }; |
|
130 |
|
131 #endif // MN_INTERNAL_H |