equal
deleted
inserted
replaced
233 // (other items were commented in a header). |
233 // (other items were commented in a header). |
234 // ----------------------------------------------------------------------------- |
234 // ----------------------------------------------------------------------------- |
235 // |
235 // |
236 TBool CProfileImpl::IsSilent() const |
236 TBool CProfileImpl::IsSilent() const |
237 { |
237 { |
|
238 //Since 10.1, firstly check maste silence mode |
|
239 TInt silenceMode( 0 ); |
|
240 CRepository* cenrep = CRepository::NewLC( KCRUidProfileEngine ); |
|
241 cenrep->Get( KProEngSilenceMode , silenceMode ); |
|
242 CleanupStack::PopAndDestroy( cenrep ); |
|
243 if ( silenceMode ) |
|
244 { |
|
245 return ETrue; |
|
246 } |
|
247 |
238 TProfileRingingType ringType( iProfileTones->ToneSettings().iRingingType ); |
248 TProfileRingingType ringType( iProfileTones->ToneSettings().iRingingType ); |
239 if ( ringType == EProfileRingingTypeSilent ) |
249 if ( ringType == EProfileRingingTypeSilent ) |
240 { |
250 { |
241 // If ringing type is silent, the whole profile is considered as silent: |
251 // If ringing type is silent, the whole profile is considered as silent: |
242 return ETrue; |
252 return ETrue; |