|
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 SYNCFWCUSTOMIZERSETTINGITEMLIST_H |
|
19 #define SYNCFWCUSTOMIZERSETTINGITEMLIST_H |
|
20 |
|
21 #include <aknsettingitemlist.h> |
|
22 |
|
23 class MEikCommandObserver; |
|
24 class TSyncFwCustomizerSettingItemListSettings; |
|
25 class CRepository; |
|
26 |
|
27 /** |
|
28 * @class CSyncFwCustomizerSettingItemList SyncFwCustomizerSettingItemList.h |
|
29 */ |
|
30 class CSyncFwCustomizerSettingItemList : public CAknSettingItemList |
|
31 { |
|
32 public: // constructors and destructor |
|
33 |
|
34 CSyncFwCustomizerSettingItemList( |
|
35 TSyncFwCustomizerSettingItemListSettings& settings, |
|
36 MEikCommandObserver* aCommandObserver, |
|
37 CRepository& aRepository ); |
|
38 virtual ~CSyncFwCustomizerSettingItemList(); |
|
39 |
|
40 public: |
|
41 |
|
42 // from CCoeControl |
|
43 void HandleResourceChange( TInt aType ); |
|
44 |
|
45 // overrides of CAknSettingItemList |
|
46 CAknSettingItem* CreateSettingItemL( TInt id ); |
|
47 void EditItemL( TInt aIndex, TBool aCalledFromMenu ); |
|
48 TKeyResponse OfferKeyEventL( |
|
49 const TKeyEvent& aKeyEvent, |
|
50 TEventCode aType ); |
|
51 |
|
52 public: |
|
53 // utility function for menu |
|
54 void ChangeSelectedItemL(); |
|
55 void ResetSelectedItemL(); |
|
56 void LoadSettingValuesL(); |
|
57 void SaveSettingValuesL(); |
|
58 |
|
59 private: |
|
60 // override of CAknSettingItemList |
|
61 void SizeChanged(); |
|
62 |
|
63 private: |
|
64 // current settings values |
|
65 TSyncFwCustomizerSettingItemListSettings& iSettings; |
|
66 MEikCommandObserver* iCommandObserver; |
|
67 CRepository& iRepository; |
|
68 }; |
|
69 |
|
70 #endif // SYNCFWCUSTOMIZERSETTINGITEMLIST_H |