syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp
changeset 44 39aa16f3fdc2
parent 0 b497e44ab2fc
child 55 1c556dee8eb1
--- a/syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp	Wed Jun 23 19:10:17 2010 +0300
+++ b/syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp	Tue Jul 06 15:14:24 2010 +0300
@@ -20,6 +20,8 @@
 #include <DevManInternalCRKeys.h>
 #include "NSmlAlertQueue.h"
 #include "nsmldebug.h" 
+#include <nsmldmconst.h>
+#include <e32Property.h>
 // ---------------------------------------------------------
 // CNSmlDSAlertParser11(CSmlAlertInfo& aAlertInfo, CSyncMLHistoryPushMsg& aHistoryInfo )
 // Returns pointer to the buffer
@@ -72,6 +74,16 @@
     delete centrep;
 	if( SanSupport == 1 )
    	{
+	    static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy);
+	    static _LIT_SECURITY_POLICY_C1(KAllowWriteDeviceDataPolicy, ECapabilityWriteDeviceData);
+		RProperty::Define(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,RProperty::EInt,KAllowAllPolicy,KAllowWriteDeviceDataPolicy);
+		RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,KErrNone);  
+		
+	    if(uiMode == ESilent) //silent
+	        {
+	        TInt r2=RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,ESilent);
+	        DBG_FILE_CODE( r2, _S8("CNSmlDMAlertParser11::ParseMessageL() KNSmlDMSilentJob set error code") );
+	        }
     iAlertInfo.SetUimode(uiMode);
    	}	
 	if (uiMode == 0)