email/pop3andsmtpmtm/smtpservermtm/src/IMSM.CPP
changeset 52 12db4185673b
parent 0 72b543305e3a
child 76 60a8a215b0ec
equal deleted inserted replaced
44:36f374c67aa8 52:12db4185673b
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   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;
   814 	delete iSessionManager;
   800 	delete iSessionManager;
   815 	iSessionManager = NULL;
   801 	iSessionManager = NULL;
   816 
   802 
  1222 		}
  1208 		}
  1223 #if (defined SYMBIAN_USER_PROMPT_SERVICE)		
  1209 #if (defined SYMBIAN_USER_PROMPT_SERVICE)		
  1224 	delete iWaiter;	
  1210 	delete iWaiter;	
  1225 #endif
  1211 #endif
  1226 
  1212 
       
  1213 	delete iMobilityManager;
  1227 	delete iSessionManager;
  1214 	delete iSessionManager;
  1228 	delete iMobilityManager;
       
  1229 	}
  1215 	}
  1230 
  1216 
  1231 CDesCArray& CMsgImOutboxSend::BccRcptArray()
  1217 CDesCArray& CMsgImOutboxSend::BccRcptArray()
  1232 	{
  1218 	{
  1233 	return *iBccRcptArray;
  1219 	return *iBccRcptArray;