1 /* |
|
2 * Copyright (c) 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: CMnrpNaviView class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MNRP_NAVIVIEW_H |
|
20 #define MNRP_NAVIVIEW_H |
|
21 |
|
22 #include <aknview.h> |
|
23 |
|
24 class CMnrpEngine; |
|
25 class CMnrpNaviModel; |
|
26 class CMnrpNaviControl; |
|
27 class CPosLandmark; |
|
28 |
|
29 /** Map view. Draws map on screen using information from |
|
30 CMnrpMapModel. |
|
31 */ |
|
32 class CMnrpNaviView : public CAknView |
|
33 { |
|
34 public: |
|
35 |
|
36 static CMnrpNaviView* NewL( TBool aChained, CMnrpEngine& aEngine ); |
|
37 virtual ~CMnrpNaviView(); |
|
38 |
|
39 /** Shows map view in browser mode |
|
40 * @param aService Object to get map view options from |
|
41 */ |
|
42 void SetDestinationL( const CPosLandmark& aDestination ); |
|
43 |
|
44 public: // from CAknView |
|
45 |
|
46 TUid Id() const; |
|
47 |
|
48 void HandleCommandL( TInt aCommand ); |
|
49 |
|
50 void DoActivateL( |
|
51 const TVwsViewId& aPrevViewId, |
|
52 TUid aCustomMessageId, |
|
53 const TDesC8& aCustomMessage); |
|
54 |
|
55 void DoDeactivate(); |
|
56 |
|
57 private: |
|
58 |
|
59 CMnrpNaviView( CMnrpEngine& aEngine ); |
|
60 void ConstructL( TBool aChained ); |
|
61 |
|
62 private: |
|
63 /** Application engine */ |
|
64 CMnrpEngine& iEngine; |
|
65 |
|
66 /** UI control */ |
|
67 CMnrpNaviControl* iControl; |
|
68 |
|
69 /** Destination */ |
|
70 CPosLandmark* iDestination; |
|
71 }; |
|
72 |
|
73 #endif // MNRP_NAVIVIEW_H |
|
74 |
|