Bug 794791 - [b2g-bluetooth] Update Device/Adapter properties table; r=qdot

This commit is contained in:
Eric Chou 2012-09-27 10:28:19 -07:00
parent 242ed9b604
commit 218d22deb5
2 changed files with 0 additions and 12 deletions

View File

@ -120,15 +120,7 @@ BluetoothDevice::SetPropertyByValue(const BluetoothNamedValue& aValue)
} else if (name.EqualsLiteral("Icon")) {
mIcon = value.get_nsString();
} else if (name.EqualsLiteral("Connected")) {
#ifdef MOZ_WIDGET_GONK
// Connected is an 2-byte array
// arr[0]: boolean value, true means connected, false means disconnected
// arr[1]: disconnection reason
InfallibleTArray<uint8_t> arr = value.get_ArrayOfuint8_t();
mConnected = (arr[0] == 1);
#else
mConnected = value.get_bool();
#endif
} else if (name.EqualsLiteral("Paired")) {
mPaired = value.get_bool();
} else if (name.EqualsLiteral("UUIDs")) {

View File

@ -81,11 +81,7 @@ static Properties sDeviceProperties[] = {
{"Class", DBUS_TYPE_UINT32},
{"UUIDs", DBUS_TYPE_ARRAY},
{"Paired", DBUS_TYPE_BOOLEAN},
#ifdef MOZ_WIDGET_GONK
{"Connected", DBUS_TYPE_ARRAY},
#else
{"Connected", DBUS_TYPE_BOOLEAN},
#endif
{"Trusted", DBUS_TYPE_BOOLEAN},
{"Blocked", DBUS_TYPE_BOOLEAN},
{"Alias", DBUS_TYPE_STRING},