bluetoothengine/bthid/bthidserver/src/bthidserver.cpp
changeset 1 6a1fe72036e3
parent 0 f63038272f30
child 11 a42ed326b458
--- a/bluetoothengine/bthid/bthidserver/src/bthidserver.cpp	Mon Jan 18 20:28:57 2010 +0200
+++ b/bluetoothengine/bthid/bthidserver/src/bthidserver.cpp	Tue Jan 26 12:06:42 2010 +0200
@@ -781,7 +781,10 @@
 
             // Get it to disconnect if its connected.
             connection->Disconnect();
-
+            
+            InformClientsOfStatusChange(connection->DeviceDetails(),
+                EBTDeviceDisconnected);
+            
             // Delete the connection object.
             iBTConnIndex->Remove(connection->ConnID());
 
@@ -818,7 +821,10 @@
 
                 // Get it to disconnect if its connected.
                 connection->Disconnect();
-
+                
+                InformClientsOfStatusChange(connection->DeviceDetails(),
+                    EBTDeviceDisconnected);
+                 
                 // Delete the connection object.
                 iBTConnIndex->Remove(connection->ConnID());