1 /* |
|
2 * Copyright (c) 2004 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 * Declaration of class CWlanSettingsUiBinaryPopupSettingItem. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef WLAN_SETTINGS_UI_BINARY_POPUP_SETTING_ITEM_H |
|
22 #define WLAN_SETTINGS_UI_BINARY_POPUP_SETTING_ITEM_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <aknsettingitemlist.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 class CWlanSettingsUiBinaryPopupSettingItem; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Interface to observe change in internal value of an |
|
36 * CAknBinaryPopupSettingItem. |
|
37 */ |
|
38 NONSHARABLE_CLASS( MWlanSettingsUiBinaryPopupSettingObserver ) |
|
39 { |
|
40 |
|
41 public: // New methods |
|
42 |
|
43 /** |
|
44 * Binary setting internal value has changed. |
|
45 * @param aItem Changed item. |
|
46 * @param aNewInternalVal New internal value. |
|
47 */ |
|
48 virtual void BinarySettingChangedL |
|
49 ( |
|
50 CWlanSettingsUiBinaryPopupSettingItem* aItem, |
|
51 TBool aNewInternalVal |
|
52 ) = 0; |
|
53 |
|
54 }; |
|
55 |
|
56 /** |
|
57 * Binary setting item. |
|
58 * Added functionality: notifies observer about setting change. |
|
59 */ |
|
60 NONSHARABLE_CLASS( CWlanSettingsUiBinaryPopupSettingItem ) |
|
61 : public CAknBinaryPopupSettingItem |
|
62 { |
|
63 |
|
64 public: // Constructors |
|
65 |
|
66 /** |
|
67 * Constructor. |
|
68 * @param aObserver observer reference |
|
69 * @param aResourceId Resource id. |
|
70 * @param aValue Value. |
|
71 */ |
|
72 CWlanSettingsUiBinaryPopupSettingItem |
|
73 ( |
|
74 MWlanSettingsUiBinaryPopupSettingObserver& aObserver, |
|
75 TInt aResourceId, |
|
76 TBool& aValue |
|
77 ); |
|
78 |
|
79 private: // From CAknSettingItem & base classes |
|
80 |
|
81 /** |
|
82 * Edit item. |
|
83 * @param aCalledFromMenu ETrue if called from menu. |
|
84 */ |
|
85 void EditItemL( TBool aCalledFromMenu ); |
|
86 |
|
87 private: // Data |
|
88 |
|
89 MWlanSettingsUiBinaryPopupSettingObserver& iObserver; ///< Observer. |
|
90 |
|
91 }; |
|
92 |
|
93 #endif |
|