LocalDeviceInfoSheet.qml Example File
bluetoothsppchat/assets/LocalDeviceInfoSheet.qml
import bb.cascades 1.0
Sheet {
id: root
Page {
Container {
topPadding: 20
leftPadding: 20
rightPadding: 20
bottomPadding: 20
Label {
text: qsTr("Local Device Information")
horizontalAlignment: HorizontalAlignment.Center
textStyle {
base: SystemDefaults.TextStyles.TitleText
fontWeight: FontWeight.Bold
color: Color.DarkRed
}
}
Container {
bottomPadding: 20
rightPadding: 20
LabelLabel {
label: qsTr("Name")
text: _btController.localDeviceInfo.name
}
LabelLabel {
label: qsTr("Address")
text: _btController.localDeviceInfo.address
}
LabelLabel {
label: qsTr("Class")
text: _btController.localDeviceInfo.deviceClass
}
LabelLabel {
label: qsTr("Discoverable")
text: _btController.localDeviceInfo.discoverable
}
LabelLabel {
label: qsTr("Enabled")
text: _btController.localDeviceInfo.enabled
}
LabelLabel {
label: qsTr("Device Type")
text: _btController.localDeviceInfo.deviceType
}
}
Container {
bottomPadding: 20
rightPadding: 20
LabelLabel {
label: qsTr("API Version")
text: _btController.localDeviceInfo.apiVersion
}
LabelLabel {
label: qsTr("Master/Slave Allowed")
text: _btController.localDeviceInfo.masterSlaveAllowed
}
LabelLabel {
label: qsTr("Max Device Connections")
text: _btController.localDeviceInfo.maximumConnections
}
LabelLabel {
label: qsTr("Max L2CAP Rx MTU")
text: _btController.localDeviceInfo.maximumL2capMtu
}
LabelLabel {
label: qsTr("Max RFCOMM Rx MTU")
text: _btController.localDeviceInfo.maximumRfcommMtu
}
}
Container {
bottomPadding: 20
rightPadding: 20
LabelLabel {
label: qsTr("Incoming Inquiry Scan while Connected")
text: _btController.localDeviceInfo.incomingInquiryScan
}
LabelLabel {
label: qsTr("Incoming Page Scan while Connected")
text: _btController.localDeviceInfo.incomingPageScan
}
LabelLabel {
label: qsTr("Outgoing Inquiry Scan while Connected")
text: _btController.localDeviceInfo.outgoingInquiryScan
}
LabelLabel {
label: qsTr("Outgoing Page Scan while Connected")
text: _btController.localDeviceInfo.outgoingPageScan
}
}
Divider {
}
Button {
horizontalAlignment: HorizontalAlignment.Center
text: qsTr("Close")
onClicked: root.close()
}
}
}
}