bluetoothengine/btnotif/btnotifsrv/src/btnotifserviceauthorizer.cpp
changeset 70 f5508c13dfe0
parent 57 5ebadcda06cb
equal deleted inserted replaced
67:16e4b9007960 70:f5508c13dfe0
    89             TInt err = iNotification->Close();
    89             TInt err = iNotification->Close();
    90             iNotifierMessage.Complete(KErrCancel);
    90             iNotifierMessage.Complete(KErrCancel);
    91             aMessage.Complete(err);
    91             aMessage.Complete(err);
    92             return;
    92             return;
    93             }
    93             }
    94         BOstrace0(TRACE_DEBUG,DUMMY_DEVLIST,"[BTNotif]:We are busy");
    94         BOstrace0(TRACE_DEBUG,DUMMY_DEVLIST,_L("[BTNotif]:We are busy"));
    95         User::Leave(KErrServerBusy );
    95         User::Leave(KErrServerBusy );
    96         }
    96         }
    97 
    97 
    98     iParams.ReAllocL( aMessage.GetDesLengthL( EBTNotifSrvParamSlot ) );
    98     iParams.ReAllocL( aMessage.GetDesLengthL( EBTNotifSrvParamSlot ) );
    99     aMessage.ReadL( EBTNotifSrvParamSlot, iParams );
    99     aMessage.ReadL( EBTNotifSrvParamSlot, iParams );
   109 
   109 
   110     if(dev && dev->Device().GlobalSecurity().Banned() )
   110     if(dev && dev->Device().GlobalSecurity().Banned() )
   111         {
   111         {
   112         // If the device is banned, service connection from
   112         // If the device is banned, service connection from
   113         // this device is not allowed:
   113         // this device is not allowed:
   114         BOstrace0(TRACE_DEBUG,DUMMY_DEVLIST,"[BTNotif]:Device is banned");
   114         BOstrace0(TRACE_DEBUG,DUMMY_DEVLIST,_L("[BTNotif]:Device is banned"));
   115         aMessage.Complete( KErrCancel);
   115         aMessage.Complete( KErrCancel);
   116         return;    
   116         return;    
   117         }
   117         }
   118 
   118 
   119     if(dev && dev->Device().GlobalSecurity().NoAuthorise())
   119     if(dev && dev->Device().GlobalSecurity().NoAuthorise())