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> |
|
23 #include "NSmlAlertQueue.h" |
21 #include "NSmlAlertQueue.h" |
24 #include "nsmldebug.h" |
22 #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 if(uiMode == ESilent) //silent |
77 static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy); |
78 { |
78 static _LIT_SECURITY_POLICY_C1(KAllowWriteDeviceDataPolicy, ECapabilityWriteDeviceData); |
79 static _LIT_SECURITY_POLICY_PASS(KAllowAllPolicy); |
79 RProperty::Define(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,RProperty::EInt,KAllowAllPolicy,KAllowWriteDeviceDataPolicy); |
80 static _LIT_SECURITY_POLICY_C1(KAllowWriteDeviceDataPolicy, ECapabilityWriteDeviceData); |
80 RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,KErrNone); |
81 RProperty::Define(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,RProperty::EInt,KAllowAllPolicy,KAllowWriteDeviceDataPolicy); |
81 |
82 TInt r2=RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,ESilent); |
82 if(uiMode == ESilent) //silent |
83 DBG_FILE_CODE( r2, _S8("CNSmlDMAlertParser11::ParseMessageL() KNSmlDMSilentJob set error code") ); |
83 { |
84 } |
84 TInt r2=RProperty::Set(KPSUidNSmlSOSServerKey,KNSmlDMSilentJob,ESilent); |
|
85 DBG_FILE_CODE( r2, _S8("CNSmlDMAlertParser11::ParseMessageL() KNSmlDMSilentJob set error code") ); |
|
86 } |
85 iAlertInfo.SetUimode(uiMode); |
87 iAlertInfo.SetUimode(uiMode); |
86 } |
88 } |
87 if (uiMode == 0) |
89 if (uiMode == 0) |
88 { |
90 { |
89 uiMode = CSmlAlertInfo::ECreateJob; |
91 uiMode = CSmlAlertInfo::ECreateJob; |