bearermanagement/S60MCPR/src/s60mcpr.cpp
branchRCL_3
changeset 13 68f0c7cd80ec
parent 12 ea6e024ea6f9
child 62 bb1f80fb7db2
equal deleted inserted replaced
12:ea6e024ea6f9 13:68f0c7cd80ec
   298                 static_cast<TMpmNotificationPrefIAPAvailable&>(
   298                 static_cast<TMpmNotificationPrefIAPAvailable&>(
   299                              const_cast<TMpmNotification&>( aNotification ) );
   299                              const_cast<TMpmNotification&>( aNotification ) );
   300 
   300 
   301             //HandlePreferredIAPAvailable( const_cast<TMpmNotificationPrefIAPAvailable&>( notification ) );
   301             //HandlePreferredIAPAvailable( const_cast<TMpmNotificationPrefIAPAvailable&>( notification ) );
   302 
   302 
   303             // Check if the TPrefIAPNotifInfo contains new or old IAP. 
   303             S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMPreferredIAPAvailable IAP %d",(TInt*)this,notification.iNewIapId);
   304             //
   304 
   305             if ( ServiceProvider() &&
   305 
   306                  ((RMetaServiceProviderInterface*)ServiceProvider())->ProviderInfo().APId() != notification.iNewIapId )
   306             // Store PolicyNotification
   307                 {
   307             // This could happen if PolicyServer sends notification too early.
   308                 S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMPreferredIAPAvailable IAP %d",(TInt*)this,notification.iNewIapId);
   308             //
   309 
   309             StorePolicyNotification( aNotification );
   310                 // Store PolicyNotification
   310             
   311                 // This could happen if PolicyServer sends notification too early.
   311             // Send preferred carrier message into meshmachine.
   312                 //
   312             //
   313                 StorePolicyNotification( aNotification );
   313             RNodeInterface ni;
   314                 
   314             ni.OpenPostMessageClose( NodeId(), 
   315                 // Send preferred carrier message into meshmachine.
   315                                      NodeId(), 
   316                 //
   316                                      TCFS60MCPRMessage::TMPMPreferredCarrierAvailableMsg( (TAny*)&notification ).CRef() );
   317                 RNodeInterface ni;
   317 
   318                 ni.OpenPostMessageClose( NodeId(), 
       
   319                                          NodeId(), 
       
   320                                          TCFS60MCPRMessage::TMPMPreferredCarrierAvailableMsg( (TAny*)&notification ).CRef() );
       
   321                 }
       
   322 #ifdef _DEBUG
       
   323             else
       
   324                 {
       
   325                 S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMPreferredIAPAvailable SAME IAP %d",(TInt*)this,notification.iNewIapId );
       
   326                 }
       
   327 #endif
       
   328             break;
   318             break;
   329             }
   319             }
   330         case EMPMMobilityErrorNotification:
   320         case EMPMMobilityErrorNotification:
   331             {
   321             {
   332             TMpmNotificationError& notification = 
   322             TMpmNotificationError& notification =