profilesservices/ProfileEngine/EngSrc/CProfileImpl.cpp
changeset 37 940f6b67827d
parent 36 48848d132687
child 68 13e71d907dc3
--- 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 )
         {