2022-07-20 12:34:44 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property var startupModuleInst: startupModule
|
2022-12-13 10:45:26 +00:00
|
|
|
property var currentStartupState: startupModuleInst ? startupModuleInst.currentStartupState
|
|
|
|
: null
|
|
|
|
property var selectedLoginAccount: startupModuleInst ? startupModuleInst.selectedLoginAccount
|
|
|
|
: null
|
2022-11-30 09:19:59 +00:00
|
|
|
property var fetchingDataModel: startupModuleInst ? startupModuleInst.fetchingDataModel
|
|
|
|
: null
|
2022-07-20 12:34:44 +00:00
|
|
|
|
2023-03-14 02:52:16 +00:00
|
|
|
readonly property int localPairingState: startupModuleInst ? startupModuleInst.localPairingState : -1
|
|
|
|
readonly property string localPairingError: startupModuleInst ? startupModuleInst.localPairingError : ""
|
|
|
|
readonly property string localPairingName: startupModuleInst ? startupModuleInst.localPairingName : ""
|
|
|
|
readonly property string localPairingImage: startupModuleInst ? startupModuleInst.localPairingImage : ""
|
|
|
|
readonly property int localPairingColorId: startupModuleInst ? startupModuleInst.localPairingColorId : 0
|
|
|
|
readonly property string localPairingColorHash: startupModuleInst ? startupModuleInst.localPairingColorHash : ""
|
2023-04-29 10:33:08 +00:00
|
|
|
readonly property string localPairingInstallationId: startupModuleInst ? startupModuleInst.localPairingInstallationId : ""
|
|
|
|
readonly property string localPairingInstallationName: startupModuleInst ? startupModuleInst.localPairingInstallationName : ""
|
|
|
|
readonly property string localPairingInstallationDeviceType: startupModuleInst ? startupModuleInst.localPairingInstallationDeviceType : ""
|
2023-03-14 02:52:16 +00:00
|
|
|
|
2022-07-20 12:34:44 +00:00
|
|
|
function backAction() {
|
|
|
|
root.currentStartupState.backAction()
|
|
|
|
}
|
|
|
|
|
|
|
|
function doPrimaryAction() {
|
|
|
|
root.currentStartupState.doPrimaryAction()
|
|
|
|
}
|
|
|
|
|
|
|
|
function doSecondaryAction() {
|
|
|
|
root.currentStartupState.doSecondaryAction()
|
|
|
|
}
|
|
|
|
|
|
|
|
function doTertiaryAction() {
|
|
|
|
root.currentStartupState.doTertiaryAction()
|
|
|
|
}
|
|
|
|
|
2022-09-30 19:15:12 +00:00
|
|
|
function doQuaternaryAction() {
|
|
|
|
root.currentStartupState.doQuaternaryAction()
|
|
|
|
}
|
|
|
|
|
|
|
|
function doQuinaryAction() {
|
|
|
|
root.currentStartupState.doQuinaryAction()
|
|
|
|
}
|
|
|
|
|
2022-07-20 12:34:44 +00:00
|
|
|
function showBeforeGetStartedPopup() {
|
|
|
|
return root.startupModuleInst.showBeforeGetStartedPopup()
|
|
|
|
}
|
|
|
|
|
|
|
|
function beforeGetStartedPopupAccepted() {
|
|
|
|
root.startupModuleInst.beforeGetStartedPopupAccepted()
|
|
|
|
}
|
|
|
|
|
|
|
|
function generateImage(source, aX, aY, bX, bY) {
|
|
|
|
return root.startupModuleInst.generateImage(source, aX, aY, bX, bY)
|
|
|
|
}
|
|
|
|
|
2022-07-21 11:29:18 +00:00
|
|
|
function getCroppedProfileImage() {
|
|
|
|
return root.startupModuleInst.getCroppedProfileImage()
|
|
|
|
}
|
|
|
|
|
2022-07-20 12:34:44 +00:00
|
|
|
function setDisplayName(value) {
|
|
|
|
root.startupModuleInst.setDisplayName(value)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getDisplayName() {
|
|
|
|
return root.startupModuleInst.getDisplayName()
|
|
|
|
}
|
|
|
|
|
|
|
|
function setPassword(value) {
|
|
|
|
root.startupModuleInst.setPassword(value)
|
|
|
|
}
|
|
|
|
|
2022-08-25 11:26:04 +00:00
|
|
|
function setDefaultWalletEmoji(emoji) {
|
|
|
|
root.startupModuleInst.setDefaultWalletEmoji(emoji)
|
|
|
|
}
|
|
|
|
|
2022-07-20 12:34:44 +00:00
|
|
|
function getPassword() {
|
|
|
|
return root.startupModuleInst.getPassword()
|
|
|
|
}
|
|
|
|
|
2022-07-21 11:29:18 +00:00
|
|
|
function setPin(value) {
|
|
|
|
root.startupModuleInst.setPin(value)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getPin() {
|
|
|
|
return root.startupModuleInst.getPin()
|
|
|
|
}
|
|
|
|
|
|
|
|
function setPuk(value) {
|
|
|
|
root.startupModuleInst.setPuk(value)
|
|
|
|
}
|
|
|
|
|
2022-07-20 12:34:44 +00:00
|
|
|
function getPasswordStrengthScore(password) {
|
|
|
|
let userName = root.startupModuleInst.importedAccountAlias
|
|
|
|
return root.startupModuleInst.getPasswordStrengthScore(password, userName)
|
|
|
|
}
|
|
|
|
|
|
|
|
function validMnemonic(mnemonic) {
|
|
|
|
return root.startupModuleInst.validMnemonic(mnemonic)
|
|
|
|
}
|
|
|
|
|
|
|
|
function setSelectedLoginAccountByIndex(index) {
|
|
|
|
root.startupModuleInst.setSelectedLoginAccountByIndex(index)
|
|
|
|
}
|
2022-07-21 11:29:18 +00:00
|
|
|
|
|
|
|
function checkRepeatedKeycardPinWhileTyping(pin) {
|
|
|
|
return root.startupModuleInst.checkRepeatedKeycardPinWhileTyping(pin)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getSeedPhrase() {
|
|
|
|
return root.startupModuleInst.getSeedPhrase()
|
|
|
|
}
|
2023-03-14 02:52:16 +00:00
|
|
|
|
|
|
|
function validateLocalPairingConnectionString(connectionString) {
|
|
|
|
return root.startupModuleInst.validateLocalPairingConnectionString(connectionString)
|
|
|
|
}
|
|
|
|
|
|
|
|
function setConnectionString(connectionString) {
|
|
|
|
root.startupModuleInst.setConnectionString(connectionString)
|
|
|
|
}
|
2022-07-20 12:34:44 +00:00
|
|
|
}
|