|
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's container |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef CLMKBYCATEGORYCONTAINER_H |
|
26 #define CLMKBYCATEGORYCONTAINER_H |
|
27 |
|
28 // INCLUDES |
|
29 #include "CLmkLbWithFilterContainer.h" |
|
30 |
|
31 |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 // For landscape Support |
|
35 |
|
36 class CAknView; |
|
37 |
|
38 class CEikTextListBox; |
|
39 class CLmkAppCategorySelectorImpl; |
|
40 class CAknFilteredTextListBoxModel; |
|
41 |
|
42 // CLASS DECLARATION |
|
43 /** |
|
44 * CLmkByCategoryContainer container control class. |
|
45 * |
|
46 */ |
|
47 class CLmkByCategoryContainer : public CLmkLbWithFilterContainer |
|
48 { |
|
49 public: // Constructors and destructor |
|
50 /** |
|
51 * Two-phased constructor |
|
52 * @param aKeyProcessor |
|
53 * @param aParent |
|
54 * @param aRect A rectangle for drawing. |
|
55 * @return The newly created object. |
|
56 */ |
|
57 |
|
58 // For landscape Support |
|
59 |
|
60 static CLmkByCategoryContainer* NewL( MLmkKeyProcessor& aKeyProcessor, |
|
61 MObjectProvider* aParent, |
|
62 const TRect& aRect, |
|
63 CAknView &aView); |
|
64 |
|
65 /** |
|
66 * Destructor. |
|
67 */ |
|
68 ~CLmkByCategoryContainer(); |
|
69 |
|
70 // From CoeControl and for landscape support |
|
71 |
|
72 void HandleResourceChange( TInt aType ); |
|
73 |
|
74 protected: // From CLmkLbWithFilterContainer |
|
75 void SetupTitlePaneL(); |
|
76 void SetupSelectorAndListL( CPosLandmarkDatabase& aDb, |
|
77 CLmkSender& aSender ); |
|
78 void SetupNaviPaneL(); |
|
79 |
|
80 public: // New function |
|
81 TInt GetCurrentCategoryId(); |
|
82 |
|
83 private: |
|
84 /** |
|
85 * C++ default constructor. |
|
86 * @param aKeyProcessor |
|
87 * @return newly instantiated object |
|
88 */ |
|
89 CLmkByCategoryContainer( MLmkKeyProcessor& aKeyProcessor, CAknView& aView ); |
|
90 |
|
91 void FocusChanged(TDrawNow aDrawNow); |
|
92 |
|
93 private://from MLmkMskObserver |
|
94 |
|
95 void UpdateMskContainerL(); |
|
96 |
|
97 private:// Data |
|
98 CAknView &iView; |
|
99 }; |
|
100 |
|
101 #endif // CLMKBYCATEGORYCONTAINER_H |
|
102 |
|
103 // End of File |