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 category settings view's container. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef __CLMKCATEGORYSETTINGSCONTAINER_H__ |
|
26 #define __CLMKCATEGORYSETTINGSCONTAINER_H__ |
|
27 |
|
28 // INCLUDES |
|
29 #include "CLmkBaseContainer.h" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 |
|
33 |
|
34 class CAknView; // For landscape support |
|
35 |
|
36 class CLmkAppSelectorImplBase; |
|
37 class CEikMenuBar; |
|
38 class CLmkAppCategorySettingsImpl; |
|
39 class CEikTextListBox; |
|
40 |
|
41 // CLASS DECLARATION |
|
42 /** |
|
43 * CLmkCategorySettingsContainer container control class. |
|
44 * |
|
45 */ |
|
46 class CLmkCategorySettingsContainer : public CLmkBaseContainer |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 /** |
|
50 * Two-phased constructor |
|
51 * @param aKeyProcessor forward key events |
|
52 * @param aParent parent pointer |
|
53 * @param aRect A rectangle for drawing. |
|
54 * @return The newly created object. |
|
55 */ |
|
56 |
|
57 // For landscape support |
|
58 |
|
59 static CLmkCategorySettingsContainer* NewL( |
|
60 MLmkKeyProcessor& aKeyProcessor, |
|
61 MObjectProvider* aParent, |
|
62 const TRect& aRect, CAknView& aView ); |
|
63 |
|
64 |
|
65 /** |
|
66 * Destructor. |
|
67 */ |
|
68 ~CLmkCategorySettingsContainer(); |
|
69 |
|
70 private: |
|
71 /** |
|
72 * By default Symbian 2nd phase constructor is private. |
|
73 * @param aRect Frame rectangle for container. |
|
74 */ |
|
75 void ConstructL( const TRect& aRect ); |
|
76 |
|
77 /** |
|
78 * C++ default constructor. |
|
79 * @param aKeyProcessor forward key events |
|
80 * @return newly instantiated object |
|
81 */ |
|
82 //CLmkCategorySettingsContainer( MLmkKeyProcessor& aKeyProcessor ); |
|
83 |
|
84 // For landscape SUpport |
|
85 |
|
86 CLmkCategorySettingsContainer( MLmkKeyProcessor& aKeyProcessor , CAknView& aView); |
|
87 |
|
88 |
|
89 public: // new functions |
|
90 /** |
|
91 * Return reference |
|
92 * @return CLmkAppCategorySettingsImpl reference |
|
93 */ |
|
94 CLmkAppCategorySettingsImpl& SelectorImpl(); |
|
95 |
|
96 /** |
|
97 * Return listbox reference |
|
98 * @return CEikTextListBox reference |
|
99 */ |
|
100 CEikTextListBox& ListBox(); |
|
101 |
|
102 public: // From CCoeControl |
|
103 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
104 TEventCode aType ); |
|
105 |
|
106 #ifdef RD_SCALABLE_UI_V2 |
|
107 void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
|
108 #endif // RD_SCALABLE_UI_V2 |
|
109 |
|
110 private: // From CCoeControl |
|
111 void SizeChanged(); |
|
112 TInt CountComponentControls() const; |
|
113 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
114 void FocusChanged(TDrawNow aDrawNow); |
|
115 |
|
116 private: |
|
117 |
|
118 //from MLmkMskObserver |
|
119 void UpdateMskContainerL(); |
|
120 |
|
121 //from CLmkBaseContainer |
|
122 TLmkMskDispItem ResolveMskDisplayItem(); |
|
123 |
|
124 private: |
|
125 //For Landscape support |
|
126 |
|
127 void HandleResourceChange( TInt aType ); |
|
128 |
|
129 |
|
130 |
|
131 private: //from CLmkBaseContainer |
|
132 CEikMenuBar* MenuBar(); |
|
133 TInt ContextSpecificMenuBar(); |
|
134 TInt OptionsMenuBar(); |
|
135 |
|
136 #ifdef RD_SCALABLE_UI_V2 |
|
137 protected://for touch support |
|
138 |
|
139 void SetListBoxObserver( MEikListBoxObserver* aObserver ); |
|
140 #endif//#ifdef RD_SCALABLE_UI_V2 |
|
141 |
|
142 private: //data |
|
143 /// Ref. |
|
144 CEikTextListBox* iListBox; |
|
145 // For landscape support |
|
146 CAknView &iView; |
|
147 |
|
148 // To Store current Index |
|
149 TInt iCurrentIndex; |
|
150 |
|
151 }; |
|
152 |
|
153 #endif // __CLMKCATEGORYSETTINGSCONTAINER_H__ |
|
154 |
|
155 // End of File |
|