|
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 "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: Profile 3D tone settings implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CPROFILE3DTONESETTINGSIMPL_H |
|
21 #define __CPROFILE3DTONESETTINGSIMPL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <MProfile3DToneSettings.h> |
|
26 #include "MProfileSet3DToneSettings.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CRepository; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Profile extra tones implementation. |
|
35 * |
|
36 * @lib ProfileEng.lib |
|
37 * @since 3.1 |
|
38 */ |
|
39 NONSHARABLE_CLASS(CProfile3DToneSettingsImpl) : public CBase, |
|
40 public MProfile3DToneSettings, |
|
41 public MProfileSet3DToneSettings |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CProfile3DToneSettingsImpl* NewL(); |
|
49 static CProfile3DToneSettingsImpl* NewL( |
|
50 const MProfile3DToneSettings& aProfile3DToneSettings ); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CProfile3DToneSettingsImpl(); |
|
56 |
|
57 public: // New functions |
|
58 |
|
59 /** |
|
60 * Internalize data from the central repository. |
|
61 * @since 3.1 |
|
62 * @param aCenRep Central Repository object to read the settings |
|
63 * @param aProfileId the id of the profile to be internalized |
|
64 */ |
|
65 void InternalizeL( CRepository& aCenRep, TInt aProfileId ); |
|
66 |
|
67 /** |
|
68 * Externalize data to Central Repository. |
|
69 * @since 3.1 |
|
70 * @param aCenRep Central Repository object to write the settings |
|
71 */ |
|
72 void ExternalizeL( CRepository& aCenRep, TInt aProfileId ) const; |
|
73 |
|
74 public: // Functions from base classes |
|
75 |
|
76 /** |
|
77 * From MProfile3DToneSettings. |
|
78 */ |
|
79 TProfile3DToneEffect Effect() const; |
|
80 |
|
81 /** |
|
82 * From MProfile3DToneSettings. |
|
83 */ |
|
84 TProfile3DToneEcho Echo() const; |
|
85 |
|
86 /** |
|
87 * From MProfileSet3DToneSettings. |
|
88 */ |
|
89 void SetEffect( TProfile3DToneEffect aEffect ); |
|
90 |
|
91 /** |
|
92 * From MProfileSet3DToneSettings. |
|
93 */ |
|
94 void SetEcho( TProfile3DToneEcho aEcho ); |
|
95 |
|
96 private: // Data |
|
97 |
|
98 // 3D effect |
|
99 TProfile3DToneEffect iEffect; |
|
100 |
|
101 // 3D echo |
|
102 TProfile3DToneEcho iEcho; |
|
103 }; |
|
104 |
|
105 #endif // __CPROFILE3DTONESETTINGSIMPL_H |
|
106 |
|
107 // End of File |
|
108 |
|
109 |