|
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: |
|
15 * Settings list for Phonebook. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPbkSettingsList_H__ |
|
21 #define __CPbkSettingsList_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknsettingitemlist.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CPbkNameOrderSettingItem; |
|
28 class CPbkContactEngine; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Settings list listbox. |
|
34 */ |
|
35 NONSHARABLE_CLASS(CPbkSettingsList) : |
|
36 public CAknSettingItemList |
|
37 { |
|
38 public: // interface |
|
39 /** |
|
40 * Creates a new instance of this class. |
|
41 */ |
|
42 static CPbkSettingsList* NewL(CPbkContactEngine& aEngine); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 ~CPbkSettingsList(); |
|
48 |
|
49 /** |
|
50 * Returns the value of the desired setting item aSettingId. |
|
51 */ |
|
52 TInt SettingValueL(TInt aSettingId); |
|
53 |
|
54 /** |
|
55 * Changes the value of the desired setting item aSettingId. |
|
56 */ |
|
57 void ChangeValueL(TInt aSettingId); |
|
58 |
|
59 private: // from CAknSettingItemList |
|
60 CAknSettingItem* CreateSettingItemL(TInt aSettingId); |
|
61 |
|
62 private: // from CCoeControl |
|
63 virtual void SizeChanged(); |
|
64 |
|
65 private: // implementation |
|
66 CPbkSettingsList(CPbkContactEngine& aEngine); |
|
67 void ConstructL(); |
|
68 |
|
69 private: // data |
|
70 /// Own: default value for name order setting |
|
71 TInt iDefaultNameOrderValue; |
|
72 /// Ref: name order setting item |
|
73 CPbkNameOrderSettingItem* iNameOrderSettingItem; |
|
74 /// Ref: phonebook engine |
|
75 CPbkContactEngine& iEngine; |
|
76 }; |
|
77 |
|
78 #endif // __CPbkSettingsList_H__ |
|
79 |
|
80 // End of File |