Index: device/bluetooth/bluetooth_device.cc |
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc |
index a2249c50709db713510a7caab4ed1fb546269bb7..7f4324bae07c01fc702a77c69259caf8f44e401c 100644 |
--- a/device/bluetooth/bluetooth_device.cc |
+++ b/device/bluetooth/bluetooth_device.cc |
@@ -18,11 +18,17 @@ bool BluetoothDevice::IsUUIDValid(const std::string& uuid) { |
return !bluetooth_utils::CanonicalUuid(uuid).empty(); |
} |
-BluetoothDevice::BluetoothDevice() |
- : bluetooth_class_(0), |
+BluetoothDevice::BluetoothDevice(const std::string& name, |
+ const std::string& address, |
+ uint32 bluetooth_class, |
+ bool connected, |
+ bool bonded) |
+ : bluetooth_class_(bluetooth_class), |
+ name_(name), |
+ address_(address), |
visible_(false), |
- bonded_(false), |
- connected_(false), |
+ bonded_(bonded), |
+ connected_(connected), |
connectable_(true), |
connecting_(false) { |
keybuk
2013/03/21 18:03:34
What's the reason for adding these methods to the
youngki
2013/03/21 18:43:28
I think the member variables to BluetoothDevice sh
keybuk
2013/03/21 18:46:25
My concern is that these don't need to be member v
youngki
2013/03/21 20:07:20
Currently BluetoothDevice::address() is returning
keybuk
2013/03/25 16:49:47
It should probably just return std::string; and ye
youngki
2013/03/25 17:52:03
So according to the new design doc it's likely we
|
} |
@@ -198,4 +204,8 @@ bool BluetoothDevice::ProvidesServiceWithUUID( |
return false; |
} |
+void BluetoothDevice::SetVisible(bool visible) { |
+ visible_ = visible; |
+} |
+ |
} // namespace device |