Add string with mtu and max packets the device can hold

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29681 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2009-03-24 21:27:53 +00:00
parent 8dc33083e8
commit 131b93231a
2 changed files with 22 additions and 3 deletions
@@ -35,9 +35,10 @@ BluetoothDeviceView::BluetoothDeviceView(BRect frame, BluetoothDevice* bDevice,
fClass = new BStringView("class", "- / -");
fHCIVersionProperties = new BStringView("version", "");
fHCIVersionProperties = new BStringView("hci", "");
fLMPVersionProperties = new BStringView("lmp", "");
fManufacturerProperties = new BStringView("manufacturer", "");
fBuffersProperties = new BStringView("buffers", "");
fIcon = new BitmapView(new BBitmap(BRect(0, 0, 64 - 1, 64 - 1), B_RGBA32));
@@ -61,7 +62,9 @@ BluetoothDeviceView::BluetoothDeviceView(BRect frame, BluetoothDevice* bDevice,
.AddGlue()
.Add(fLMPVersionProperties)
.AddGlue()
.Add(fManufacturerProperties)
.Add(fManufacturerProperties)
.AddGlue()
.Add(fBuffersProperties)
.SetInsets(5, 25, 25, 25)
)
.Add(BSpaceLayoutItem::CreateHorizontalStrut(10)
@@ -119,6 +122,19 @@ BluetoothDeviceView::SetBluetoothDevice(BluetoothDevice* bDevice)
if (bDevice->GetProperty("manufacturer", &value) == B_OK)
str << "Manufacturer: " << GetManufacturer(value);
fManufacturerProperties->SetText(str.String());
str = "";
if (bDevice->GetProperty("acl_mtu", &value) == B_OK)
str << "ACL mtu: " << value;
if (bDevice->GetProperty("acl_max_pkt", &value) == B_OK)
str << " packets: " << value;
if (bDevice->GetProperty("sco_mtu", &value) == B_OK)
str << " SCO mtu: " << value;
if (bDevice->GetProperty("sco_max_pkt", &value) == B_OK)
str << " packets: " << value;
fBuffersProperties->SetText(str.String());
}
+4 -1
View File
@@ -121,7 +121,10 @@ InquiryPanel::InquiryPanel(BRect frame, LocalDevice* lDevice)
if (fLocalDevice != NULL) {
fMessage->SetText("Check that the bluetooth capabilities of your remote device"
" are activated. Press Inquiry to start scanning");
" are activated. Press Inquiry to start scanning. The needed time"
" for the retrieval of the names is unknown, although should not"
" take more than 3 seconds per device. Afterwards you will be able"
" to add them to your main list, where you will be able to pair with them");
fInquiryButton->SetEnabled(true);
fDiscoveryAgent = fLocalDevice->GetDiscoveryAgent();
fDiscoveryListener = new PanelDiscoveryListener(this);