--- a/profilesservices/ProfileEngine/EngSrc/CProfileImpl.cpp Fri Apr 16 11:40:46 2010 +0800
+++ b/profilesservices/ProfileEngine/EngSrc/CProfileImpl.cpp Fri May 14 13:29:47 2010 +0800
@@ -235,6 +235,16 @@
//
TBool CProfileImpl::IsSilent() const
{
+ //Since 10.1, firstly check maste silence mode
+ TInt silenceMode( 0 );
+ CRepository* cenrep = CRepository::NewLC( KCRUidProfileEngine );
+ cenrep->Get( KProEngSilenceMode , silenceMode );
+ CleanupStack::PopAndDestroy( cenrep );
+ if ( silenceMode )
+ {
+ return ETrue;
+ }
+
TProfileRingingType ringType( iProfileTones->ToneSettings().iRingingType );
if ( ringType == EProfileRingingTypeSilent )
{