Index: device/bluetooth/bluetooth_service_record.h |
diff --git a/device/bluetooth/bluetooth_service_record.h b/device/bluetooth/bluetooth_service_record.h |
index 5059776abc37b98cce551823639a429b83ceeb2f..8108b7197564ee7223e37ddda30723fb52778bdd 100644 |
--- a/device/bluetooth/bluetooth_service_record.h |
+++ b/device/bluetooth/bluetooth_service_record.h |
@@ -29,6 +29,17 @@ class BluetoothServiceRecord { |
// specified in the service record. |
const std::string& uuid() const { return uuid_; } |
+ // Indicates if this service supports HIDP. |
keybuk
2013/02/22 23:50:03
nit: HID not HIDP
deymo
2013/02/23 00:43:16
Done.
|
+ bool SupportsHid() const { return supports_hid_; } |
+ |
+ // For HID services, returns the HIDReconnectInitiate attribute. For non-HID |
+ // or unknown services defaults to true. |
+ bool hid_reconnect_initiate() const { return hid_reconnect_initiate_; } |
+ |
+ // For HID services, returns the HIDNormallyConnectable attribute. For non-HID |
+ // or unknown services defaults to true. |
+ bool hid_normally_connectable() const { return hid_normally_connectable_; } |
+ |
// Indicates if this service supports RFCOMM communication. |
bool SupportsRfcomm() const { return supports_rfcomm_; } |
@@ -43,6 +54,10 @@ class BluetoothServiceRecord { |
std::string name_; |
std::string uuid_; |
+ bool supports_hid_; |
+ bool hid_reconnect_initiate_; |
+ bool hid_normally_connectable_; |
+ |
bool supports_rfcomm_; |
uint8 rfcomm_channel_; |