email/pop3andsmtpmtm/smtpservermtm/src/IMSM.CPP
branchRCL_3
changeset 42 1367103c24e2
parent 0 72b543305e3a
child 53 696bfeff199e
equal deleted inserted replaced
33:94cccd85bd25 42:1367103c24e2
   789 The sending of all the emails has completed.
   789 The sending of all the emails has completed.
   790 Tidy up and complete the caller.
   790 Tidy up and complete the caller.
   791 */
   791 */
   792 void CMsgImOutboxSend::Complete(TInt status)
   792 void CMsgImOutboxSend::Complete(TInt status)
   793 	{
   793 	{
   794 	if (iState != EStateMobilityError)
   794     // sending of all the emails has completed, no need listen for Mobility Manager
   795 		{
   795 	delete iMobilityManager;
   796 		// Respond to any outstanding bearer mobility requests as we are about
   796     iMobilityManager=NULL;
   797 		// to exit and we don't need to hold up the migration.
   797 	
   798 		if (PreparingForMigration())
       
   799 			{
       
   800 			SignalMigrate();
       
   801 			}
       
   802 		else if (iMobilityOperation == EMobilityOperationMigrating &&
       
   803 		         iState == EStateConnectingSession)
       
   804 			{
       
   805 			if (iMobilityManager)
       
   806 				{
       
   807 				iMobilityManager->NewCarrierAccepted();
       
   808 				}
       
   809 			}
       
   810 		}
       
   811 
       
   812 	delete iSession;
   798 	delete iSession;
   813 	iSession = NULL;
   799 	iSession = NULL;
       
   800 	
   814 	delete iSessionManager;
   801 	delete iSessionManager;
   815 	iSessionManager = NULL;
   802 	iSessionManager = NULL;
   816 
   803 
   817 	iState = EStateIdle;
   804 	iState = EStateIdle;
   818 	iMobilityOperation = EMobilityOperationIdle;
   805 	iMobilityOperation = EMobilityOperationIdle;
  1222 		}
  1209 		}
  1223 #if (defined SYMBIAN_USER_PROMPT_SERVICE)		
  1210 #if (defined SYMBIAN_USER_PROMPT_SERVICE)		
  1224 	delete iWaiter;	
  1211 	delete iWaiter;	
  1225 #endif
  1212 #endif
  1226 
  1213 
       
  1214 	delete iMobilityManager;
  1227 	delete iSessionManager;
  1215 	delete iSessionManager;
  1228 	delete iMobilityManager;
       
  1229 	}
  1216 	}
  1230 
  1217 
  1231 CDesCArray& CMsgImOutboxSend::BccRcptArray()
  1218 CDesCArray& CMsgImOutboxSend::BccRcptArray()
  1232 	{
  1219 	{
  1233 	return *iBccRcptArray;
  1220 	return *iBccRcptArray;