|
1 /* |
|
2 * Copyright (c) 2005 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: LandmarksUi Content File - |
|
15 * Declares UI class for application. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef LMUIREFAPPVIEW |
|
25 #define LMUIREFAPPVIEW_H |
|
26 |
|
27 // INCLUDES |
|
28 #include <eikapp.h> |
|
29 #include <eikdoc.h> |
|
30 #include <e32std.h> |
|
31 #include <coeccntx.h> |
|
32 #include <aknappui.h> |
|
33 #include <aknViewAppUi.h> |
|
34 #include <aknview.h> |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 |
|
38 class CLmkLandmarkSelectorDlg; |
|
39 class CLmkCategorySelectorDlg; |
|
40 class CLmUiRefAppContainer; |
|
41 class CPosLandmark; |
|
42 class CPosLandmarkDatabase; |
|
43 // CLASS DECLARATION |
|
44 |
|
45 /** |
|
46 * CLmUiRefAppview class. |
|
47 * |
|
48 */ |
|
49 class CLmUiRefAppView : public CAknView |
|
50 { |
|
51 public: // Constructors and destructor |
|
52 /** |
|
53 * C++ default constructor. |
|
54 * @param aKeyProcessor |
|
55 * @param aLmkSender |
|
56 * @return created CLmkByLmView object |
|
57 */ |
|
58 static CLmUiRefAppView* NewLC(); |
|
59 |
|
60 /** |
|
61 * Destructor. |
|
62 */ |
|
63 ~CLmUiRefAppView(); |
|
64 |
|
65 private: // constructor |
|
66 /** |
|
67 * C++ constructor |
|
68 * @return newly instantiated object |
|
69 */ |
|
70 CLmUiRefAppView(); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 // New Functions added |
|
78 void NewLmCmdL(); |
|
79 void ExecuteLmEditorL(CPosLandmark* aLandmark, CPosLandmarkDatabase& aDb); |
|
80 |
|
81 public: // New Funcs |
|
82 CAknViewAppUi* ViewAppUi(); |
|
83 TPosLmItemId SelectedItem() const; |
|
84 TInt LaunchLandmarksDialogL(); |
|
85 |
|
86 // Multiple Landmarks Selector dialog |
|
87 TInt LaunchMultiLandmarkSelectorDialogL(); |
|
88 |
|
89 // Multiple category selector dialog |
|
90 TInt LaunchMultiCategorySelectorDialogL(); |
|
91 |
|
92 // Helper method for checking whether the database is empty or not |
|
93 TBool IsLmDbEmptyL(); |
|
94 |
|
95 // Single category selector dialog |
|
96 TInt CLmUiRefAppView::LaunchSingleCategoeyDialogL(); |
|
97 |
|
98 public: // From CAknView |
|
99 TUid Id() const; |
|
100 void HandleCommandL( TInt aCommand ); |
|
101 |
|
102 private: //From CAknView |
|
103 void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, |
|
104 const TDesC8& aCustomMessage ); |
|
105 void DoDeactivate(); |
|
106 |
|
107 protected: // From MEikMenuObserver |
|
108 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
109 |
|
110 private: // Data |
|
111 /// Own: A pointer to container |
|
112 CLmUiRefAppContainer* iContainer; |
|
113 CLmUiRefAppUi* iLmUiRefAppUi; |
|
114 TPosLmItemId iSelectedItem; |
|
115 CLmkLandmarkSelectorDlg *iLmkSelectDlg; |
|
116 CLmkCategorySelectorDlg *iCategorySelectDlg; |
|
117 CPosLandmarkDatabase* ilDb; |
|
118 }; |
|
119 |
|
120 #endif // CLMKBYLMVIEW_H |
|
121 |
|
122 // End of File |
|
123 |