syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp
branchRCL_3
changeset 25 b183ec05bd8c
parent 9 57a65a3a658c
child 26 19bba8228ff0
--- a/syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp	Thu Aug 19 10:44:50 2010 +0300
+++ b/syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp	Tue Aug 31 16:04:06 2010 +0300
@@ -18,10 +18,10 @@
 
 #include <centralrepository.h>
 #include <DevManInternalCRKeys.h>
-#include <e32property.h>
-#include <nsmldmconst.h>
 #include "NSmlAlertQueue.h"
 #include "nsmldebug.h" 
+#include <nsmldmconst.h>
+#include <e32property.h>
 // ---------------------------------------------------------
 // CNSmlDSAlertParser11(CSmlAlertInfo& aAlertInfo, CSyncMLHistoryPushMsg& aHistoryInfo )
 // Returns pointer to the buffer
@@ -74,14 +74,16 @@
     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") );
-	    }
+	    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)