139 TInt value( 0 ); |
139 TInt value( 0 ); |
140 User::LeaveIfError( |
140 User::LeaveIfError( |
141 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngRingingType, |
141 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngRingingType, |
142 aProfileId ), value ) ); |
142 aProfileId ), value ) ); |
143 iProfileToneSettings.iRingingType = TProfileRingingType( value ); |
143 iProfileToneSettings.iRingingType = TProfileRingingType( value ); |
|
144 |
|
145 //Since 10.1, check if silence mode |
|
146 User::LeaveIfError( |
|
147 aCenRep.Get( KProEngSilenceMode , value) ); |
|
148 if ( value ) |
|
149 { |
|
150 iProfileToneSettings.iRingingType = EProfileRingingTypeSilent; |
|
151 } |
|
152 |
144 User::LeaveIfError( |
153 User::LeaveIfError( |
145 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngKeypadVolume, |
154 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngKeypadVolume, |
146 aProfileId ), value ) ); |
155 aProfileId ), value ) ); |
147 iProfileToneSettings.iKeypadVolume = TProfileKeypadVolume( value ); |
156 iProfileToneSettings.iKeypadVolume = TProfileKeypadVolume( value ); |
148 /* |
157 /* |
149 * User::LeaveIfError( |
158 * User::LeaveIfError( |
150 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngRingingVolume, |
159 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngRingingVolume, |
151 aProfileId ), iProfileToneSettings.iRingingVolume ) ); |
160 aProfileId ), iProfileToneSettings.iRingingVolume ) ); |
152 */ |
161 */ |
153 |
162 |
154 //Only master volume used. |
163 //Since 10.1, Only master volume used. |
155 User::LeaveIfError( |
164 User::LeaveIfError( |
156 aCenRep.Get( KProEngMasterVolume , iProfileToneSettings.iRingingVolume ) ); |
165 aCenRep.Get( KProEngMasterVolume , iProfileToneSettings.iRingingVolume ) ); |
157 |
166 |
158 |
167 |
159 /* |
168 /* |
160 User::LeaveIfError( |
169 User::LeaveIfError( |
161 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngVibra, |
170 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngVibra, |
162 aProfileId ), iProfileToneSettings.iVibratingAlert ) ); |
171 aProfileId ), iProfileToneSettings.iVibratingAlert ) ); |
163 */ |
172 */ |
164 |
173 |
165 //Only master vibra used |
174 //Since 10.1,Only master vibra used |
166 User::LeaveIfError( |
175 User::LeaveIfError( |
167 aCenRep.Get( KProEngMasterVibra, iProfileToneSettings.iVibratingAlert ) ); |
176 aCenRep.Get( KProEngMasterVibra, iProfileToneSettings.iVibratingAlert ) ); |
168 |
177 |
169 User::LeaveIfError( |
178 User::LeaveIfError( |
170 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngWarnAndGameTones, |
179 aCenRep.Get( ProfileEngUtils::ResolveKey( KProEngWarnAndGameTones, |