|
1 /* |
|
2 * Copyright (c) 2005 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: Blid application settings view's container |
|
15 * class definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef BLIDSETTINGSCONTAINER_H |
|
20 #define BLIDSETTINGSCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "CBlidBaseContainer.h" |
|
24 #include "CBlidBaseView.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CAknNavigationDecorator; |
|
28 class CAknSettingStyleListBox; |
|
29 class CBlidSettingsView; |
|
30 class MBlidSettings; |
|
31 class CBlidEng; |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CBlidSettingsContainer container control class. |
|
36 * |
|
37 */ |
|
38 class CBlidSettingsContainer : public CBlidBaseContainer |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor |
|
44 * @param aKeyProcessor A pointer to MKeyProcessor |
|
45 * @param aParent A pointer to MObjectProvider |
|
46 * @param aRect A rectangle for drawing. |
|
47 * @param aSettingsModel A pointer to Settings model |
|
48 * @return The newly created object. |
|
49 */ |
|
50 static CBlidSettingsContainer* NewL( MKeyProcessor& aKeyProcessor, |
|
51 MObjectProvider* aParent, |
|
52 const TRect& aRect, |
|
53 MBlidSettings* aSettingsModel, |
|
54 CBlidBaseView& aView); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 ~CBlidSettingsContainer(); |
|
60 |
|
61 private: |
|
62 /** |
|
63 * By default Symbian 2nd phase constructor is private. |
|
64 * @param aRect Frame rectangle for container. |
|
65 * @param aLocSettingsModel A pointer to settings model |
|
66 */ |
|
67 void ConstructL(const TRect& aRect, MBlidSettings* aSettingsModel); |
|
68 |
|
69 /** |
|
70 * C++ default constructor. |
|
71 * @param aKeyProcessor A pointer to MKeyProcessor |
|
72 */ |
|
73 CBlidSettingsContainer( MKeyProcessor& aKeyProcessor, CBlidBaseView& aView ); |
|
74 |
|
75 public: // from CoeControl |
|
76 void FocusChanged(TDrawNow aDrawNow); |
|
77 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
78 TEventCode aType); |
|
79 |
|
80 public: // new functions |
|
81 /** |
|
82 * Returns the iListBox. |
|
83 * @return A pointer to settings listbox |
|
84 */ |
|
85 CAknSettingStyleListBox* ListBox() const; |
|
86 |
|
87 #ifdef RD_SCALABLE_UI_V2 |
|
88 /** |
|
89 * Sets listbox observer. |
|
90 * @param aObserver observer object. |
|
91 */ |
|
92 void SetListBoxObserver( MEikListBoxObserver* aObserver ); |
|
93 #endif // RD_SCALABLE_UI_V2 |
|
94 |
|
95 private: // From CCoeControl |
|
96 void SizeChanged(); |
|
97 TInt CountComponentControls() const; |
|
98 CCoeControl* ComponentControl(TInt aIndex) const; |
|
99 void HandleResourceChange(TInt aType); |
|
100 |
|
101 private: //data |
|
102 /// Own: Decorator class for navigation pane controls. |
|
103 CAknNavigationDecorator* iDecoratedTabGroup; |
|
104 |
|
105 /// Own: listbox |
|
106 CAknSettingStyleListBox* iListBox; |
|
107 |
|
108 CBlidBaseView& iView; |
|
109 }; |
|
110 |
|
111 #endif //BLIDSETTINGSCONTAINER_H |
|
112 |
|
113 // End of File |