switch to 4.2.x (initial add 4.2.0)
[enigma2.git] / usr / lib / enigma2 / python / Plugins / SystemPlugins / SoftwareManager / imagewizard.xml
1 <wizard>
2         <step id="restorequestion">
3                 <condition>
4 from Components.config import config
5 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkConfigBackup
6 self.backuppath = checkConfigBackup()
7 self.condition = (self.backuppath is not None and config.misc.firstrun.value)
8                 </condition>
9                 <text value="Do you want to restore your settings?" />
10                 <list>
11                         <listentry caption="Yes, restore the settings now" step="restore" />
12                         <listentry caption="No, just start my dreambox" step="end" />
13                 </list>
14                 <code>
15 self.clearSelectedKeys()
16 self.selectKey("OK")
17                 </code>
18         </step>
19
20         <step id="welcome">
21                 <text value="Welcome to the Image upgrade wizard. The wizard will assist you in upgrading the firmware of your Dreambox by providing a backup facility for your current settings and a short explanation of how to upgrade your firmware." />
22                 <list>
23                         <listentry caption="OK, guide me through the upgrade process" step="backupquestion" />
24                         <listentry caption="Exit the wizard" step="end" />
25                 </list>
26         </step>
27
28         <step id="backupquestion">
29                 <text value="The wizard can backup your current settings. Do you want to do a backup now?" />
30                 <list>
31                         <listentry caption="Yes, backup my settings!" step="backupwhere" />
32                         <listentry caption="No backup needed" step="upgrade" />
33                 </list>
34         </step>
35
36         <step id="backupwhere" nextstep="backup">
37                 <text value="Where do you want to backup your settings?" />
38                 <list type="dynamic" source="listDevices" evaluation="deviceSelectionMade" onselect="deviceSelectionMoved" />
39         </step>
40
41         <step id="backup" nextstep="backupresult">
42                 <text value="You have chosen to backup your settings. Please press OK to start the backup now." />
43                 <config screen="BackupScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />
44                 <code pos="after" async="yes">
45 self.currStep = self.getStepWithID('backupresult')
46 self.afterAsyncCode()
47                 </code>
48         </step>
49
50         <step id="backupresult" nextstep="upgrade">
51                 <condition>
52 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile
53 self.backuppath = checkBackupFile()
54 self.condition = (self.backuppath is True)
55                 </condition>
56                 <text value="Your backup succeeded. We will now continue to explain the further upgrade process." />
57         </step>
58
59         <step id="backupresult" nextstep="backupwhere">
60                 <condition>
61 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile
62 self.backuppath = checkBackupFile()
63 self.condition = (self.backuppath is False)
64                 </condition>
65                 <text value="The backup failed. Please choose a different backup location." />
66         </step>
67
68         <step id="restore" nextstep="backupresult">
69                 <text value="You have chosen to restore your settings. Enigma2 will restart after restore. Please press OK to start the restore now." />
70                 <config screen="RestoreScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />
71         </step>
72
73         <step id="upgradehow">
74                 <text value="The wizard can backup your current settings. Do you want to do a backup now?" />
75                 <list>
76                         <listentry caption="Install a new image with your web browser" step="upgrade" />
77                         <listentry caption="Install a new image with a USB stick" step="upgradeUSB" />
78                 </list>
79         </step>
80
81         <step id="upgrade">
82                 <text value="You need a PC connected to your dreambox. If you need further instructions, please visit the website http://www.dm7025.de.\nYour dreambox will now be halted. After you have performed the update instructions from the website, your new firmware will ask you to restore your settings." />
83                 <list>
84                         <listentry caption="Yes, perform a shutdown now." step="shutdown" />
85                         <listentry caption="No, do nothing." step="end" />
86                 </list>
87         </step>
88
89         <step id="shutdown" nextstep="shutdown">
90                 <code>
91 from enigma import quitMainloop
92 quitMainloop(8)
93                 </code>
94                 <text value="Your dreambox is shutting down. Please stand by..." />
95         </step>
96
97         <step id="end" laststep="true">
98                 <condition>
99 self.condition = self.isLastWizard
100                 </condition>
101                 <text value="The wizard is finished now." />
102         </step>
103 </wizard>