|
1 /* |
|
2 * Copyright (c) 2002 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 - LMK application ByCategory view class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef CLMKBYCATEGORYVIEW_H |
|
24 #define CLMKBYCATEGORYVIEW_H |
|
25 |
|
26 // INCLUDES |
|
27 #include "CLmkBaseView.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CLmkByCategoryContainer; |
|
31 class CLmkAppCategorySelectorImpl; |
|
32 class MLmkListMemento; |
|
33 class CLmkAppUi; |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CLmkByCategoryView view class. |
|
38 * |
|
39 */ |
|
40 class CLmkByCategoryView : public CLmkBaseView |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 /** |
|
44 * C++ default constructor. |
|
45 * @param aKeyProcessor |
|
46 * @return Created CLmkByCategoryView object |
|
47 */ |
|
48 static CLmkByCategoryView* NewLC( MLmkKeyProcessor& aKeyProcessor ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CLmkByCategoryView(); |
|
54 |
|
55 public: // New functions |
|
56 /** |
|
57 * Category contents view needs information about category |
|
58 * selector's last status. |
|
59 * @return memento reference for reading memorized status |
|
60 */ |
|
61 const MLmkListMemento& BorrowMemento(); |
|
62 |
|
63 protected: // From MLmkKeyProcessor |
|
64 TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent, |
|
65 TEventCode aType ); |
|
66 |
|
67 public: // CAknView |
|
68 TUid Id() const; |
|
69 void HandleCommandL( TInt aCommand ); |
|
70 |
|
71 protected: // From MEikMenuObserver |
|
72 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
73 |
|
74 private: // constructor |
|
75 /** |
|
76 * C++ constructor |
|
77 * @param aKeyProcessor |
|
78 * @return newly instantiated object |
|
79 */ |
|
80 CLmkByCategoryView( MLmkKeyProcessor& aKeyProcessor ); |
|
81 |
|
82 /** |
|
83 * By default Symbian 2nd phase constructor is private. |
|
84 */ |
|
85 void ConstructL(); |
|
86 |
|
87 private: //From CAknView |
|
88 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
89 TUid aCustomMessageId, |
|
90 const TDesC8& aCustomMessage ); |
|
91 void DoDeactivate(); |
|
92 |
|
93 public: // New functions |
|
94 void Update(); //Added for landscape support |
|
95 void AttachAIWMenuInterestL(); |
|
96 |
|
97 private://From CLmkBaseView |
|
98 void EnableMskMenuL(TBool aEnable); |
|
99 void EnableMskLabelL(TBool aEnable); |
|
100 |
|
101 #ifdef RD_SCALABLE_UI_V2 |
|
102 protected://for touch support |
|
103 |
|
104 //from MEikListBoxObserver |
|
105 void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType ); |
|
106 #endif//RD_SCALABLE_UI_V2 |
|
107 private: // Data |
|
108 /// Own: A pointer to container |
|
109 CLmkByCategoryContainer* iContainer; |
|
110 |
|
111 // Own: list status information |
|
112 MLmkListMemento* iListMemento; |
|
113 }; |
|
114 |
|
115 #endif // CLMKBYCATEGORYVIEW_H |
|
116 |
|
117 // End of File |