syncmlfw/common/alertqueue/src/NSmlDMAlertParser11.cpp
branchRCL_3
changeset 9 57a65a3a658c
parent 0 b497e44ab2fc
child 25 b183ec05bd8c
equal deleted inserted replaced
5:3f7d9dbe57c8 9:57a65a3a658c
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #include <centralrepository.h>
    19 #include <centralrepository.h>
    20 #include <DevManInternalCRKeys.h>
    20 #include <DevManInternalCRKeys.h>
       
    21 #include <e32property.h>
       
    22 #include <nsmldmconst.h>
    21 #include "NSmlAlertQueue.h"
    23 #include "NSmlAlertQueue.h"
    22 #include "nsmldebug.h" 
    24 #include "nsmldebug.h" 
    23 // ---------------------------------------------------------
    25 // ---------------------------------------------------------
    24 // CNSmlDSAlertParser11(CSmlAlertInfo& aAlertInfo, CSyncMLHistoryPushMsg& aHistoryInfo )
    26 // CNSmlDSAlertParser11(CSmlAlertInfo& aAlertInfo, CSyncMLHistoryPushMsg& aHistoryInfo )
    25 // Returns pointer to the buffer
    27 // Returns pointer to the buffer
    70     centrep->Get( KDevManSANUIBitVariation, SanSupport );
    72     centrep->Get( KDevManSANUIBitVariation, SanSupport );
    71        }
    73        }
    72     delete centrep;
    74     delete centrep;
    73 	if( SanSupport == 1 )
    75 	if( SanSupport == 1 )
    74    	{
    76    	{
       
    77 	if(uiMode == ESilent) //silent
       
    78 	    {
       
    79         static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy);
       
    80         static _LIT_SECURITY_POLICY_C1(KAllowWriteDeviceDataPolicy, ECapabilityWriteDeviceData);
       
    81         RProperty::Define(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,RProperty::EInt,KAllowAllPolicy,KAllowWriteDeviceDataPolicy);
       
    82         TInt r2=RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,ESilent);
       
    83         DBG_FILE_CODE( r2, _S8("CNSmlDMAlertParser11::ParseMessageL() KNSmlDMSilentJob set error code") );
       
    84 	    }
    75     iAlertInfo.SetUimode(uiMode);
    85     iAlertInfo.SetUimode(uiMode);
    76    	}	
    86    	}	
    77 	if (uiMode == 0)
    87 	if (uiMode == 0)
    78 		{
    88 		{
    79 		uiMode = CSmlAlertInfo::ECreateJob;
    89 		uiMode = CSmlAlertInfo::ECreateJob;