email/imap4mtm/imapprotocolcontroller/src/cimapprotocolcontroller.cpp
changeset 23 238255e8b033
parent 0 72b543305e3a
child 47 5b14749788d7
child 54 fa1df4b99609
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
  1414 
  1414 
  1415 	switch (iCurrentOp)
  1415 	switch (iCurrentOp)
  1416 		{
  1416 		{
  1417 	case EConnect:
  1417 	case EConnect:
  1418 		{
  1418 		{
  1419 		TRAP_IGNORE(MarkOnOrOfflineL(ETrue));
       
  1420 
       
  1421 		// Collect the final connect progress information		
  1419 		// Collect the final connect progress information		
  1422 		iImapSessionManager->Progress(iProgress.iGenericProgress);
  1420 		iImapSessionManager->Progress(iProgress.iGenericProgress);
  1423 
  1421 
  1424 		// Set last socket activity timeout to iMtmData1. This is used by Imcm.
  1422 		// Set last socket activity timeout to iMtmData1. This is used by Imcm.
  1425 		User::LeaveIfError( iEntry.SetEntry( iServiceId ) );
  1423 		User::LeaveIfError( iEntry.SetEntry( iServiceId ) );
  1426 		TMsvEntry entry=iEntry.Entry();
  1424 		TMsvEntry entry=iEntry.Entry();
  1427 		entry.SetMtmData1(iImapSessionManager->LastSocketActivityTimeout());
  1425 		entry.SetMtmData1(iImapSessionManager->LastSocketActivityTimeout());
  1428 		User::LeaveIfError( iEntry.ChangeEntry( entry ) );
  1426 		User::LeaveIfError( iEntry.ChangeEntry( entry ) );
       
  1427 
       
  1428 		TRAP_IGNORE(MarkOnOrOfflineL(ETrue));
  1429 				
  1429 				
  1430 		// Create an IMAP IDLE controller
  1430 		// Create an IMAP IDLE controller
  1431 		delete iImapIdleController;
  1431 		delete iImapIdleController;
  1432 		iImapIdleController=NULL;
  1432 		iImapIdleController=NULL;
  1433 		iImapIdleController = CImapIdleController::NewL(*this, iImapSessionArray[0], *iImapSyncManager, iEntry, *iImapSettings, *iImapMailStore);
  1433 		iImapIdleController = CImapIdleController::NewL(*this, iImapSessionArray[0], *iImapSyncManager, iEntry, *iImapSettings, *iImapMailStore);