--- a/syncmlfw/dm/dmnetworkmon/src/DMNetworkMon.cpp Tue Aug 31 16:04:06 2010 +0300
+++ b/syncmlfw/dm/dmnetworkmon/src/DMNetworkMon.cpp Wed Sep 01 12:27:42 2010 +0100
@@ -17,7 +17,8 @@
// USER INCLUDES
#include "DMNetworkMon.h"
-
+#include <e32property.h>
+#include <nsmldmconst.h>
#include <SyncMLClient.h>
#include <SyncMLClientDM.h>
#include <nsmldmauthinfo.h>
@@ -480,20 +481,25 @@
RSyncMLDevManJob dmJob;
- TInt IAPID = -2;
+ TInt IAPID = -1;
TBuf<10> genalertap,temp;
genalertap.Zero();
temp.Zero();
genalertap.Append(KNSmlDMJobIapPrefix);
temp.Num(iapid);//Decimal Iap
if( temp.Length() <= KNSmlHalfTransportIdLength &&
- iapid >= -2)
+ iapid > KErrNotFound)
{
genalertap.AppendFill('0',KNSmlHalfTransportIdLength-temp.Length());
genalertap.Append(temp);
TLex gavalue(genalertap);
gavalue.Val(IAPID);
LOGSTRING("DM JOB CREATED");
+ 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);
+ LOGSTRING2( "CDMNetworkMon::RunError() KNSmlDMSilentJob get error code = %i", r2);
TRAPD(err, dmJob.CreateL( iSyncSession, ProfileId, IAPID));
LOGSTRING("DM JOB CREATED END");
if(err!=KErrNone)