|
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: Slider Settings for MPSettingsSliderSettingItem.h* |
|
15 */ |
|
16 |
|
17 |
|
18 // Version : %version: 3 % |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef CMPSettingsSliderSettingItem_H |
|
24 #define CMPSettingsSliderSettingItem_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <aknsettingitemlist.h> |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CMPSettingsSliderSettingItem class derived from CAknSliderSettingItem. |
|
33 * |
|
34 * Overwrites functions SettingTextL() and CreateBitmapL() in order to enable displaying |
|
35 * textual current value instead of a bitmap in the settings item list. Should not be |
|
36 * further derived. |
|
37 * |
|
38 * @lib MediaSettings.app |
|
39 * @since 2.0 |
|
40 */ |
|
41 class CMPSettingsSliderSettingItem : public CAknSliderSettingItem |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * C++ default constructor. |
|
47 */ |
|
48 CMPSettingsSliderSettingItem(TInt aIdentifier, TInt& aExternalSliderValue, |
|
49 TInt aResource, TBool aBareFigure = ETrue); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CMPSettingsSliderSettingItem(); |
|
55 |
|
56 public: |
|
57 |
|
58 /** |
|
59 * From CAknSettingItem, obtains the current value's setting text. |
|
60 * @since 1.0 |
|
61 * @return Reference to descriptor with the text. |
|
62 */ |
|
63 const TDesC& SettingTextL(); |
|
64 |
|
65 protected: |
|
66 |
|
67 /** |
|
68 * From CAknSliderSettingItem |
|
69 */ |
|
70 CAknSettingPage* CreateSettingPageL(); |
|
71 |
|
72 /** |
|
73 * From CAknSliderSettingItem |
|
74 */ |
|
75 CFbsBitmap* CreateBitmapL(); |
|
76 |
|
77 private: // Data |
|
78 HBufC* iSettingText; |
|
79 TInt iResource; |
|
80 TBool iBareFigure; |
|
81 }; |
|
82 |
|
83 #endif // CMPSettingsSliderSettingItem_H |
|
84 |
|
85 // End of File |
|
86 |