1 /* |
|
2 * Copyright (c) 2006-2006 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CIRSETTINGSCONTAINER_H |
|
20 #define C_CIRSETTINGSCONTAINER_H |
|
21 |
|
22 //#include "vrcommonsettingscontainer.h" |
|
23 #include "ircommonsettingscontainer.h" |
|
24 |
|
25 class CIRSettingsView; |
|
26 |
|
27 // Need to be changed. |
|
28 |
|
29 /** |
|
30 * The container that holds all the setting items. |
|
31 */ |
|
32 NONSHARABLE_CLASS( CIRSettingsContainer ) : public CIRCommonSettingsContainer |
|
33 { |
|
34 public: // Methods |
|
35 |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 * |
|
39 * @param aModel The model that provides writing and reading of the settings. |
|
40 */ |
|
41 static CIRSettingsContainer* NewL(CIRSettingsView& aSettingsView); |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * |
|
46 * @param aModel The model that provides writing and reading of the settings. |
|
47 */ |
|
48 static CIRSettingsContainer* NewLC(CIRSettingsView& aSettingsView); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CIRSettingsContainer(); |
|
54 |
|
55 /** |
|
56 * Fades/unfades this container. |
|
57 * |
|
58 * @param aFaded ETrue if container is to be faded, otherwise EFalse |
|
59 */ |
|
60 void SetFaded(TBool aFaded) const; |
|
61 |
|
62 private: |
|
63 |
|
64 /** |
|
65 * Constructor. |
|
66 * |
|
67 * @param aModel The model that provides writing and reading of the settings. |
|
68 */ |
|
69 CIRSettingsContainer(CIRSettingsView& aSettingsView); |
|
70 |
|
71 /** |
|
72 * Second-phase constructor. |
|
73 */ |
|
74 void ConstructL(); |
|
75 |
|
76 // from base class CAknSettingItemList. |
|
77 void EditItemL( TInt aIndex, TBool aCalledFromMenu ); |
|
78 CAknSettingItem* CreateSettingItemL( TInt aSettingId ); |
|
79 |
|
80 // from base class CCoeControl |
|
81 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
|
82 |
|
83 private: |
|
84 CIRSettingsView& iSettingsView; |
|
85 }; |
|
86 |
|
87 #endif // C_CIRSETTINGSCONTAINER_H |
|