|
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: RMnMapViewServiceClient class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MN_MAPVIEWSERVICECLIENT_H |
|
20 #define MN_MAPVIEWSERVICECLIENT_H |
|
21 |
|
22 #include <AknServerApp.h> |
|
23 #include <EPos_Landmarks.h> |
|
24 |
|
25 #include "mnmapselectionresultinfo.h" |
|
26 #include "mnserviceclientbase.h" |
|
27 |
|
28 class CPosLandmark; |
|
29 |
|
30 /** \internal */ |
|
31 NONSHARABLE_CLASS( RMnMapViewServiceClient ) : public RMnServiceClientBase |
|
32 { |
|
33 public: |
|
34 /** C++ constructor */ |
|
35 RMnMapViewServiceClient(); |
|
36 /** C++ destructor */ |
|
37 ~RMnMapViewServiceClient(); |
|
38 |
|
39 void AddLandmarksToShowL( |
|
40 const TDesC& aDatabaseUri, RArray<TPosLmItemId>& aLandmarkIds ); |
|
41 |
|
42 void AddLandmarksToShowL( RPointerArray<CPosLandmark>& aLandmarks ); |
|
43 void AddLandmarksToShowL( RArray<TPtrC8>& aPackedLandmarks ); |
|
44 |
|
45 void ResetLandmarksToShow(); |
|
46 |
|
47 void InitSelectionRequestTextL( HBufC*& aSelectionRequestText ); |
|
48 void SetSelectionRequestTextL( const TDesC& aSelectionRequestText ); |
|
49 void SetSelectionRequestText( HBufC*& aSelectionRequestText ); |
|
50 void ClearSelectionRequestText(); |
|
51 |
|
52 void ShowMapL( TMnMapOptions aOptions ); |
|
53 |
|
54 void ShowCurrentLocationL( TMnMapOptions aOptions ); |
|
55 |
|
56 void SelectFromMap( TMnMapOptions aOptions, TRequestStatus& aStatus ); |
|
57 |
|
58 CMnMapView::TSelectionResultType SelectionResultType(); |
|
59 |
|
60 CPosLandmark* GetSelectedLandmarkL(); |
|
61 void GetSelectedLandmarkL( TInt& aLandmarkIndex ); |
|
62 void GetSelectedLandmarkL( TPosLmItemId& aLandmarkId, HBufC*& aDbUri ); |
|
63 |
|
64 private: // from RApaAppServiceBase |
|
65 TUid ServiceUid() const ; |
|
66 |
|
67 private: |
|
68 TMnMapOptions iOptions; |
|
69 TPtrC8 iOptionsPtr; |
|
70 |
|
71 HBufC* iSelectionRequestText; |
|
72 TBool iSelectionRequestTextOwned; |
|
73 |
|
74 TMnMapSelectionResultInfo iResultInfo; |
|
75 TPckg<TMnMapSelectionResultInfo> iResultInfoPtr; |
|
76 }; |
|
77 |
|
78 #endif // MN_MAPVIEWSERVICECLIENT_H |