Fix crash when no WirelessLan Plugin installed
[enigma2-plugins.git] / networkwizard / src / networkwizard.xml
1 <wizard>
2                 <step id="welcome" nextstep="introduction">
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                         <code>
5 self["arrowdown"].moveTo(557, 232, 1)
6 self["arrowdown"].startMoving()
7 self["arrowup"].moveTo(800, 232, 1)
8 self["arrowup"].startMoving()
9 self["arrowup2"].moveTo(800, 320, 1)
10 self["arrowup2"].startMoving()
11 self["arrowup3"].moveTo(800, 320, 1)
12 self["arrowup3"].startMoving()
13 self["rc"].moveTo(500, 50, 1)
14 self["rc"].startMoving()
15                         </code>
16                 </step>
17
18                 <step id="introduction" >
19                 <condition>
20 self.condition = (self.InterfaceAvailable == True )
21                 </condition>
22                         <text value="Use the up/down keys on your remote control to select an option. After that, press OK.\n\n\n\nConnect to the internet..." />
23                         <list>
24                                 <listentry caption="via LAN." step="conflan" />
25                                 <listentry caption="via wireless LAN." step="scanwlan" />
26                                 <listentry caption="Exit wizard and configure later manually" step="end" />
27                         </list>
28                         <code>
29 self["arrowup2"].moveTo(800, 320, 1)
30 self["arrowup2"].startMoving()
31 self["arrowdown"].moveTo(557, 200, 1)
32 self["arrowup"].moveTo(557, 355, 1)
33 self["arrowdown"].startMoving()
34 self["arrowup"].startMoving()
35 self["rc"].moveTo(500, 50, 1)
36 self["rc"].startMoving()
37                         </code>
38                 </step>
39
40                 <step id="introduction" >
41                 <condition>
42 self.condition = (self.InterfaceAvailable == False )
43                 </condition>
44                         <text value="Use the up/down keys on your remote control to select an option. After that, press OK.\n\n\n\nConnect to the internet..." />
45                         <list>
46                                 <listentry caption="via LAN." step="conflan" />
47                                 <listentry caption="Exit wizard and configure later manually" step="end" />
48                         </list>
49                         <code>
50 self["arrowup2"].moveTo(800, 320, 1)
51 self["arrowup2"].startMoving()
52 self["arrowdown"].moveTo(557, 200, 1)
53 self["arrowup"].moveTo(557, 355, 1)
54 self["arrowdown"].startMoving()
55 self["arrowup"].startMoving()
56 self["rc"].moveTo(500, 50, 1)
57 self["rc"].startMoving()
58                         </code>
59                 </step>
60
61                 <step id="conflan" nextstep="checklanstatusend">
62                         <text value="Please configure your LAN internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
63                         <config screen="AdapterSetup" module="NetworkSetup" args="0" type="ConfigList" />
64                         <code>
65 self.checkInterface('eth0')
66                         </code> 
67                         <code>
68 self["arrowup2"].moveTo(525, 320, 1)
69 self["arrowup2"].startMoving()
70 self["arrowup3"].moveTo(590, 320, 1)
71 self["arrowup3"].startMoving()
72 self["arrowdown"].moveTo(557, 200, 1)
73 self["arrowup"].moveTo(557, 355, 1)
74 self["arrowdown"].startMoving()
75 self["arrowup"].startMoving()
76 self["rc"].moveTo(500, 50, 1)
77 self["rc"].startMoving()
78                         </code>
79                         <code pos="after">
80 self.checkNetwork()
81                         </code> 
82                 </step>
83
84                 <step id="checklanstatusend" nextstep="end">
85                 <condition>
86 self.condition = (self.InterfaceState == True )
87                 </condition>
88                         <text value="Your Dreambox is now ready to use.\n\nYour LAN internet connection is working now.\n\nPlease press OK to continue." />
89                         <code>
90 self["arrowdown"].moveTo(557, 232, 1)
91 self["arrowdown"].startMoving()
92 self["arrowup"].moveTo(800, 232, 1)
93 self["arrowup"].startMoving()
94 self["arrowup2"].moveTo(800, 320, 1)
95 self["arrowup2"].startMoving()
96 self["arrowup3"].moveTo(800, 320, 1)
97 self["arrowup3"].startMoving()
98 self["rc"].moveTo(500, 50, 1)
99 self["rc"].startMoving()
100                         </code>
101                 </step>
102
103                 <step id="checklanstatusend">
104                 <condition>
105 self.condition = (self.InterfaceState == False )
106                 </condition>
107                         <text value="Your LAN internet connection is not working!\nPlease choose what you want to do next." />
108                         <code>
109 self["arrowdown"].moveTo(557, 232, 1)
110 self["arrowdown"].startMoving()
111 self["arrowup"].moveTo(800, 232, 1)
112 self["arrowup"].startMoving()
113 self["arrowup2"].moveTo(800, 320, 1)
114 self["arrowup2"].startMoving()
115 self["arrowup3"].moveTo(800, 320, 1)
116 self["arrowup3"].startMoving()
117 self["rc"].moveTo(500, 50, 1)
118 self["rc"].startMoving()
119                         </code>
120                         <list>
121                                 <listentry caption="Configure your LAN again" step="conflan" />
122                                 <listentry caption="Configure your wireless LAN" step="scanwlan" />
123                                 <listentry caption="Exit wizard and configure later manually" step="end" />
124                         </list>
125                 </step>
126
127
128                 <step id="scanwlan" nextstep="wlanconfig">
129                 <condition>
130 self.checkInterface('wlan0')                    
131 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
132                 </condition>
133                         <text value="Please select the wireless LAN network that you want to connect to.\n\nPlease press OK to continue." />
134                         <list type="dynamic" source="listModes" evaluation="modeSelectionMade" onselect="modeSelectionMoved" />
135                         <code>
136 self["arrowup2"].moveTo(800, 320, 1)
137 self["arrowup2"].startMoving()
138 self["arrowdown"].moveTo(557, 200, 1)
139 self["arrowup"].moveTo(557, 355, 1)
140 self["arrowdown"].startMoving()
141 self["arrowup"].startMoving()
142 self["rc"].moveTo(500, 50, 1)
143 self["rc"].startMoving()
144                         </code>
145                         <code pos="after">
146 self.saveAccessPoint(self.ap)
147                         </code>
148                 </step>
149
150                 <step id="scanwlan">
151                 <condition>
152 self.checkInterface('wlan0')                            
153 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
154                 </condition>
155                         <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." />
156                         <list>
157                                 <listentry caption="Configure your wireless LAN again" step="scanwlan" />
158                                 <listentry caption="Configure your internal LAN" step="conflan" />
159                                 <listentry caption="Exit wizard and configure later manually" step="end" />
160                         </list>
161                         <code>
162 self["arrowup2"].moveTo(800, 320, 1)
163 self["arrowup2"].startMoving()
164 self["arrowdown"].moveTo(557, 200, 1)
165 self["arrowup"].moveTo(557, 355, 1)
166 self["arrowdown"].startMoving()
167 self["arrowup"].startMoving()
168 self["rc"].moveTo(500, 50, 1)
169 self["rc"].startMoving()
170                         </code>
171                 </step>
172
173                 <step id="scanwlan">
174                 <condition>
175 self.checkInterface('wlan0')                            
176 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
177                 </condition>
178                         <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
179                         <list>
180                                 <listentry caption="Configure your internal LAN" step="conflan" />
181                                 <listentry caption="Exit wizard and configure later manually" step="end" />
182                         </list>
183                         <code>
184 self["arrowup2"].moveTo(800, 320, 1)
185 self["arrowup2"].startMoving()
186 self["arrowdown"].moveTo(557, 200, 1)
187 self["arrowup"].moveTo(557, 355, 1)
188 self["arrowdown"].startMoving()
189 self["arrowup"].startMoving()
190 self["rc"].moveTo(500, 50, 1)
191 self["rc"].startMoving()
192                         </code>
193                 </step>
194
195
196                 <step id="wlanconfig" nextstep="checkwlanstatusend" timeout="60" timeoutaction="selectnext">
197                         <text value="Please configure your wireless LAN internet connection by filling out the required values.\nWhen you are done, press OK to continue." />
198                         <config screen="AdapterSetup" module="NetworkSetup" args="1" type="ConfigList" />
199                         <code>
200 self["arrowup2"].moveTo(525, 320, 1)
201 self["arrowup2"].startMoving()
202 self["arrowup3"].moveTo(590, 320, 1)
203 self["arrowup3"].startMoving()
204 self["arrowdown"].moveTo(557, 200, 1)
205 self["arrowup"].moveTo(557, 355, 1)
206 self["arrowdown"].startMoving()
207 self["arrowup"].startMoving()
208 self["rc"].moveTo(500, 50, 1)
209 self["rc"].startMoving()
210                         </code>
211                         <code pos="after">
212 self.checkNetwork()
213                         </code> 
214                 </step>
215
216                 <step id="checkwlanstatusend" nextstep="end">
217                 <condition>
218 self.condition = (self.InterfaceState == True )
219                 </condition>
220                         <text value="Your Dreambox is now ready to use.\n\nYour wireless LAN internet connection is working now.\n\nPlease press OK to continue." />
221                         <code>
222 self["arrowdown"].moveTo(557, 232, 1)
223 self["arrowdown"].startMoving()
224 self["arrowup"].moveTo(800, 232, 1)
225 self["arrowup"].startMoving()
226 self["arrowup2"].moveTo(800, 320, 1)
227 self["arrowup2"].startMoving()
228 self["arrowup3"].moveTo(800, 320, 1)
229 self["arrowup3"].startMoving()
230 self["rc"].moveTo(500, 50, 1)
231 self["rc"].startMoving()
232                         </code>
233                 </step>
234
235                 <step id="checkwlanstatusend">
236                 <condition>
237 self.condition = (self.InterfaceState == False )
238                 </condition>
239                         <text value="Your wireless LAN internet connection is not working!\nPlease choose what you want to do next." />
240                         <code>
241 self["arrowup2"].moveTo(800, 320, 1)
242 self["arrowup2"].startMoving()
243 self["arrowdown"].moveTo(557, 200, 1)
244 self["arrowup"].moveTo(557, 355, 1)
245 self["arrowdown"].startMoving()
246 self["arrowup"].startMoving()
247 self["rc"].moveTo(500, 50, 1)
248 self["rc"].startMoving()
249                         </code>
250                         <list>
251                                 <listentry caption="Configure your wireless LAN again" step="scanwlan" />
252                                 <listentry caption="Restart your wireless interface" step="wlanrestart" />
253                                 <listentry caption="Configure your internal LAN" step="conflan" />
254                                 <listentry caption="Exit wizard and configure later manually" step="end" />
255                         </list>
256                 </step>
257
258                 <step id="wlanrestart" nextstep="checkwlanstatusend" timeout="3" timeoutaction="selectnext">
259                         <text value="Your network is restarting.\n\nPlease press OK to continue." />
260                         <code pos="after">
261 self.restartNetwork()
262                         </code> 
263                 </step>
264
265                 <step id="end">
266                         <text value="Thank you for using the wizard. Your Dreambox is now ready to use.\nPlease press OK to continue." />
267
268                 </step>
269 </wizard>
270
271