|
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 // INCLUDES |
|
21 #include "CProfileExtraSettingsImpl.h" |
|
22 #include "ProfileEnginePrivateCRKeys.h" |
|
23 #include "ProfileEngUtils.h" |
|
24 #include "CProfilePttSettingsImpl.h" |
|
25 #include "CProfileFeedbackSettingsImpl.h" |
|
26 #include "CProfile3DToneSettingsImpl.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CRepository; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 CProfileExtraSettingsImpl* CProfileExtraSettingsImpl::NewL() |
|
34 { |
|
35 CProfileExtraSettingsImpl* self = new( ELeave ) CProfileExtraSettingsImpl; |
|
36 |
|
37 CleanupStack::PushL( self ); |
|
38 self->ConstructL(); |
|
39 CleanupStack::Pop(); |
|
40 |
|
41 return self; |
|
42 } |
|
43 |
|
44 CProfileExtraSettingsImpl::~CProfileExtraSettingsImpl() |
|
45 { |
|
46 delete iPttSettings; |
|
47 delete iFeedbackSettings; |
|
48 delete i3DToneSettings; |
|
49 } |
|
50 |
|
51 void CProfileExtraSettingsImpl::InternalizeL( CRepository& aCenRep, |
|
52 TInt aProfileId ) |
|
53 { |
|
54 iPttSettings->InternalizeL( aCenRep, aProfileId ); |
|
55 iFeedbackSettings->InternalizeL( aCenRep, aProfileId ); |
|
56 i3DToneSettings->InternalizeL( aCenRep, aProfileId ); |
|
57 } |
|
58 |
|
59 void CProfileExtraSettingsImpl::ExternalizeL( CRepository& aCenRep, |
|
60 TInt aProfileId ) const |
|
61 { |
|
62 iPttSettings->ExternalizeL( aCenRep, aProfileId ); |
|
63 iFeedbackSettings->ExternalizeL( aCenRep, aProfileId ); |
|
64 i3DToneSettings->ExternalizeL( aCenRep, aProfileId ); |
|
65 } |
|
66 |
|
67 const MProfilePttSettings& CProfileExtraSettingsImpl::ProfilePttSettings() const |
|
68 { |
|
69 return *iPttSettings; |
|
70 } |
|
71 |
|
72 MProfileSetPttSettings& CProfileExtraSettingsImpl::ProfileSetPttSettings() const |
|
73 { |
|
74 return *iPttSettings; |
|
75 } |
|
76 |
|
77 const MProfileFeedbackSettings& |
|
78 CProfileExtraSettingsImpl::ProfileFeedbackSettings() const |
|
79 { |
|
80 return *iFeedbackSettings; |
|
81 } |
|
82 |
|
83 MProfileSetFeedbackSettings& |
|
84 CProfileExtraSettingsImpl::ProfileSetFeedbackSettings() const |
|
85 { |
|
86 return *iFeedbackSettings; |
|
87 } |
|
88 |
|
89 const MProfile3DToneSettings& |
|
90 CProfileExtraSettingsImpl::Profile3DToneSettings() const |
|
91 { |
|
92 return *i3DToneSettings; |
|
93 } |
|
94 |
|
95 MProfileSet3DToneSettings& |
|
96 CProfileExtraSettingsImpl::ProfileSet3DToneSettings() const |
|
97 { |
|
98 return *i3DToneSettings; |
|
99 } |
|
100 |
|
101 void CProfileExtraSettingsImpl::ConstructL() |
|
102 { |
|
103 iPttSettings = CProfilePttSettingsImpl::NewL(); |
|
104 iFeedbackSettings = CProfileFeedbackSettingsImpl::NewL(); |
|
105 i3DToneSettings = CProfile3DToneSettingsImpl::NewL(); |
|
106 } |
|
107 |
|
108 // End of File |
|
109 |