4.2.1r16
[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 if config.misc.firstrun.value and not self.condition:
9                 self.currStep = self.getStepWithID('end')
10                 </condition>
11                 <text value="Do you want to restore your settings?" />
12                 <short_title value="Restore"/>
13                 <list>
14                         <listentry caption="Yes, restore the settings now" step="restore" />
15                         <listentry caption="No, just start my dreambox" step="end" />
16                 </list>
17                 <code>
18 self.clearSelectedKeys()
19 self.selectKey("OK")
20                 </code>
21         </step>
22
23         <step id="welcome">
24                 <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." />
25                 <short_title value="Upgrade"/>
26                 <list>
27                         <listentry caption="OK, guide me through the upgrade process" step="backupquestion" />
28                         <listentry caption="Exit the wizard" step="end" />
29                 </list>
30         </step>
31
32         <step id="backupquestion">
33                 <text value="The wizard can backup your current settings. Do you want to do a backup now?" />
34                 <short_title value="Backup settings"/>
35                 <list>
36                         <listentry caption="Yes, backup my settings!" step="backupwhere" />
37                         <listentry caption="No backup needed" step="upgrade" />
38                 </list>
39         </step>
40
41         <step id="backupwhere" nextstep="backup">
42                 <text value="Where do you want to backup your settings?" />
43                 <short_title value="Location"/>
44                 <list type="dynamic" source="listDevices" evaluation="deviceSelectionMade" onselect="deviceSelectionMoved" />
45         </step>
46
47         <step id="backup" nextstep="backupresult">
48                 <text value="You have chosen to backup your settings. Please press OK to start the backup now." />
49                 <short_title value="Backup now"/>
50                 <config screen="BackupScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />
51                 <code pos="after" async="yes">
52 self.currStep = self.getStepWithID('backupresult')
53 self.afterAsyncCode()
54                 </code>
55         </step>
56
57         <step id="backupresult" nextstep="upgrade">
58                 <condition>
59 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile
60 self.backuppath = checkBackupFile()
61 self.condition = (self.backuppath is True)
62                 </condition>
63                 <text value="Your backup succeeded. We will now continue to explain the further upgrade process." />
64                 <short_title value="Success"/>
65         </step>
66
67         <step id="backupresult" nextstep="backupwhere">
68                 <condition>
69 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile
70 self.backuppath = checkBackupFile()
71 self.condition = (self.backuppath is False)
72                 </condition>
73                 <text value="The backup failed. Please choose a different backup location." />
74                 <short_title value="Failed"/>
75         </step>
76
77         <step id="restore" nextstep="backupresult">
78                 <text value="You have chosen to restore your settings. Enigma2 will restart after restore. Please press OK to start the restore now." />
79                 <short_title value="Restore"/>
80                 <config screen="RestoreScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />
81         </step>
82
83         <step id="upgradehow">
84                 <text value="The wizard can backup your current settings. Do you want to do a backup now?" />
85                 <list>
86                         <listentry caption="Install a new image with your web browser" step="upgrade" />
87                         <listentry caption="Install a new image with a USB stick" step="upgradeUSB" />
88                 </list>
89         </step>
90
91         <step id="upgrade">
92                 <text value="You need a PC connected to your dreambox. If you need further instructions, please visit the website http://dreambox.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." />
93                 <list>
94                         <listentry caption="Yes, perform a shutdown now." step="shutdown" />
95                         <listentry caption="No, do nothing." step="end" />
96                 </list>
97         </step>
98
99         <step id="shutdown" nextstep="shutdown">
100                 <short_title value="Shutdown"/>
101                 <code>
102 from enigma import quitMainloop
103 quitMainloop(8)
104                 </code>
105                 <text value="Your dreambox is shutting down. Please stand by..." />
106         </step>
107
108         <step id="end" laststep="true">
109                 <condition>
110 self.condition = self.isLastWizard
111                 </condition>
112                 <text value="The wizard is finished now." />
113         </step>
114 </wizard>