Closed Bug 791928 Opened 7 years ago Closed 7 years ago
[b2g-bluetooth] Broadcast bonding-related events with device name
As shown in the UX spec of settings app, device name should be shown when there's a pairing request comes. Since the settings app is launched after receiving the system message like onrequestconfirmation, there's no way to get device attributes from the instance of BluetoothDevice. So, we need to broadcast system message with device name.
Reuse class DevicePropertiesSignalHandler to retrieve device name and change the argument to a BluetoothSignal consist of signalName, signalPath, and BluetoothValue. When we get "DeviceCreated", BluetoothValue is a nsString, the object path of device, and return a dict of device properties back to BluetoothDevice. When we get "RequestConfirmation"/"RequestPinCode"/"RequestPasskey", BluetoothValue is an array of BluetoothNamedValue, including object path of device and passkey (only for "RequestConfirmation"), and append device name only to original parameters.
Attachment #662471 - Flags: review?(kyle)
Attachment #662471 - Flags: review?(kyle) → review+
Attachment #662471 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.