equal
deleted
inserted
replaced
103 { |
103 { |
104 BOstraceFunctionEntry0( DUMMY_DEVLIST ); |
104 BOstraceFunctionEntry0( DUMMY_DEVLIST ); |
105 |
105 |
106 TInt uid = aMessage.Int0(); |
106 TInt uid = aMessage.Int0(); |
107 TInt opCode = aMessage.Function(); |
107 TInt opCode = aMessage.Function(); |
108 BOstrace1(TRACE_DEBUG,DUMMY_DEVLIST,"[BTNotif]:Opcode: %d",opCode); |
108 BOstrace1(TRACE_DEBUG,DUMMY_DEVLIST,_L("[BTNotif]:Opcode: %d"),opCode); |
109 |
109 |
110 if ( (!iNotifierMessage.IsNull()) && |
110 if ( (!iNotifierMessage.IsNull()) && |
111 (opCode != EBTNotifCancelNotifier )&&(opCode != EBTNotifUpdateNotifier)) |
111 (opCode != EBTNotifCancelNotifier )&&(opCode != EBTNotifUpdateNotifier)) |
112 { |
112 { |
113 // todo: do we allow concurrent pairing? |
113 // todo: do we allow concurrent pairing? |
114 BOstrace0(TRACE_DEBUG,DUMMY_DEVLIST,"[BTNotif]:We are busy"); |
114 BOstrace0(TRACE_DEBUG,DUMMY_DEVLIST,_L("[BTNotif]:We are busy")); |
115 User::Leave(KErrServerBusy ); |
115 User::Leave(KErrServerBusy ); |
116 } |
116 } |
117 |
117 |
118 if(opCode == EBTNotifCancelNotifier) |
118 if(opCode == EBTNotifCancelNotifier) |
119 { |
119 { |
144 { |
144 { |
145 if (!iLocallyInitiated && dev->Device().GlobalSecurity().Banned() ) |
145 if (!iLocallyInitiated && dev->Device().GlobalSecurity().Banned() ) |
146 { |
146 { |
147 // If the device is banned and pairing is not locally initiated |
147 // If the device is banned and pairing is not locally initiated |
148 // then we reject. |
148 // then we reject. |
149 BOstrace0(TRACE_DEBUG,DUMMY_DEVLIST,"[BTNotif]:Device is banned"); |
149 BOstrace0(TRACE_DEBUG,DUMMY_DEVLIST,_L("[BTNotif]:Device is banned")); |
150 iNotifierMessage.Complete( KErrCancel ); |
150 iNotifierMessage.Complete( KErrCancel ); |
151 return; |
151 return; |
152 } |
152 } |
153 if (iLocallyInitiated && dev->Device().GlobalSecurity().Banned()) |
153 if (iLocallyInitiated && dev->Device().GlobalSecurity().Banned()) |
154 { |
154 { |