startupservices/startupanimation/sanimctrl/src/sanimstartupctrl.cpp
changeset 81 676b6116ca93
parent 35 13fd6fd25fe7
equal deleted inserted replaced
78:175a0d824084 81:676b6116ca93
    24 #include <MediatorDomainUIDs.h>
    24 #include <MediatorDomainUIDs.h>
    25 #include <Profile.hrh>
    25 #include <Profile.hrh>
    26 #include <ProfileEngineSDKCRKeys.h>
    26 #include <ProfileEngineSDKCRKeys.h>
    27 #include "sanimengine.h"
    27 #include "sanimengine.h"
    28 #include <SecondaryDisplay/SecondaryDisplayStartupAPI.h>
    28 #include <SecondaryDisplay/SecondaryDisplayStartupAPI.h>
       
    29 #include <MProfileEngineExtended2.h>
       
    30 
       
    31 
    29 
    32 
    30 #include "sanimstartupctrl.h"
    33 #include "sanimstartupctrl.h"
    31 #include "trace.h"
    34 #include "trace.h"
    32 
    35 
    33 const TInt KMinVolume( 0 );  /** Minimum allowed volume level. */
    36 const TInt KMinVolume( 0 );  /** Minimum allowed volume level. */
   438     TInt errorCode = aRepository.Get( aKey, volume );
   441     TInt errorCode = aRepository.Get( aKey, volume );
   439     ERROR( errorCode, "Failed to get volume level from central repository" );
   442     ERROR( errorCode, "Failed to get volume level from central repository" );
   440 
   443 
   441     if ( volume > 0 )
   444     if ( volume > 0 )
   442         {
   445         {
   443         TBool isSilent = ETrue;
   446 		// Replacement of silent profile => Silence Mode
   444         TRAPD_ERR( errorCode, isSilent = IsSilentL() );
   447 		MProfileEngineExtended2 *profileEngine = ::CreateProfileEngineExtended2L();
   445         ERROR( errorCode, "Failed to silent info" );
   448 		//CleanupReleasePushL(profileEngine);
       
   449 		// 0: On 1: Off
       
   450 		TBool isSilent = profileEngine->SilenceModeL();
       
   451 		profileEngine->Release();
   446         if ( isSilent )
   452         if ( isSilent )
   447             {
   453             {
   448             volume = 0;
   454             volume = 0;
   449             }
   455             }
   450         }
   456         }