RemoteDeviceInfoSheet.qml Example File
bluetoothsppchat/assets/RemoteDeviceInfoSheet.qml
import bb.cascades 1.0
Sheet {
id: root
Page {
Container {
Label {
text: _btController.remoteDeviceInfo.name
horizontalAlignment: HorizontalAlignment.Center
textStyle {
base: SystemDefaults.TextStyles.TitleText
fontWeight: FontWeight.Bold
color: Color.DarkRed
}
}
Container {
horizontalAlignment: HorizontalAlignment.Left
bottomPadding: 5
leftPadding: 20
rightPadding: 20
LabelLabel {
label: qsTr("Address")
text: _btController.remoteDeviceInfo.address
}
LabelLabel {
label: qsTr("Class")
text: _btController.remoteDeviceInfo.deviceClass
}
LabelLabel {
label: qsTr("Device Type")
text: _btController.remoteDeviceInfo.deviceType
}
LabelLabel {
label: qsTr("Encrypted")
text: _btController.remoteDeviceInfo.encrypted
}
LabelLabel {
label: qsTr("Paired")
text: _btController.remoteDeviceInfo.paired
}
LabelLabel {
label: qsTr("Trusted")
text: _btController.remoteDeviceInfo.trusted
}
LabelLabel {
label: qsTr("RSSI")
text: _btController.remoteDeviceInfo.rssi
}
}
Container {
leftPadding: 20
bottomPadding: 0
bottomMargin: 0
rightPadding: 20
Label {
bottomMargin: 0
text: qsTr("Low Energy Properties:")
textStyle {
base: SystemDefaults.TextStyles.SmallText
fontWeight: FontWeight.Bold
color: Color.Blue
}
}
LabelLabel {
label: qsTr("MIN Connection Interval")
text: _btController.remoteDeviceInfo.minimumConnectionInterval
}
LabelLabel {
label: qsTr("MAX Connection Interval")
text: _btController.remoteDeviceInfo.maximumConnectionInterval
}
LabelLabel {
label: qsTr("Latency")
text: _btController.remoteDeviceInfo.latency
}
LabelLabel {
label: qsTr("Supervisory Timeout")
text: _btController.remoteDeviceInfo.supervisoryTimeout
}
LabelLabel {
label: qsTr("Appearance")
text: _btController.remoteDeviceInfo.appearance
}
LabelLabel {
label: qsTr("Flags")
text: _btController.remoteDeviceInfo.flags
}
LabelLabel {
label: qsTr("Connectable")
text: _btController.remoteDeviceInfo.connectable
}
}
Divider {
}
Button {
horizontalAlignment: HorizontalAlignment.Center
text: qsTr("Close")
onClicked: root.close()
}
}
}
}