2021-12-30 13:39:47 +01:00
|
|
|
import QtQuick 2.13
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property var privacyModule
|
|
|
|
|
|
|
|
// Module Properties
|
|
|
|
property bool mnemonicBackedUp: privacyModule.mnemonicBackedUp
|
|
|
|
|
|
|
|
function changePassword(password, newPassword) {
|
|
|
|
root.privacyModule.changePassword(password, newPassword)
|
|
|
|
}
|
|
|
|
|
|
|
|
function getMnemonic() {
|
|
|
|
return root.privacyModule.getMnemonic()
|
|
|
|
}
|
|
|
|
|
|
|
|
function removeMnemonic() {
|
|
|
|
root.privacyModule.removeMnemonic()
|
|
|
|
}
|
|
|
|
|
|
|
|
function getMnemonicWordAtIndex(index) {
|
|
|
|
return root.privacyModule.getMnemonicWordAtIndex(index)
|
|
|
|
}
|
2022-02-24 13:18:21 +01:00
|
|
|
|
|
|
|
function validatePassword(password) {
|
|
|
|
return root.privacyModule.validatePassword(password)
|
|
|
|
}
|
2022-04-11 13:39:15 +02:00
|
|
|
|
2023-02-02 14:54:35 +01:00
|
|
|
function tryStoreToKeyChain() {
|
|
|
|
root.privacyModule.tryStoreToKeyChain()
|
|
|
|
}
|
|
|
|
|
|
|
|
function tryRemoveFromKeyChain() {
|
|
|
|
root.privacyModule.tryRemoveFromKeyChain()
|
2022-04-11 13:39:15 +02:00
|
|
|
}
|
2023-02-27 14:36:54 +01:00
|
|
|
|
|
|
|
function backupData() {
|
|
|
|
return root.privacyModule.backupData()
|
|
|
|
}
|
2023-12-06 16:24:10 +01:00
|
|
|
|
|
|
|
function mnemonicWasShown() {
|
|
|
|
root.privacyModule.mnemonicWasShown()
|
|
|
|
}
|
2021-12-30 13:39:47 +01:00
|
|
|
}
|