|
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's filter container class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef CLMKLBWITHFILTERCONTAINER_H |
|
26 #define CLMKLBWITHFILTERCONTAINER_H |
|
27 |
|
28 // INCLUDES |
|
29 #include "CLmkBaseContainer.h" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class MAknsSkinInstance; |
|
33 class CAknsBasicBackgroundControlContext; |
|
34 |
|
35 class CEikTextListBox; |
|
36 class CAknSearchField; |
|
37 class CLmkAppSelectorImplBase; |
|
38 class CAknFilteredTextListBoxModel; |
|
39 class CPosLandmarkDatabase; |
|
40 class CAknNavigationDecorator; |
|
41 class CLmkSender; |
|
42 |
|
43 // CLASS DECLARATION |
|
44 /** |
|
45 * CLmkLbWithFilterContainer container control class. |
|
46 * |
|
47 */ |
|
48 class CLmkLbWithFilterContainer : public CLmkBaseContainer |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 ~CLmkLbWithFilterContainer(); |
|
52 |
|
53 public: // New functions |
|
54 /** |
|
55 * Return reference to listbox |
|
56 * @return CEikTextListBox reference |
|
57 */ |
|
58 CEikTextListBox& ListBox(); |
|
59 |
|
60 public: // From CCoeControl |
|
61 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
62 TEventCode aType ); |
|
63 |
|
64 protected: // New functions |
|
65 /** |
|
66 * Setup title pane |
|
67 * Template method. |
|
68 */ |
|
69 virtual void SetupTitlePaneL() = 0; |
|
70 |
|
71 /** |
|
72 * Setup selector and list |
|
73 * Template method. |
|
74 * @param aDb database reference |
|
75 * @param aSender used to send landmarks |
|
76 */ |
|
77 virtual void SetupSelectorAndListL( CPosLandmarkDatabase& aDb, |
|
78 CLmkSender& aSender ) = 0; |
|
79 |
|
80 /** |
|
81 * Setup navi panel |
|
82 * Template method. |
|
83 */ |
|
84 virtual void SetupNaviPaneL() = 0; |
|
85 |
|
86 protected: // Constructors and destructor |
|
87 /** |
|
88 * C++ default constructor. |
|
89 * @param aKeyProcessor |
|
90 * @param aHelpContext |
|
91 * @return newly instantiated object |
|
92 */ |
|
93 CLmkLbWithFilterContainer( MLmkKeyProcessor& aKeyProcessor, |
|
94 const TDesC& aHelpContext ); |
|
95 |
|
96 /** |
|
97 * Symbian 2nd phase constructor |
|
98 * @param aRect |
|
99 */ |
|
100 void ConstructL( const TRect& aRect ); |
|
101 |
|
102 private: // New functions |
|
103 /** |
|
104 * Internal helper method for setting up find box. |
|
105 */ |
|
106 void SetupFindBoxL(); |
|
107 private://from MLmkMskObserver |
|
108 void UpdateMskContainerForFilterL(); |
|
109 |
|
110 private: // From CCoeControl |
|
111 void SizeChanged(); |
|
112 TInt CountComponentControls() const; |
|
113 CCoeControl* ComponentControl(TInt aIndex) const; |
|
114 void Draw(const TRect& aRect) const; |
|
115 |
|
116 #ifdef RD_SCALABLE_UI_V2 |
|
117 public://for touch support |
|
118 |
|
119 void SetListBoxObserver( MEikListBoxObserver* aObserver ); |
|
120 #endif//RD_SCALABLE_UI_V2 |
|
121 |
|
122 protected: //data |
|
123 /// Ref. |
|
124 CEikTextListBox* iListBox; |
|
125 |
|
126 /// Own |
|
127 CAknSearchField* iFindBox; |
|
128 |
|
129 /// Own: Decorator class for navigation pane controls. |
|
130 CAknNavigationDecorator* iNaviDeco; |
|
131 |
|
132 private: |
|
133 /// Ref: A pointer MAknsSkinInstance |
|
134 MAknsSkinInstance* iSkinInstance; |
|
135 |
|
136 /// Own: A pointer CAknBasicBackgroundControlContext |
|
137 CAknsBasicBackgroundControlContext* iBackgroundSkinContext; |
|
138 |
|
139 mutable TBool iIsNeedToReDraw; |
|
140 }; |
|
141 |
|
142 #endif // CLMKLBWITHFILTERCONTAINER_H |
|
143 |
|
144 // End of File |