|
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 extra tones implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CPROFILEEXTRASETTINGSIMPL_H |
|
21 #define __CPROFILEEXTRASETTINGSIMPL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <MProfileExtraSettings.h> |
|
26 #include "MProfileSetExtraSettings.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CRepository; |
|
30 class CProfilePttSettingsImpl; |
|
31 class CProfileFeedbackSettingsImpl; |
|
32 class CProfile3DToneSettingsImpl; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * Profile extra tones implementation. |
|
38 * |
|
39 * @lib ?library |
|
40 * @since 2.0 |
|
41 */ |
|
42 NONSHARABLE_CLASS(CProfileExtraSettingsImpl) : public CBase, |
|
43 public MProfileExtraSettings, |
|
44 public MProfileSetExtraSettings |
|
45 { |
|
46 public: // Constructors and destructor |
|
47 |
|
48 /** |
|
49 * Two-phased constructor. |
|
50 */ |
|
51 static CProfileExtraSettingsImpl* NewL(); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CProfileExtraSettingsImpl(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 /** |
|
61 * Internalize data from the central repository. |
|
62 * @since 3.0 |
|
63 * @param aCenRep Central Repository object to read the settings |
|
64 * @param aProfileId the id of the profile to be internalized |
|
65 */ |
|
66 void InternalizeL( CRepository& aCenRep, TInt aProfileId ); |
|
67 |
|
68 /** |
|
69 * Externalize data to Central Repository. |
|
70 * @since 3.0 |
|
71 * @param aCenRep Central Repository object to write the settings |
|
72 */ |
|
73 void ExternalizeL( CRepository& aCenRep, TInt aProfileId ) const; |
|
74 |
|
75 public: // Functions from base classes |
|
76 |
|
77 /** |
|
78 * From MProfileExtraSettings. |
|
79 */ |
|
80 virtual const MProfilePttSettings& ProfilePttSettings() const; |
|
81 |
|
82 /** |
|
83 * From MProfileExtraSettings. |
|
84 */ |
|
85 virtual const MProfileFeedbackSettings& ProfileFeedbackSettings() const; |
|
86 |
|
87 /** |
|
88 * From MProfileExtraSettings. |
|
89 */ |
|
90 virtual const MProfile3DToneSettings& Profile3DToneSettings() const; |
|
91 |
|
92 /** |
|
93 * From MProfileSetExtraSettings. |
|
94 */ |
|
95 virtual MProfileSetPttSettings& ProfileSetPttSettings() const; |
|
96 |
|
97 /** |
|
98 * From MProfileSetExtraSettings. |
|
99 */ |
|
100 virtual MProfileSetFeedbackSettings& ProfileSetFeedbackSettings() const; |
|
101 |
|
102 /** |
|
103 * From MProfileSetExtraSettings. |
|
104 */ |
|
105 virtual MProfileSet3DToneSettings& ProfileSet3DToneSettings() const; |
|
106 |
|
107 private: |
|
108 |
|
109 /** |
|
110 * By default Symbian 2nd phase constructor is private. |
|
111 */ |
|
112 void ConstructL(); |
|
113 |
|
114 private: // Data |
|
115 |
|
116 // Own: Push to talk settings |
|
117 CProfilePttSettingsImpl* iPttSettings; |
|
118 |
|
119 // Own: feedback settings |
|
120 CProfileFeedbackSettingsImpl* iFeedbackSettings; |
|
121 |
|
122 // Own: 3D tone settings |
|
123 CProfile3DToneSettingsImpl* i3DToneSettings; |
|
124 |
|
125 }; |
|
126 |
|
127 #endif // __CPROFILEEXTRASETTINGSIMPL_H |
|
128 |
|
129 // End of File |
|
130 |