1 /* |
|
2 * Copyright (c) 2009 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 #ifndef ATCONFIGURATIONAPPGUISETTINGITEMLIST_H |
|
19 #define ATCONFIGURATIONAPPGUISETTINGITEMLIST_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <aknsettingitemlist.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class MEikCommandObserver; |
|
26 class CATConfigurationAppGuiSettingItemListSettings; |
|
27 |
|
28 /** |
|
29 * @class CATConfigurationAppGuiSettingItemList |
|
30 */ |
|
31 class CATConfigurationAppGuiSettingItemList : public CAknSettingItemList |
|
32 { |
|
33 public: // constructors and destructor |
|
34 /** |
|
35 * C++ default constructor. |
|
36 * @param aSettings setting list |
|
37 * @param aCommandObserver command observer |
|
38 */ |
|
39 CATConfigurationAppGuiSettingItemList( |
|
40 CATConfigurationAppGuiSettingItemListSettings& aSettings, |
|
41 MEikCommandObserver* aCommandObserver ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CATConfigurationAppGuiSettingItemList(); |
|
47 |
|
48 public: |
|
49 |
|
50 /** |
|
51 * From CCoeControl. |
|
52 */ |
|
53 void HandleResourceChange( TInt aType ); |
|
54 |
|
55 /** |
|
56 * From CAknSettingItemList. |
|
57 */ |
|
58 CAknSettingItem* CreateSettingItemL( TInt id ); |
|
59 |
|
60 /** |
|
61 * From CAknSettingItemList. |
|
62 */ |
|
63 void EditItemL( TInt aIndex, TBool aCalledFromMenu ); |
|
64 |
|
65 /** |
|
66 * From CCoeControl. |
|
67 */ |
|
68 TKeyResponse OfferKeyEventL( |
|
69 const TKeyEvent& aKeyEvent, |
|
70 TEventCode aType ); |
|
71 |
|
72 public: |
|
73 /** |
|
74 * Handles changing a setting value from the menu. |
|
75 */ |
|
76 void ChangeSelectedItemL(); |
|
77 |
|
78 /** |
|
79 * Loads stored setting values. |
|
80 */ |
|
81 void LoadSettingValuesL(); |
|
82 |
|
83 /** |
|
84 * Stores settings. |
|
85 */ |
|
86 void SaveSettingValuesL(); |
|
87 |
|
88 private: |
|
89 /** |
|
90 * From CAknSettingItemList. |
|
91 */ |
|
92 void SizeChanged(); |
|
93 |
|
94 private: |
|
95 // Current settings values |
|
96 CATConfigurationAppGuiSettingItemListSettings& iSettings; |
|
97 // Command observer |
|
98 MEikCommandObserver* iCommandObserver; |
|
99 |
|
100 }; |
|
101 #endif // ATCONFIGURATIONAPPGUISETTINGITEMLIST_H |
|