equal
deleted
inserted
replaced
379 case EMPMStopIAPNotification: |
379 case EMPMStopIAPNotification: |
380 { |
380 { |
381 TMpmNotificationStopIAP& notification = |
381 TMpmNotificationStopIAP& notification = |
382 static_cast<TMpmNotificationStopIAP&>( const_cast<TMpmNotification&>( aNotification ) ); |
382 static_cast<TMpmNotificationStopIAP&>( const_cast<TMpmNotification&>( aNotification ) ); |
383 |
383 |
384 // Allow TStop message only when ServiceProvider exists and the IAP matches or is unspecified. |
384 S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification IAP %d",(TInt*)this, notification.iInfo.iIap); |
385 // |
385 |
386 if ( ServiceProvider() && |
386 // Send stop notification into meshmachine. |
387 (((RMetaServiceProviderInterface*)ServiceProvider())->ProviderInfo().APId() == notification.iInfo.iIap || |
387 // |
388 notification.iInfo.iIap == 0 )) |
388 RNodeInterface ni; |
389 { |
389 ni.OpenPostMessageClose( NodeId(), |
390 S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification IAP %d",(TInt*)this,notification.iInfo.iIap); |
390 NodeId(), |
391 PostToClients<TDefaultClientMatchPolicy>( TNodeCtxId( 0, Id() ), |
391 TCFS60MCPRMessage::TMPMStopIAPNotificationMsg( notification.iInfo.iIap ).CRef() ); |
392 TCFServiceProvider::TStop( KErrDisconnected ).CRef(), |
|
393 TClientType( TCFClientType::EServProvider) ); |
|
394 } |
|
395 #ifdef _DEBUG |
|
396 else |
|
397 { |
|
398 S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification NO MATCH! IAP %d",(TInt*)this,notification.iInfo.iIap); |
|
399 } |
|
400 #endif |
|
401 break; |
392 break; |
402 } |
393 } |
403 default: |
394 default: |
404 { |
395 { |
405 #ifdef _DEBUG |
396 #ifdef _DEBUG |