voipplugins/sipconnectionprovider/src/scpservicehandlerbase.cpp
branchRCL_3
changeset 12 876a3df1f464
parent 9 bddb6d4447db
child 14 be41ab7b952f
equal deleted inserted replaced
11:6134b5029079 12:876a3df1f464
   143             {
   143             {
   144             profileHandler.CancelRegistration( sipProfileId );
   144             profileHandler.CancelRegistration( sipProfileId );
   145             }
   145             }
   146         else
   146         else
   147             {
   147             {
   148             profileHandler.UnregisterProfile( sipProfileId );
   148             error = profileHandler.UnregisterProfile( sipProfileId );
       
   149             if ( KErrNotFound == error )
       
   150                 {
       
   151                 SCPLOGSTRING3(
       
   152                         "CScpServiceHandlerBase[0x%x]::DeregisterProfile - No profile with ID: %d",
       
   153                         this,
       
   154                         sipProfileId );
       
   155                 }
   149             }
   156             }
   150         }
   157         }
   151 
   158 
   152     StartForcedDisableTimer( CScpServiceHandlerBase::ForceSipProfileDisable );
   159     StartForcedDisableTimer( CScpServiceHandlerBase::ForceSipProfileDisable );
   153     }
   160     }
   191 void CScpServiceHandlerBase::HandleSipProfileForcedDisable()
   198 void CScpServiceHandlerBase::HandleSipProfileForcedDisable()
   192     {
   199     {
   193     SCPLOGSTRING2( "CScpServiceHandlerBase[0x%x]::HandleSipProfileForcedDisable",
   200     SCPLOGSTRING2( "CScpServiceHandlerBase[0x%x]::HandleSipProfileForcedDisable",
   194                    this );
   201                    this );
   195 
   202 
       
   203     CScpProfileHandler& profileHandler = iSubService.ProfileHandler();
       
   204     
       
   205     CScpSipConnection* sipConnection = 
       
   206         profileHandler.GetSipConnection( iSubService.SipProfileId() );
       
   207       
       
   208     if ( sipConnection )
       
   209         {
       
   210         sipConnection->ForceDisable();
       
   211         }
       
   212     
   196     HandleSipConnectionEvent( iSubService.SipProfileId(), EScpDeregistered );
   213     HandleSipConnectionEvent( iSubService.SipProfileId(), EScpDeregistered );
   197     }
   214     }
   198 
   215 
   199 // -----------------------------------------------------------------------------
   216 // -----------------------------------------------------------------------------
   200 // CScpServiceHandlerBase::ForceSipProfileDisable
   217 // CScpServiceHandlerBase::ForceSipProfileDisable