add SoftwareManager and show it inside Setup Menu
[vuplus_dvbapp] / lib / python / Plugins / SystemPlugins / SoftwareManager / imagewizard.xml
diff --git a/lib/python/Plugins/SystemPlugins/SoftwareManager/imagewizard.xml b/lib/python/Plugins/SystemPlugins/SoftwareManager/imagewizard.xml
new file mode 100755 (executable)
index 0000000..98658b7
--- /dev/null
@@ -0,0 +1,100 @@
+<wizard>\r
+       <step id="restorequestion">\r
+               <condition>\r
+from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkConfigBackup\r
+self.backuppath = checkConfigBackup()\r
+self.condition = (self.backuppath is not None and config.misc.firstrun.value)\r
+               </condition>\r
+               <text value="Do you want to restore your settings?" />\r
+               <list>\r
+                       <listentry caption="Yes, restore the settings now" step="restore" />\r
+                       <listentry caption="No, just start my dreambox" step="end" />\r
+               </list>\r
+               <code>\r
+self.clearSelectedKeys()\r
+self.selectKey("OK")\r
+               </code>\r
+       </step>\r
+\r
+       <step id="welcome">\r
+               <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." />\r
+               <list>\r
+                       <listentry caption="OK, guide me through the upgrade process" step="backupquestion" />\r
+                       <listentry caption="Exit the wizard" step="end" />\r
+               </list>\r
+       </step>\r
+\r
+       <step id="backupquestion">\r
+               <text value="The wizard can backup your current settings. Do you want to do a backup now?" />\r
+               <list>\r
+                       <listentry caption="Yes, backup my settings!" step="backupwhere" />\r
+                       <listentry caption="No backup needed" step="upgrade" />\r
+               </list>\r
+       </step>\r
+\r
+       <step id="backupwhere" nextstep="backup">\r
+               <text value="Where do you want to backup your settings?" />\r
+               <list type="dynamic" source="listDevices" evaluation="deviceSelectionMade" onselect="deviceSelectionMoved" />\r
+       </step>\r
+\r
+       <step id="backup" nextstep="backupresult">\r
+               <text value="You have chosen to backup your settings. Please press OK to start the backup now." />\r
+               <config screen="BackupScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />\r
+               <code pos="after" async="yes">\r
+self.currStep = self.getStepWithID('backupresult')\r
+self.afterAsyncCode()\r
+               </code> \r
+       </step>\r
+               \r
+       <step id="backupresult" nextstep="upgrade">\r
+               <condition>\r
+from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile\r
+self.backuppath = checkBackupFile()\r
+self.condition = (self.backuppath is True)\r
+               </condition>\r
+               <text value="Your backup succeeded. We will now continue to explain the further upgrade process." />\r
+       </step>\r
+\r
+       <step id="backupresult" nextstep="backupwhere">\r
+               <condition>\r
+from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile\r
+self.backuppath = checkBackupFile()\r
+self.condition = (self.backuppath is False)\r
+               </condition>\r
+               <text value="The backup failed. Please choose a different backup location." />\r
+       </step>\r
+\r
+       <step id="restore" nextstep="backupresult">\r
+               <text value="You have chosen to restore your settings. Enigma2 will restart after restore. Please press OK to start the restore now." />\r
+               <config screen="RestoreScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />\r
+       </step>\r
+               \r
+\r
+       <step id="upgradehow">\r
+               <text value="The wizard can backup your current settings. Do you want to do a backup now?" />\r
+               <list>\r
+                       <listentry caption="Install a new image with your web browser" step="upgrade" />\r
+                       <listentry caption="Install a new image with a USB stick" step="upgradeUSB" />\r
+               </list>\r
+       </step>\r
+               \r
+       <step id="upgrade">\r
+               <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." />\r
+               <list>\r
+                       <listentry caption="Yes, perform a shutdown now." step="shutdown" />\r
+                       <listentry caption="No, do nothing." step="end" />\r
+               </list>\r
+       </step>\r
+\r
+       <step id="shutdown" nextstep="shutdown">\r
+               <code>\r
+from enigma import quitMainloop\r
+quitMainloop(1)\r
+               </code>\r
+               <text value="Your dreambox is shutting down. Please stand by..." />\r
+       </step>\r
+               \r
+       <step id="end">\r
+               <text value="The wizard is finished now." />\r
+       </step>\r
+</wizard>\r