1 /* |
|
2 * Copyright (c) 2008 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: Setting item class for 3D settings. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPROFILE3DSETTINGITEM_H |
|
21 #define CPROFILE3DSETTINGITEM_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknsettingitemlist.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CAknSettingPage; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * Setting item class for 3D settings. |
|
32 * CProfile3dSettingItem extends CAknEnumeratedTextPopupSettingItem |
|
33 * in order to launch CProfile3dSettingPage |
|
34 * instead of CAknPopupSettingPage. |
|
35 * |
|
36 * @lib ProfileSettingsView.lib |
|
37 * @since 5.0 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CProfile3dSettingItem ) : public CAknEnumeratedTextPopupSettingItem |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * C++ constructor. |
|
45 * @param aIdentifier Setting item identifier. |
|
46 * @param aRingingVolume Ringing volume. |
|
47 * @param aRingingTone Ringing tone. |
|
48 * @param aRingingType Ringing type. |
|
49 * @param aVibratingAlert Vibrating alert. |
|
50 * @param aVolume Volume. |
|
51 * @param a3DEffectOrEcho 3D effect/echo |
|
52 */ |
|
53 CProfile3dSettingItem( |
|
54 TInt aIdentifier, |
|
55 TInt& aValue, |
|
56 const TDesC& aRingingTone, |
|
57 const TInt& aRingingType, |
|
58 const TBool& aVibratingAlert, |
|
59 const TInt& aVolume, |
|
60 const TInt& a3DEffectOrEcho ); |
|
61 |
|
62 private: // Functions from base classes |
|
63 |
|
64 /** |
|
65 * From CAknEnumeratedTextPopupSettingItem |
|
66 */ |
|
67 void CompleteConstructionL(); |
|
68 |
|
69 /** |
|
70 * From CAknEnumeratedTextPopupSettingItem |
|
71 */ |
|
72 CAknSettingPage* CreateSettingPageL(); |
|
73 |
|
74 private: // Data |
|
75 |
|
76 // Ringing tone. |
|
77 const TDesC& iRingingTone; |
|
78 |
|
79 // Ringing type. |
|
80 const TInt& iRingingType; |
|
81 |
|
82 // Vibrating alert. |
|
83 const TBool& iVibratingAlert; |
|
84 |
|
85 // Volume. |
|
86 const TInt& iVolume; |
|
87 |
|
88 // 3D effect or echo |
|
89 const TInt& i3DEffectOrEcho; |
|
90 |
|
91 // Setting item identifier |
|
92 TInt iIdentifier; |
|
93 }; |
|
94 |
|
95 #endif // CPROFILE3DSETTINGITEM_H |
|
96 |
|
97 // End of File |
|