bearermanagement/S60MCPR/src/s60mcpr.cpp
branchRCL_3
changeset 12 ea6e024ea6f9
parent 3 f7816ffc66ed
child 13 68f0c7cd80ec
equal deleted inserted replaced
8:2e6c4614c58e 12:ea6e024ea6f9
   396             if ( ServiceProvider() && 
   396             if ( ServiceProvider() && 
   397                     (((RMetaServiceProviderInterface*)ServiceProvider())->ProviderInfo().APId() == notification.iInfo.iIap ||
   397                     (((RMetaServiceProviderInterface*)ServiceProvider())->ProviderInfo().APId() == notification.iInfo.iIap ||
   398                     notification.iInfo.iIap == 0 )) 
   398                     notification.iInfo.iIap == 0 )) 
   399                 {
   399                 {
   400                 S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification IAP %d",(TInt*)this,notification.iInfo.iIap);
   400                 S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification IAP %d",(TInt*)this,notification.iInfo.iIap);
   401 
   401                 PostToClients<TDefaultClientMatchPolicy>( TNodeCtxId( 0, Id() ),
   402                 //TODO migrate to use MCPR's TStop and vertical msg down. Not supported at the moment.
   402                                                           TCFServiceProvider::TStop( KErrDisconnected ).CRef(),
   403                 /*PostToClients<TDefaultClientMatchPolicy>( TNodeCtxId( 0, Id() ),
   403                                                           TClientType( TCFClientType::EServProvider) );
   404                                                           TCFServiceProvider::TStop( KErrCancel ).CRef(),
       
   405                                                           TClientType( TCFClientType::EData) );*/
       
   406                 }
   404                 }
   407 #ifdef _DEBUG
   405 #ifdef _DEBUG
   408             else
   406             else
   409                 {
   407                 {
   410                 S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification NO MATCH! IAP %d",(TInt*)this,notification.iInfo.iIap);
   408                 S60MCPRLOGSTRING2("S60MCPR<%x>::PolicyNotification() EMPMStopIAPNotification NO MATCH! IAP %d",(TInt*)this,notification.iInfo.iIap);
   462 void CS60MetaConnectionProvider::StorePolicyNotification( TMpmNotification& aNotification )
   460 void CS60MetaConnectionProvider::StorePolicyNotification( TMpmNotification& aNotification )
   463     {
   461     {
   464     // Store PolicyNotification
   462     // Store PolicyNotification
   465     // This could happen if PolicyServer sends notification too early.
   463     // This could happen if PolicyServer sends notification too early.
   466     //
   464     //
   467     S60MCPRLOGSTRING1("S60MCPR<%x>::StorePolicyNotification()",(TInt*)this);
       
   468     if ( iPendingNotification.Length() == 0 )
   465     if ( iPendingNotification.Length() == 0 )
   469         {
   466         {
   470         S60MCPRLOGSTRING1("S60MCPR<%x>::StorePolicyNotification() iPendingNotification.Length() == 0",(TInt*)this);
   467         S60MCPRLOGSTRING1("S60MCPR<%x>::StorePolicyNotification() iPendingNotification.Length() == 0",(TInt*)this);
   471         Mem::Copy((TAny*)iPendingNotification.Ptr(), &aNotification, KMpmMessageLength);
   468         Mem::Copy((TAny*)iPendingNotification.Ptr(), &aNotification, KMpmMessageLength);
   472         S60MCPRLOGSTRING1("S60MCPR<%x>::StorePolicyNotification() Mem::Copy",(TInt*)this);
       
   473         iPendingNotification.SetLength( KMpmMessageLength );
   469         iPendingNotification.SetLength( KMpmMessageLength );
   474         S60MCPRLOGSTRING1("S60MCPR<%x>::StorePolicyNotification() iPendingNotification.SetLength",(TInt*)this);
       
   475         }
   470         }
   476 #ifdef _DEBUG
   471 #ifdef _DEBUG
   477     else
   472     else
   478         {
   473         {
   479         S60MCPRLOGSTRING2("S60MCPR<%x>::StorePolicyNotification() Notification already exists",
   474         S60MCPRLOGSTRING2("S60MCPR<%x>::StorePolicyNotification() Notification already exists",