19import QtQml.StateMachine 1.0 as DSM
20import Dekko.Controls 1.0
22import Dekko.Mail.API 1.0
23import Dekko.Mail.Stores.Accounts 1.0
24import Dekko.Mail.Workers 1.0
25import Dekko.Lomiri.Dialogs 1.0
51 filter: WizardKeys.wizardNavigateTo
53 stack.push({item: message.view, properties: message.properties});
58 filter: WizardKeys.wizardStepBack
63 if (stack.depth > 1) {
64 Log.logInfo(
"SetupWizard::wizardStepBack",
"Going back to previous step")
72 filter: WizardKeys.addAnotherAccount
74 WizardActions.wizardResetAccount()
76 WizardActions.wizardStepForward()
85 name: PopupKeys.popupSetupWizard
87 noticePopup: Component {
90 confirmationPopup: Component {
98 initialState: Client.hasConfiguredAccounts ? newAccountState : noAccountsState
103 backTargetState: quit
104 createTargetState: newAccountState
112 backTargetState: Client.hasConfiguredAccounts ? quit : noAccountsState
114 nextTargetState: userInputState
119 backTargetState: newAccountState
121 nextTargetState: AccountSetup.isPreset ? validate : autoConfig
130 nextTargetState: AccountSetup.needsValidation ? validate : manualInput
135 nextTargetState: validate
136 backTartgetState: userInputState
141 backTartgetState: manualInput
142 nextTargetState: sync
147 nextTargetState: addAnother
152 nextTargetState: newAccountState
153 quitTargetState: finished
164 WizardActions.removeNewAccount()
165 WizardActions.wizardResetAccount()
174 WizardActions.wizardResetAccount()