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 #include <nsmldmconst.h> |
|
24 #include <e32property.h> |
|
25 // --------------------------------------------------------- |
25 // --------------------------------------------------------- |
26 // CNSmlDSAlertParser11(CSmlAlertInfo& aAlertInfo, CSyncMLHistoryPushMsg& aHistoryInfo ) |
26 // CNSmlDSAlertParser11(CSmlAlertInfo& aAlertInfo, CSyncMLHistoryPushMsg& aHistoryInfo ) |
27 // Returns pointer to the buffer |
27 // Returns pointer to the buffer |
28 // --------------------------------------------------------- |
28 // --------------------------------------------------------- |
29 // |
29 // |
72 centrep->Get( KDevManSANUIBitVariation, SanSupport ); |
72 centrep->Get( KDevManSANUIBitVariation, SanSupport ); |
73 } |
73 } |
74 delete centrep; |
74 delete centrep; |
75 if( SanSupport == 1 ) |
75 if( SanSupport == 1 ) |
76 { |
76 { |
77 static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy); |
77 if(uiMode == ESilent) //silent |
78 static _LIT_SECURITY_POLICY_C1(KAllowWriteDeviceDataPolicy, ECapabilityWriteDeviceData); |
78 { |
79 RProperty::Define(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,RProperty::EInt,KAllowAllPolicy,KAllowWriteDeviceDataPolicy); |
79 static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy); |
80 RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,KErrNone); |
80 static _LIT_SECURITY_POLICY_C1(KAllowWriteDeviceDataPolicy, ECapabilityWriteDeviceData); |
81 |
81 RProperty::Define(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,RProperty::EInt,KAllowAllPolicy,KAllowWriteDeviceDataPolicy); |
82 if(uiMode == ESilent) //silent |
82 TInt r2=RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,ESilent); |
83 { |
83 DBG_FILE_CODE( r2, _S8("CNSmlDMAlertParser11::ParseMessageL() KNSmlDMSilentJob set error code") ); |
84 TInt r2=RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,ESilent); |
84 } |
85 DBG_FILE_CODE( r2, _S8("CNSmlDMAlertParser11::ParseMessageL() KNSmlDMSilentJob set error code") ); |
|
86 } |
|
87 iAlertInfo.SetUimode(uiMode); |
85 iAlertInfo.SetUimode(uiMode); |
88 } |
86 } |
89 if (uiMode == 0) |
87 if (uiMode == 0) |
90 { |
88 { |
91 uiMode = CSmlAlertInfo::ECreateJob; |
89 uiMode = CSmlAlertInfo::ECreateJob; |