profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfilePlayingVolumeSettingPage.cpp
equal
deleted
inserted
replaced
203 // CProfilePlayingVolumeSettingPage::CheckRingingToneTypeL |
203 // CProfilePlayingVolumeSettingPage::CheckRingingToneTypeL |
204 // ----------------------------------------------------------------------------- |
204 // ----------------------------------------------------------------------------- |
205 // |
205 // |
206 void CProfilePlayingVolumeSettingPage::CheckRingingToneTypeL() |
206 void CProfilePlayingVolumeSettingPage::CheckRingingToneTypeL() |
207 { |
207 { |
|
208 // If the preview tone is not NULL, delete it. |
|
209 if ( iPreviewTone ) |
|
210 { |
|
211 delete iPreviewTone; |
|
212 iPreviewTone = NULL; |
|
213 } |
|
214 |
208 // Get default tone from cenrep |
215 // Get default tone from cenrep |
209 TFileName defaultTone; |
216 TFileName defaultTone; |
210 CRepository* cenrep = CRepository::NewL( KCRUidProfileEngine ); |
217 CRepository* cenrep = CRepository::NewL( KCRUidProfileEngine ); |
211 CleanupStack::PushL( cenrep ); |
218 CleanupStack::PushL( cenrep ); |
212 User::LeaveIfError( cenrep->Get( KProEngDefaultRingingTone, defaultTone ) ); |
219 User::LeaveIfError( cenrep->Get( KProEngDefaultRingingTone, defaultTone ) ); |