voipplugins/sipconnectionprovider/src/scpprofilehandler.cpp
branchRCL_3
changeset 12 876a3df1f464
parent 10 ed1e38b404e5
equal deleted inserted replaced
11:6134b5029079 12:876a3df1f464
   157         {
   157         {
   158         sipConnectionCreated = ETrue;
   158         sipConnectionCreated = ETrue;
   159         TRAP( result, sipConnection = CreateSipConnectionL( aProfileId ) );
   159         TRAP( result, sipConnection = CreateSipConnectionL( aProfileId ) );
   160         }
   160         }
   161 
   161 
   162     if( result == KErrNone )
   162     if( result == KErrNone && sipConnection )
   163         {
   163         {
   164         sipConnection->GetState( aState, aError );
   164         sipConnection->GetState( aState, aError );
   165         }
   165         }
   166 
   166 
   167     if( sipConnectionCreated )
   167     if( sipConnectionCreated )
   331                    aProfileId );
   331                    aProfileId );
   332 
   332 
   333     TInt ret = ( KErrNotFound );
   333     TInt ret = ( KErrNotFound );
   334     CScpSipConnection* sipConnection( NULL );
   334     CScpSipConnection* sipConnection( NULL );
   335     
   335     
   336     sipConnection =  GetSipConnection( aProfileId );
   336     sipConnection = GetSipConnection( aProfileId );
   337     
   337     
   338     if ( sipConnection )
   338     if ( sipConnection )
   339         {
   339         {
   340         TInt index = iSipConnections.Find( sipConnection );
   340         TInt index = iSipConnections.Find( sipConnection );
   341         iSipConnections.Remove( index );
   341         iSipConnections.Remove( index );