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: Declaration of class CWlanSettingsUiScanIntervalSettingItem. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __WLAN_SETTINGS_UI_SCAN_INTERVAL_SETTING_ITEM_H__ |
|
20 #define __WLAN_SETTINGS_UI_SCAN_INTERVAL_SETTING_ITEM_H__ |
|
21 |
|
22 // System includes |
|
23 #include <aknsettingitemlist.h> |
|
24 |
|
25 |
|
26 /** |
|
27 * Specialized version of CAknEnumeratedTextPopupSettingItem class. |
|
28 * |
|
29 * @lib wlansettingsui.lib |
|
30 * @since S60 v5.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS(CWlanSettingsUiScanIntervalSettingItem) : |
|
33 public CAknEnumeratedTextPopupSettingItem |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Constructor |
|
39 * @param aResourceId Resource id for the parent class |
|
40 * @param aValue Value for the parent class |
|
41 */ |
|
42 CWlanSettingsUiScanIntervalSettingItem( |
|
43 TInt aResourceId, TInt &aListValue, TInt& aValue, |
|
44 CWlanSettingsUiModel* aModel ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CWlanSettingsUiScanIntervalSettingItem(); |
|
50 |
|
51 /** |
|
52 * From CAknEnumeratedTextPopupSettingItem |
|
53 * @return Setting item text (current value). |
|
54 */ |
|
55 const TDesC& SettingTextL(); |
|
56 |
|
57 /** |
|
58 * From CAknEnumeratedTextPopupSettingItem |
|
59 * @param aCalledFromMenu Ignored in this class. |
|
60 */ |
|
61 void EditItemL( TBool aCalledFromMenu ); |
|
62 |
|
63 /** |
|
64 * From CAknSettingItem |
|
65 * @param aSettingPage Pointer to setting page which has caused this callback. |
|
66 * @param aEventType Occurred setting page event type. |
|
67 */ |
|
68 void HandleSettingPageEventL( CAknSettingPage* aSettingPage, |
|
69 TAknSettingPageEvent aEventType ); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * Displays scan interval query |
|
75 */ |
|
76 TBool ShowScanIntervalQueryL(); |
|
77 |
|
78 /** |
|
79 * Shows an information note if user tries to select a non-allowed |
|
80 * value during full or partial PowerSave Mode. |
|
81 */ |
|
82 void ShowPowerSavingInfoNoteL(); |
|
83 |
|
84 private: // Data |
|
85 |
|
86 CWlanSettingsUiModel* iModel; |
|
87 RBuf iSettingText; |
|
88 TInt& iValue; |
|
89 CEikonEnv* iEnv; |
|
90 TBool iRevertBackToAutomaticScan; |
|
91 }; |
|
92 |
|
93 #endif // __WLAN_SETTINGS_UI_SCAN_INTERVAL_SETTING_ITEM_H__ |
|
94 //End of file |
|