connectionmonitoring/connmon/connectionmonitor/src/ConnMonIAP.cpp
changeset 44 a0c4ceac30d0
parent 20 9c97ad6591ae
child 52 bbe4544dfd31
equal deleted inserted replaced
41:bbb64eb3bdee 44:a0c4ceac30d0
  2977 
  2977 
  2978 // -----------------------------------------------------------------------------------
  2978 // -----------------------------------------------------------------------------------
  2979 // CConnMonIAP::GetDeleteNotifyStatus
  2979 // CConnMonIAP::GetDeleteNotifyStatus
  2980 // -----------------------------------------------------------------------------------
  2980 // -----------------------------------------------------------------------------------
  2981 //
  2981 //
  2982 TInt CConnMonIAP::GetDeleteNotifyStatus( TConnInfo& aConnection, TBool& aSent )
  2982 TInt CConnMonIAP::GetDeleteNotifyStatus( TConnInfo& aConnection )
  2983     {
  2983     {
  2984     TInt index( KErrNotFound );
  2984     TInt index( KErrNotFound );
  2985 
  2985 
  2986     if ( aConnection.iBearer >= EBearerExternalCSD )
  2986     if ( aConnection.iBearer >= EBearerExternalCSD )
  2987         {
  2987         {
  2995         return KErrNotFound;
  2995         return KErrNotFound;
  2996         }
  2996         }
  2997 
  2997 
  2998     aConnection.iConnectionId = iConnInfos[index].iConnectionId;
  2998     aConnection.iConnectionId = iConnInfos[index].iConnectionId;
  2999     aConnection.iBearer = iConnInfos[index].iBearer;
  2999     aConnection.iBearer = iConnInfos[index].iBearer;
  3000 
       
  3001     TInt connectionStatus( 0 );
       
  3002     GetConnectionStatus( index, connectionStatus );
       
  3003 
       
  3004     if ( ( iConnInfos[index].iConnDownNotifier != 0 ) &&
       
  3005          ( iConnInfos[index].iProgressNotifier != 0 ) )
       
  3006         {
       
  3007         if ( !iConnInfos[index].iConnDownNotifier->DeleteSent() &&
       
  3008              !iConnInfos[index].iConnDownNotifier->IsActive() &&
       
  3009              ( !iConnInfos[index].iProgressNotifier->IsActive() ||
       
  3010                ( connectionStatus != KLinkLayerOpen ) ) )
       
  3011             {
       
  3012             aSent = EFalse;
       
  3013             }
       
  3014         else
       
  3015             {
       
  3016             aSent = ETrue;
       
  3017             }
       
  3018         }
       
  3019     else
       
  3020         {
       
  3021         aSent = EFalse;
       
  3022         }
       
  3023 
  3000 
  3024     return KErrNone;
  3001     return KErrNone;
  3025     }
  3002     }
  3026 
  3003 
  3027 // -----------------------------------------------------------------------------------
  3004 // -----------------------------------------------------------------------------------