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