|
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 the License "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: CAknSettingItemList compliant setting item class for Advanced bandwidth settings.* |
|
15 */ |
|
16 |
|
17 |
|
18 // Version : %version: 3 % |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef CMPSETTADVANCEDBWSETTINGSITEM_H |
|
24 #define CMPSETTADVANCEDBWSETTINGSITEM_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <aknsettingitemlist.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CEikonEnv; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CMPSettingsAdvancedBwSettingItem class derived from |
|
36 * CAknEnumeratedTextPopupSettingItem. |
|
37 * CAknSettingItemList compliant setting item class for |
|
38 * Advanced bandwidth settings. |
|
39 * |
|
40 * @lib MediaSettings.app |
|
41 * @since 2.1 |
|
42 */ |
|
43 class CMPSettingsAdvancedBwSettingItem : public CAknEnumeratedTextPopupSettingItem |
|
44 { |
|
45 public: |
|
46 |
|
47 /** |
|
48 * C++ default constructor. |
|
49 * @param aIdentifier Setting item id. |
|
50 * @param aValueArray Array containing fixed bw values for the list. |
|
51 * @param aValue Reference to current bw value in bits per sec. |
|
52 * @param aListValue Reference to Setting page's list value. |
|
53 * @param aQueryRes Bw query resource. |
|
54 */ |
|
55 CMPSettingsAdvancedBwSettingItem(TInt aIdentifier, |
|
56 RArray<TInt>& aValueArray, |
|
57 TInt& aValue, |
|
58 TInt& aListValue, |
|
59 TInt aQueryRes); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 virtual ~CMPSettingsAdvancedBwSettingItem(); |
|
65 |
|
66 public: // From base classes |
|
67 |
|
68 /** |
|
69 * From MAknSettingPageObserver |
|
70 * @param aSettingPage Pointer to setting page which has caused this callback. |
|
71 * @param aEventType Occurred setting page event type. |
|
72 */ |
|
73 void HandleSettingPageEventL(CAknSettingPage* aSettingPage, |
|
74 TAknSettingPageEvent aEventType ); |
|
75 |
|
76 /** |
|
77 * From CAknSliderSettingItem |
|
78 * @return Setting item text (current value). |
|
79 */ |
|
80 const TDesC& SettingTextL(); |
|
81 |
|
82 /** |
|
83 * From CAknSliderSettingItem |
|
84 * This launches the setting page for popup list setting page |
|
85 * @param aCalledFromMenu - ignored in this class |
|
86 */ |
|
87 void EditItemL(TBool aCalledFromMenu); |
|
88 |
|
89 private: // From base classes |
|
90 |
|
91 /** |
|
92 * From CAknSettingItem |
|
93 */ |
|
94 void CompleteConstructionL(); |
|
95 |
|
96 private: // New |
|
97 |
|
98 /** |
|
99 * Displays bandwidth number query. |
|
100 */ |
|
101 void ShowAdvancedBwQueryL(); |
|
102 |
|
103 /** |
|
104 * Creates setting value text from aValue. |
|
105 */ |
|
106 HBufC* CreateValueTextL(TInt aValue); |
|
107 |
|
108 private: // Data |
|
109 HBufC* iSettingText; |
|
110 RArray<TInt>& iValueArray; |
|
111 TInt& iValue; |
|
112 TInt iQueryRes; |
|
113 CEikonEnv* iEnv; |
|
114 |
|
115 CArrayPtr<CAknEnumeratedText>* iEnumTextArray; |
|
116 }; |
|
117 |
|
118 #endif // CMPSETTADVANCEDBWSETTINGSITEM_H |
|
119 |
|
120 // End of File |