Add technical modem details to cellular page
This commit is contained in:
162
CellularPage.qml
162
CellularPage.qml
@@ -53,4 +53,166 @@ NavigationPage {
|
||||
property alias value: textField3.text
|
||||
}
|
||||
}
|
||||
|
||||
WhiteItemDelegate {
|
||||
id: delegate
|
||||
Layout.fillWidth: true
|
||||
|
||||
text: qsTr("Show technical details of LTE modem")
|
||||
|
||||
onClicked: {
|
||||
gridLayout.visible = true
|
||||
delegate.text = null
|
||||
delegate.implicitWidth = Qt.binding(() => gridLayout.implicitWidth + gridLayout.anchors.leftMargin + gridLayout.anchors.rightMargin)
|
||||
delegate.implicitHeight = Qt.binding(() => gridLayout.implicitHeight + gridLayout.anchors.topMargin + gridLayout.anchors.bottomMargin)
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
id: gridLayout
|
||||
|
||||
columns: 2
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: 5
|
||||
anchors.topMargin: 5
|
||||
anchors.rightMargin: 5
|
||||
anchors.bottomMargin: 5
|
||||
visible: false
|
||||
|
||||
ApiKeyValueHelper {
|
||||
id: misApiKey
|
||||
deviceConnection: theDeviceConnection
|
||||
apiKey: "mis"
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Initialization status:")
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Text {
|
||||
text: JSON.stringify(misApiKey.value, null, 2)
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
ApiKeyValueHelper {
|
||||
id: imeiApiKey
|
||||
deviceConnection: theDeviceConnection
|
||||
apiKey: "imei"
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("IMEI:")
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Text {
|
||||
text: JSON.stringify(imeiApiKey.value, null, 2)
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
ApiKeyValueHelper {
|
||||
id: imsiApiKey
|
||||
deviceConnection: theDeviceConnection
|
||||
apiKey: "imsi"
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("IMSI:")
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Text {
|
||||
text: JSON.stringify(imsiApiKey.value, null, 2)
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
ApiKeyValueHelper {
|
||||
id: mpsApiKey
|
||||
deviceConnection: theDeviceConnection
|
||||
apiKey: "mps"
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Pin status:")
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Text {
|
||||
text: JSON.stringify(mpsApiKey.value, null, 2)
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
ApiKeyValueHelper {
|
||||
id: monApiKey
|
||||
deviceConnection: theDeviceConnection
|
||||
apiKey: "mon"
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Operator name:")
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Text {
|
||||
text: JSON.stringify(monApiKey.value, null, 2)
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
ApiKeyValueHelper {
|
||||
id: msqApiKey
|
||||
deviceConnection: theDeviceConnection
|
||||
apiKey: "msq"
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Signal quality:")
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Text {
|
||||
text: JSON.stringify(msqApiKey.value, null, 2)
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
ApiKeyValueHelper {
|
||||
id: ccmApiKey
|
||||
deviceConnection: theDeviceConnection
|
||||
apiKey: "ccm"
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("Current system mode:")
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Text {
|
||||
text: JSON.stringify(ccmApiKey.value, null, 2)
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
ApiKeyValueHelper {
|
||||
id: miaApiKey
|
||||
deviceConnection: theDeviceConnection
|
||||
apiKey: "mia"
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("IP Address:")
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Text {
|
||||
text: JSON.stringify(miaApiKey.value, null, 2)
|
||||
wrapMode: Text.Wrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -305,6 +305,60 @@
|
||||
<source>Password</source>
|
||||
<translation>Passwort</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../CellularPage.qml" line="61"/>
|
||||
<location filename="../build/Desktop-Debug/EVChargerApp/CellularPage.qml" line="61"/>
|
||||
<source>Show technical details of LTE modem</source>
|
||||
<translation>Technische Informationen des LTE Modems anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../CellularPage.qml" line="88"/>
|
||||
<location filename="../build/Desktop-Debug/EVChargerApp/CellularPage.qml" line="88"/>
|
||||
<source>Initialization status:</source>
|
||||
<translation>Initialisierungsstatus:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../CellularPage.qml" line="105"/>
|
||||
<location filename="../build/Desktop-Debug/EVChargerApp/CellularPage.qml" line="105"/>
|
||||
<source>IMEI:</source>
|
||||
<translation>IMEI:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../CellularPage.qml" line="122"/>
|
||||
<location filename="../build/Desktop-Debug/EVChargerApp/CellularPage.qml" line="122"/>
|
||||
<source>IMSI:</source>
|
||||
<translation>IMSI:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../CellularPage.qml" line="139"/>
|
||||
<location filename="../build/Desktop-Debug/EVChargerApp/CellularPage.qml" line="139"/>
|
||||
<source>Pin status:</source>
|
||||
<translation>Pin Status:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../CellularPage.qml" line="156"/>
|
||||
<location filename="../build/Desktop-Debug/EVChargerApp/CellularPage.qml" line="156"/>
|
||||
<source>Operator name:</source>
|
||||
<translation>Netzbetreibername:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../CellularPage.qml" line="173"/>
|
||||
<location filename="../build/Desktop-Debug/EVChargerApp/CellularPage.qml" line="173"/>
|
||||
<source>Signal quality:</source>
|
||||
<translation>Signalstärke:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../CellularPage.qml" line="190"/>
|
||||
<location filename="../build/Desktop-Debug/EVChargerApp/CellularPage.qml" line="190"/>
|
||||
<source>Current system mode:</source>
|
||||
<translation>Aktuelle Verbindungsart:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../CellularPage.qml" line="207"/>
|
||||
<location filename="../build/Desktop-Debug/EVChargerApp/CellularPage.qml" line="207"/>
|
||||
<source>IP Address:</source>
|
||||
<translation>IP Adresse:</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChargerTabPage</name>
|
||||
|
Reference in New Issue
Block a user