Closed Bug 791928 Opened 12 years ago Closed 12 years ago

[b2g-bluetooth] Broadcast bonding-related events with device name

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18
blocking-basecamp +

People

(Reporter: gyeh, Assigned: gyeh)

References

Details

(Whiteboard: [LOE:S] )

Attachments

(1 file, 1 obsolete file)

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+
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: