equal
deleted
inserted
replaced
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 } |