status-desktop/ui/app/AppLayouts/Onboarding/stores/StartupStore.qml

95 lines
2.4 KiB
QML

import QtQuick 2.14
QtObject {
id: root
property var startupModuleInst: startupModule
property var currentStartupState: startupModuleInst.currentStartupState
property var selectedLoginAccount: startupModuleInst.selectedLoginAccount
function backAction() {
root.currentStartupState.backAction()
}
function doPrimaryAction() {
root.currentStartupState.doPrimaryAction()
}
function doSecondaryAction() {
root.currentStartupState.doSecondaryAction()
}
function doTertiaryAction() {
root.currentStartupState.doTertiaryAction()
}
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)
}
function getCroppedProfileImage() {
return root.startupModuleInst.getCroppedProfileImage()
}
function setDisplayName(value) {
root.startupModuleInst.setDisplayName(value)
}
function getDisplayName() {
return root.startupModuleInst.getDisplayName()
}
function setPassword(value) {
root.startupModuleInst.setPassword(value)
}
function setDefaultWalletEmoji(emoji) {
root.startupModuleInst.setDefaultWalletEmoji(emoji)
}
function getPassword() {
return root.startupModuleInst.getPassword()
}
function setPin(value) {
root.startupModuleInst.setPin(value)
}
function getPin() {
return root.startupModuleInst.getPin()
}
function setPuk(value) {
root.startupModuleInst.setPuk(value)
}
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)
}
function checkRepeatedKeycardPinWhileTyping(pin) {
return root.startupModuleInst.checkRepeatedKeycardPinWhileTyping(pin)
}
function getSeedPhrase() {
return root.startupModuleInst.getSeedPhrase()
}
}