diff -r 489cf6208544 -r 95d45f234cf3 bearermanagement/mpm/src/mpmserver.cpp --- a/bearermanagement/mpm/src/mpmserver.cpp Thu May 27 13:17:01 2010 +0300 +++ b/bearermanagement/mpm/src/mpmserver.cpp Wed Jun 23 18:39:24 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -34,12 +34,9 @@ #include "mpmlogger.h" #include "mpmdtmwatcher.h" #include "mpmroamingwatcher.h" -#include "mpmdisconnectdlg.h" #include "mpmconfirmdlgroaming.h" #include "mpmconfirmdlgstarting.h" -#include "mpmdefaultconnection.h" #include "mpmcommsdataccess.h" -#include "mpmwlanquerydialog.h" #include "mpmprivatecrkeys.h" #include "mpmcsidwatcher.h" #include "mpmdatausagewatcher.h" @@ -86,11 +83,8 @@ iPacketServLoaded( EFalse ), iDtmWatcher( NULL ), iWLANScanRequired( EFalse ), - iDisconnectQueue( NULL ), iRoamingQueue( NULL ), iStartingQueue( NULL ), - iWlanQueryQueue( NULL ), - iDefaultConnection( NULL ), iConnectionCounter( 0 ), iOfflineMode( ECoreAppUIsNetworkConnectionAllowed ) { @@ -153,9 +147,6 @@ iRoamingWatcher = CMPMRoamingWatcher::NewL(iMobilePhone); iCommsDatAccess = CMPMCommsDatAccess::NewL( ); - - iDisconnectQueue = new ( ELeave ) CArrayPtrFlat( KGranularity ); - iDisconnectQueue->Reset(); iRoamingQueue = new ( ELeave ) CArrayPtrFlat( KGranularity ); iRoamingQueue->Reset(); @@ -163,11 +154,6 @@ iStartingQueue = new ( ELeave ) CArrayPtrFlat( KGranularity ); iStartingQueue->Reset(); - iWlanQueryQueue = new ( ELeave ) CArrayPtrFlat( KGranularity ); - iWlanQueryQueue->Reset(); - - iDefaultConnection = CMPMDefaultConnection::NewL( this ); - // Create central repository watcher and start it iMpmCsIdWatcher = CMpmCsIdWatcher::NewL(); iMpmCsIdWatcher->StartL(); @@ -235,12 +221,6 @@ iRoamingToWlanPeriodic->Cancel(); delete iRoamingToWlanPeriodic; } - if ( iDisconnectQueue ) - { - iDisconnectQueue->ResetAndDestroy(); - } - delete iDisconnectQueue; - if ( iRoamingQueue ) { iRoamingQueue->ResetAndDestroy(); @@ -253,12 +233,6 @@ } delete iStartingQueue; - while ( iWlanQueryQueue && iWlanQueryQueue->Count() > 0 ) - { - iWlanQueryQueue->Delete( 0 ); - } - delete iWlanQueryQueue; - delete iEvents; for ( TInt i = 0; i < iBlackListIdList.Count(); i++ ) @@ -281,8 +255,6 @@ iMobilePhone.Close(); iTelServer.Close(); - delete iDefaultConnection; - delete iMpmCsIdWatcher; delete iMpmDataUsageWatcher; @@ -859,6 +831,11 @@ TInt index = iSessions.Find( aSession ); if ( index != KErrNotFound ) { + if ( Events() ) + { + // Cancel WLAN scan request if one exists + TRAP_IGNORE( Events()->CancelScanL( iSessions[index] ) ) + } iSessions.Remove( index ); } } @@ -1366,18 +1343,6 @@ #endif // _DEBUG } - -// ----------------------------------------------------------------------------- -// CMPMServer::DefaultConnection -// ----------------------------------------------------------------------------- -// -CMPMDefaultConnection* CMPMServer::DefaultConnection() - { - MPMLOGSTRING( "CMPMServer::DefaultConnection:\ - Default Connection" ) - return iDefaultConnection; - } - // ----------------------------------------------------------------------------- // CMPMServer::StartedConnectionExists // ----------------------------------------------------------------------------- @@ -1412,22 +1377,6 @@ } // ----------------------------------------------------------------------------- -// CMPMServer::AppendWlanQueryQueueL -// ----------------------------------------------------------------------------- -// -void CMPMServer::AppendWlanQueryQueueL( CMPMWlanQueryDialog* aDlg ) - { - if( aDlg ) - { - iWlanQueryQueue->AppendL( aDlg ); - } - else - { - MPMLOGSTRING( "CMPMServer::AppendWlanQueryQueueL argument NULL, Error" ) - } - } - -// ----------------------------------------------------------------------------- // CMPMServer::StopConnections // ----------------------------------------------------------------------------- //