startupservices/startupanimation/sanimctrl/src/sanimstartupctrl.cpp
changeset 81 676b6116ca93
parent 35 13fd6fd25fe7
--- a/startupservices/startupanimation/sanimctrl/src/sanimstartupctrl.cpp	Tue Oct 12 17:17:12 2010 +0300
+++ b/startupservices/startupanimation/sanimctrl/src/sanimstartupctrl.cpp	Wed Oct 20 17:03:03 2010 +0300
@@ -26,6 +26,9 @@
 #include <ProfileEngineSDKCRKeys.h>
 #include "sanimengine.h"
 #include <SecondaryDisplay/SecondaryDisplayStartupAPI.h>
+#include <MProfileEngineExtended2.h>
+
+
 
 #include "sanimstartupctrl.h"
 #include "trace.h"
@@ -440,9 +443,12 @@
 
     if ( volume > 0 )
         {
-        TBool isSilent = ETrue;
-        TRAPD_ERR( errorCode, isSilent = IsSilentL() );
-        ERROR( errorCode, "Failed to silent info" );
+		// Replacement of silent profile => Silence Mode
+		MProfileEngineExtended2 *profileEngine = ::CreateProfileEngineExtended2L();
+		//CleanupReleasePushL(profileEngine);
+		// 0: On 1: Off
+		TBool isSilent = profileEngine->SilenceModeL();
+		profileEngine->Release();
         if ( isSilent )
             {
             volume = 0;