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