1612 User::Leave(KErrNotFound); |
1612 User::Leave(KErrNotFound); |
1613 } |
1613 } |
1614 |
1614 |
1615 TAspParam param(iApplicationId, iSyncSession); |
1615 TAspParam param(iApplicationId, iSyncSession); |
1616 CAspProfile* profile = CAspProfile::NewLC(param); |
1616 CAspProfile* profile = CAspProfile::NewLC(param); |
1617 profile->OpenL(iCurrentProfileId, CAspProfile::EOpenRead, |
1617 profile->OpenL(iCurrentProfileId, CAspProfile::EOpenReadWrite, |
1618 CAspProfile::EAllProperties); |
1618 CAspProfile::EAllProperties); |
1619 |
1619 |
1620 |
1620 |
1621 TInt mandatoryConnectionData = CAspProfile::CheckMandatoryConnData(profile); |
1621 TInt mandatoryConnectionData = CAspProfile::CheckMandatoryConnData(profile); |
1622 CleanupStack::PopAndDestroy(profile); |
1622 iContentList->SetProfile(profile); |
1623 |
|
1624 TInt contentCount = 0; |
1623 TInt contentCount = 0; |
1625 TInt mandatoryContentData = iContentList->CheckMandatoryDataL(contentCount); |
1624 TInt mandatoryContentData = iContentList->CheckMandatoryDataL(contentCount); |
1626 |
1625 iContentList->SetProfile(NULL); |
|
1626 CleanupStack::PopAndDestroy(profile); |
|
1627 |
1627 if (mandatoryConnectionData != EMandatoryOk) |
1628 if (mandatoryConnectionData != EMandatoryOk) |
1628 { |
1629 { |
1629 return mandatoryConnectionData; |
1630 return mandatoryConnectionData; |
1630 } |
1631 } |
1631 |
1632 |