securitydialogs/Securitynotifier/Src/SecurityNotifier.cpp
changeset 19 098e361762d2
parent 14 b75757c81051
child 22 6b63ca65093a
equal deleted inserted replaced
17:8957df7b0072 19:098e361762d2
   226 void CSecurityNotifier::GetParamsL(const TDesC8& aBuffer, TInt aReturnVal, const RMessagePtr2& aMessage)
   226 void CSecurityNotifier::GetParamsL(const TDesC8& aBuffer, TInt aReturnVal, const RMessagePtr2& aMessage)
   227     {
   227     {
   228 	#if defined(_DEBUG)
   228 	#if defined(_DEBUG)
   229 	RDebug::Printf( "%s %s (%u) searching for autolock.exe =%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, 0x0 );
   229 	RDebug::Printf( "%s %s (%u) searching for autolock.exe =%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, 0x0 );
   230 	#endif
   230 	#endif
       
   231 	
       
   232    // Start Dirty and quick hack    
       
   233    #include <PSVariables.h>   // Property values
       
   234    #include <coreapplicationuisdomainpskeys.h>
       
   235    _LIT_SECURITY_POLICY_PASS(KReadPolicy);
       
   236    _LIT_SECURITY_POLICY_C1(KWritePolicy, ECapabilityWriteDeviceData);
       
   237    int ret = RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, RProperty::EInt, KReadPolicy, KWritePolicy);
       
   238    RDebug::Printf( "%s %s (%u) EAutolockOff=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, 1 );
       
   239    RProperty::Set(KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus, 1);
       
   240    // End Dirty and quick hack
       
   241 		
       
   242 	
   231 	TApaTaskList taskList( CCoeEnv::Static()->WsSession() );
   243 	TApaTaskList taskList( CCoeEnv::Static()->WsSession() );
   232 	const TUid KAutolockUid = { 0x100059B5 };
   244 	const TUid KAutolockUid = { 0x100059B5 };
   233 	TApaTask task( taskList.FindApp( KAutolockUid ) );
   245 	TApaTask task( taskList.FindApp( KAutolockUid ) );
   234 	if ( !task.Exists() )
   246 	if ( !task.Exists() )
   235 		{
   247 		{