syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp
branchRCL_3
changeset 9 57a65a3a658c
parent 0 b497e44ab2fc
child 61 b183ec05bd8c
--- a/syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp	Tue Feb 02 00:44:00 2010 +0200
+++ b/syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp	Fri Feb 19 23:41:35 2010 +0200
@@ -18,6 +18,8 @@
 
 #include <centralrepository.h>
 #include <DevManInternalCRKeys.h>
+#include <e32property.h>
+#include <nsmldmconst.h>
 #include "NSmlAlertQueue.h"
 #include "nsmldebug.h" 
 // ---------------------------------------------------------
@@ -72,6 +74,14 @@
     delete centrep;
 	if( SanSupport == 1 )
    	{
+	if(uiMode == ESilent) //silent
+	    {
+        static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy);
+        static _LIT_SECURITY_POLICY_C1(KAllowWriteDeviceDataPolicy, ECapabilityWriteDeviceData);
+        RProperty::Define(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,RProperty::EInt,KAllowAllPolicy,KAllowWriteDeviceDataPolicy);
+        TInt r2=RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,ESilent);
+        DBG_FILE_CODE( r2, _S8("CNSmlDMAlertParser11::ParseMessageL() KNSmlDMSilentJob set error code") );
+	    }
     iAlertInfo.SetUimode(uiMode);
    	}	
 	if (uiMode == 0)