SystemPlugins/SoftwareManager: - add SoftwareTools.py to factor out some code.
[enigma2.git] / lib / python / Plugins / SystemPlugins / NetworkWizard / networkwizard.xml
1 <wizard>
2         <step id="welcome" nextstep="selectinterface">
3                 <text value="Welcome.\n\nIf you want to connect your Dreambox to the Internet, this wizard will guide you through the basic network setup of your Dreambox.\n\nPress OK to start configuring your network" />
4                 <displaytext value="Network Wizard" />
5                 <code>
6 self.clearSelectedKeys()
7 self.selectKey("OK")
8                 </code>
9         </step>
10
11         <step id="selectinterface">
12                 <text value="Please select the network interface that you want to use for your internet connection.\n\nPlease press OK to continue." />
13                 <displaytext value="Select interface" />
14                 <list type="dynamic" source="listInterfaces" evaluation="InterfaceSelectionMade" onselect="InterfaceSelectionMoved" />
15                 <code>
16 self.clearSelectedKeys()
17 self.selectKey("OK")
18 self.selectKey("UP")
19 self.selectKey("DOWN")
20                 </code>
21                 <code pos="after" async="yes">
22 self.checkInterface(self.selectedInterface)
23                 </code> 
24         </step>
25         <step id="nwconfig">
26                 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
27                 <displaytext value="Configure interface" />
28                 <config screen="AdapterSetup" module="NetworkSetup" args="self.selectedInterface" type="ConfigList" />
29                 <code>
30 self.clearSelectedKeys()
31 self.selectKey("OK")
32 self.selectKey("UP")
33 self.selectKey("DOWN")
34 self.selectKey("LEFT")
35 self.selectKey("RIGHT")
36                 </code>
37                 <code pos="after" async="yes">
38 self.AdapterSetupEnd(self.selectedInterface)
39                 </code>                 
40         </step>
41         <step id="confdns" nextstep="checklanstatusend">
42                 <text value="Please configure or verify your Nameservers by filling out the required values.\nWhen you are ready press OK to continue." />
43                 <displaytext value="Configure nameservers" />
44                 <config screen="NameserverSetup" module="NetworkSetup" type="ConfigList" />
45                 <code>
46 self.clearSelectedKeys()
47 self.selectKey("OK")
48                 </code>
49                 <code pos="after" async="yes">
50 self.checkNetwork()
51                 </code> 
52         </step>
53         <step id="checklanstatusend" nextstep="end">
54                 <condition>
55 self.condition = (self.InterfaceState == True )
56                 </condition>
57                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
58                 <displaytext value="Please follow the instructions on the TV" />
59                 <code>
60 self.clearSelectedKeys()
61 self.selectKey("OK")
62                 </code>
63                 <code pos="after">
64 currStep = self.numSteps                                
65 self.wizard[currStep]["nextstep"] = None
66 self.markDone()
67 self.close()
68                 </code> 
69         </step>
70         <step id="checklanstatusend">
71                 <condition>
72 self.condition = (self.InterfaceState == False )
73                 </condition>
74                 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
75                 <displaytext value="Please follow the instructions on the TV" />
76                 <code>
77 self.clearSelectedKeys()
78 self.selectKey("OK")
79 self.selectKey("UP")
80 self.selectKey("DOWN")
81                 </code>
82                 <list>
83                         <listentry caption="Configure your network again" step="selectinterface" />
84                         <listentry caption="Exit network wizard" step="end" />
85                 </list>
86         </step>
87         <step id="scanwlan">
88                 <condition>
89 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
90                 </condition>
91                 <text value="Please select the wireless network that you want to connect to.\n\nPlease press OK to continue." />
92                 <displaytext value="Select wireless network" />
93                 <list type="dynamic" source="listAccessPoints" evaluation="AccessPointsSelectionMade" onselect="AccessPointsSelectionMoved" />
94                 <code>
95 self.clearSelectedKeys()
96 self.selectKey("OK")
97 self.selectKey("UP")
98 self.selectKey("DOWN")
99 self.selectKey("LEFT")
100 self.selectKey("RIGHT")
101                 </code>
102                 <code pos="after">
103 self.checkWlanSelection()
104                 </code> 
105         </step>
106         <step id="scanwlan">
107                 <condition>
108 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
109                 </condition>
110                 <text value="Your wireless LAN internet connection could not be started!\nHave you attached your USB WLAN Stick?\n\nPlease choose what you want to do next." />
111                 <displaytext value="Please follow the instructions on the TV" />
112                 <list>
113                         <listentry caption="Configure your wireless LAN again" step="scanwlan" />
114                         <listentry caption="Configure your internal LAN" step="selectinterface" />
115                         <listentry caption="Exit network wizard" step="end" />
116                 </list>
117                 <code>
118 self.clearSelectedKeys()
119 self.selectKey("OK")
120 self.selectKey("UP")
121 self.selectKey("DOWN")
122                 </code>
123         </step>
124         <step id="scanwlan">
125                 <condition>
126 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
127                 </condition>
128                 <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
129                 <displaytext value="Please follow the instructions on the TV" />
130                 <list>
131                         <listentry caption="Configure your internal LAN" step="selectinterface" />
132                         <listentry caption="Exit network wizard" step="end" />
133                 </list>
134                 <code>
135 self.clearSelectedKeys()
136 self.selectKey("OK")
137 self.selectKey("UP")
138 self.selectKey("DOWN")
139                 </code>
140         </step>
141         <step id="wlanconfig">
142                 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
143                 <displaytext value="Configure interface" />
144                 <config screen="AdapterSetup" module="NetworkSetup" args="(self.selectedInterface,self.ap,self.WlanList)" type="ConfigList" />
145                 <code>
146 self.clearSelectedKeys()
147 self.selectKey("OK")
148 self.selectKey("UP")
149 self.selectKey("DOWN")
150 self.selectKey("LEFT")
151 self.selectKey("RIGHT")
152                 </code>
153                 <code pos="after" async="yes">
154 self.AdapterSetupEnd(self.selectedInterface)
155                 </code>                 
156         </step>
157         <step id="checkWlanstatusend" nextstep="end">
158                 <condition>
159 self.condition = (self.InterfaceState == True )
160                 </condition>
161                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
162                 <displaytext value="Please follow the instructions on the TV" />
163                 <code>
164 self.clearSelectedKeys()
165 self.selectKey("OK")
166 self["text"].setText(self.Text)
167                 </code>
168                 <code pos="after">
169 currStep = self.numSteps                                
170 self.wizard[currStep]["nextstep"] = None
171 self.markDone()
172 self.close()
173                 </code> 
174         </step>
175         <step id="checkWlanstatusend">
176                 <condition>
177 self.condition = (self.InterfaceState == False )
178                 </condition>
179                 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
180                 <displaytext value="Please follow the instructions on the TV" />
181                 <code>
182 self.clearSelectedKeys()
183 self.selectKey("OK")
184 self.selectKey("UP")
185 self.selectKey("DOWN")
186                 </code>
187                 <list>
188                         <listentry caption="Configure your network again" step="selectinterface" />
189                         <listentry caption="Exit network wizard" step="end" />
190                 </list>
191         </step>
192
193         <step id="end">
194                 <text value="Thank you for using the wizard.\nPlease press OK to continue." />
195                 <code>
196 self.clearSelectedKeys()
197 self.selectKey("OK")
198                 </code>
199         </step>
200 </wizard>
201
202