bearermanagement/mpm/src/mpmconnmonevents.cpp
branchRCL_3
changeset 15 4dc3bb0099b0
parent 12 ea6e024ea6f9
child 36 04408506c6e0
equal deleted inserted replaced
13:68f0c7cd80ec 15:4dc3bb0099b0
   459 
   459 
   460 // -----------------------------------------------------------------------------
   460 // -----------------------------------------------------------------------------
   461 // CMPMConnMonEvents::IapAvailabilityChange
   461 // CMPMConnMonEvents::IapAvailabilityChange
   462 // -----------------------------------------------------------------------------
   462 // -----------------------------------------------------------------------------
   463 // 
   463 // 
   464 void CMPMConnMonEvents::IapAvailabilityChange()
   464 void CMPMConnMonEvents::IapAvailabilityChange( const TPrefIAPNotifCaller aCaller )
   465     {
   465     {
   466     if ( ( iAvailableIAPs.Count() > 0 ) && 
   466     if ( ( iAvailableIAPs.Count() > 0 ) && 
   467          !DiscardAvailabilityNotification() )
   467          !DiscardAvailabilityNotification() )
   468         {
   468         {
   469         // Remove temporary blacklistings as fresh availability 
   469         // Remove temporary blacklistings as fresh availability 
   473         
   473         
   474         // Send preferred IAP notifications, but DO NOT LEAVE 
   474         // Send preferred IAP notifications, but DO NOT LEAVE 
   475         // or Connection Monitor CConnMonEventHandler::RunL() 
   475         // or Connection Monitor CConnMonEventHandler::RunL() 
   476         // will also leave, which will make mpmserver.exe CRASH.
   476         // will also leave, which will make mpmserver.exe CRASH.
   477         // 
   477         // 
   478         TRAP_IGNORE( iMyServer.NotifyBMPrefIapL( iAvailableIAPs ) )
   478         TRAP_IGNORE( iMyServer.NotifyBMPrefIapL( iAvailableIAPs, aCaller ) )
   479         }
   479         }
   480     else
   480     else
   481         {
   481         {
   482         MPMLOGSTRING2( "CMPMConnMonEvents::EventL - IAPs count: %d", 
   482         MPMLOGSTRING2( "CMPMConnMonEvents::EventL - IAPs count: %d", 
   483             iAvailableIAPs.Count() )
   483             iAvailableIAPs.Count() )
   532             eventIap = static_cast<const CConnMonIapAvailabilityChange*>( 
   532             eventIap = static_cast<const CConnMonIapAvailabilityChange*>( 
   533                                                          &aConnMonEvent );
   533                                                          &aConnMonEvent );
   534 
   534 
   535             iAvailableIAPs = eventIap->IapAvailability();
   535             iAvailableIAPs = eventIap->IapAvailability();
   536             UpdateIAPRefreshTime();
   536             UpdateIAPRefreshTime();
   537             IapAvailabilityChange();
   537             IapAvailabilityChange( EConnMonEvent );
   538             
   538             
   539             TRAPD( err, iMyServer.UpdateSessionConnectionDlgL() )
   539             TRAPD( err, iMyServer.UpdateSessionConnectionDlgL() )
   540             if( err != KErrNone )
   540             if( err != KErrNone )
   541                 {
   541                 {
   542                 MPMLOGSTRING2( "CMPMConnMonEvents::EventL UpdateSessionConnectionDlgL \
   542                 MPMLOGSTRING2( "CMPMConnMonEvents::EventL UpdateSessionConnectionDlgL \