omads/omadsappui/AspSyncUtil/src/AspSettingDialog.cpp
changeset 1 95fdac6ccb5c
parent 0 dab8a81a92de
child 10 b922b9936679
equal deleted inserted replaced
0:dab8a81a92de 1:95fdac6ccb5c
  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 		
  2404 	{
  2405 	{
  2405 	   if( AknLayoutUtils::PenEnabled() )  
  2406 	   if( AknLayoutUtils::PenEnabled() )  
  2406 	   {
  2407 	   {
  2407 	   	 switch(aEventType)
  2408 	   	 switch(aEventType)
  2408 		{
  2409 		{
  2409 			case EEventItemClicked :
  2410 			case EEventItemSingleClicked :
  2410 			     HandleOKL();
  2411 			     HandleOKL();
  2411 			     break;
  2412 			     break;
  2412 			default:
  2413 			default:
  2413 			     break;
  2414 			     break;
  2414 		}
  2415 		}