omadm/omadmextensions/adapters/syncmldm12/src/NSmlDmSettingsAdapter12.cpp
branchRCL_3
changeset 12 4699373c9af8
parent 2 a5fecba4b1e4
child 23 c4687ff85147
equal deleted inserted replaced
11:8033f508353e 12:4699373c9af8
  3898 //-------------------------------------------------------------------
  3898 //-------------------------------------------------------------------
  3899 
  3899 
  3900 TInt CNSmlDMSettingsAdapter12::ConstructTreeL(const TDesC8& aURI)
  3900 TInt CNSmlDMSettingsAdapter12::ConstructTreeL(const TDesC8& aURI)
  3901 {
  3901 {
  3902 		TInt profileID = KErrNotFound;
  3902 		TInt profileID = KErrNotFound;
       
  3903 		_LIT8( KNSmlDMIdZero,			"DMAcc/DMId000" );
       
  3904 		TBuf8<20> zeroURI; // DMAcc/DMIdnnn , nnn = profileid
       
  3905 		zeroURI.Append( KNSmlDMIdZero );
       
  3906 		HBufC8* ismapInfo = iCallBack->GetLuidAllocL(zeroURI);
       
  3907 		if (ismapInfo->Length() != 0) // Tree is already constructrd, no need to proceed.
       
  3908 		{
       
  3909 			delete ismapInfo;
       
  3910 			return profileID;
       
  3911 		}
  3903 	  if( iSyncSessionOpen == EFalse )
  3912 	  if( iSyncSessionOpen == EFalse )
  3904     {
  3913     {
  3905     	iSyncSession.OpenL();
  3914     	iSyncSession.OpenL();
  3906       iSyncSessionOpen = ETrue;
  3915       iSyncSessionOpen = ETrue;
  3907     }
  3916     }