mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-19 10:09:38 +00:00
52 lines
1.1 KiB
QML
52 lines
1.1 KiB
QML
import QtQuick 2.13
|
|
import "./Keycard"
|
|
import "../shared/keycard"
|
|
|
|
// this will be the entry point. for now it opens all keycard-related dialogs in sequence for test
|
|
Item {
|
|
property var onClosed: function () {}
|
|
property bool connected: false
|
|
|
|
id: keycardView
|
|
anchors.fill: parent
|
|
Component.onCompleted: {
|
|
keycardModel.testConnection()
|
|
createPinModal.open()
|
|
}
|
|
|
|
Timer {
|
|
interval: 2000; running: true; repeat: true
|
|
onTriggered: {
|
|
connected? keycardModel.simulateDisconnected() : keycardModel.simulateConnected()
|
|
connected = !connected
|
|
}
|
|
}
|
|
|
|
CreatePINModal {
|
|
id: createPinModal
|
|
onClosed: function () {
|
|
pairingModal.open()
|
|
}
|
|
}
|
|
|
|
PairingModal {
|
|
id: pairingModal
|
|
onClosed: function () {
|
|
pinModal.open()
|
|
}
|
|
}
|
|
|
|
PINModal {
|
|
id: pinModal
|
|
onClosed: function () {
|
|
keycardView.open()
|
|
}
|
|
}
|
|
|
|
InsertCard {
|
|
id: insertCard
|
|
onCancel: function() {
|
|
keycardView.onClosed()
|
|
}
|
|
}
|
|
} |