enigma2 20120430 master -> 20120509 master
[enigma2.git] / usr / lib / enigma2 / python / Plugins / SystemPlugins / NetworkWizard / networkwizard.xml
1 <wizard>
2         <step id="welcome">
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                 <code pos="after" async="yes">
10 self.verifyFirstRun()
11                 </code>
12         </step>
13         <step id="alreadyConfiguredInterface">
14                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
15                 <displaytext value="Please follow the instructions on the TV" />
16                 <list type="dynamic" source="prepareAlreadyConfiguredInterfaceSelection" onselect="AlreadyConfiguredInterfaceSelectionMade" />
17                 <code>
18 self.clearSelectedKeys()
19 self.selectKey("OK")
20 self.selectKey("UP")
21 self.selectKey("DOWN")
22 self["text"].setText(self.Text)
23                 </code>
24                 <code pos="after">
25 self.selectInterface()
26                 </code> 
27         </step>
28         <step id="selectinterface">
29                 <text value="Please select the network interface that you want to use for your internet connection.\n\nPlease press OK to continue." />
30                 <displaytext value="Select interface" />
31                 <list type="dynamic" source="listInterfaces" evaluation="InterfaceSelectionMade" onselect="InterfaceSelectionMoved" />
32                 <code>
33 self.clearSelectedKeys()
34 self.selectKey("OK")
35 self.selectKey("UP")
36 self.selectKey("DOWN")
37                 </code>
38                 <code pos="after" async="yes">
39 self.checkInterface(self.selectedInterface)
40                 </code> 
41         </step>
42         <step id="nwconfig">
43                 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
44                 <displaytext value="Configure interface" />
45                 <config screen="AdapterSetup" module="NetworkSetup" args="self.selectedInterface" type="ConfigList" />
46                 <code>
47 self.clearSelectedKeys()
48 self.selectKey("OK")
49 self.selectKey("UP")
50 self.selectKey("DOWN")
51 self.selectKey("LEFT")
52 self.selectKey("RIGHT")
53                 </code>
54                 <code pos="after" async="yes">
55 self.AdapterSetupEnd(self.selectedInterface)
56                 </code>               
57         </step>
58         <step id="confdns" nextstep="checklanstatusend">
59                 <text value="Please configure or verify your Nameservers by filling out the required values.\nWhen you are ready press OK to continue." />
60                 <displaytext value="Configure nameservers" />
61                 <config screen="NameserverSetup" module="NetworkSetup" args="(self.selectedInterface,True)" type="ConfigList" />
62                 <code>
63 self.clearSelectedKeys()
64 self.selectKey("OK")
65                 </code>
66                 <code pos="after" async="yes">
67 self.checkNetwork()
68                 </code> 
69         </step>
70         <step id="checklanstatusend" nextstep="end">
71                 <condition>
72 self.condition = (self.InterfaceState == True )
73                 </condition>
74                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
75                 <displaytext value="Please follow the instructions on the TV" />
76                 <code>
77 self.clearSelectedKeys()
78 self.selectKey("OK")
79 self["text"].setText(self.Text)
80                 </code>
81                 <code pos="after">
82 currStep = self.numSteps                                
83 self.wizard[currStep]["nextstep"] = None
84 self.markDone()
85 self.close()
86                 </code> 
87         </step>
88         <step id="checklanstatusend">
89                 <condition>
90 self.condition = (self.InterfaceState == False )
91                 </condition>
92                 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
93                 <displaytext value="Please follow the instructions on the TV" />
94                 <code>
95 self.clearSelectedKeys()
96 self.selectKey("OK")
97 self.selectKey("UP")
98 self.selectKey("DOWN")
99                 </code>
100                 <list>
101                         <listentry caption="Configure your network again" step="welcome" />
102                         <listentry caption="Exit network wizard" step="end" />
103                 </list>
104         </step>
105         <step id="asknetworktype">
106                 <condition>
107 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
108                 </condition>
109                 <text value="Wireless network connection setup." />
110                 <displaytext value="Wireless network connection setup" />
111                 <code>
112 self.clearSelectedKeys()
113 self.selectKey("OK")
114 self.selectKey("UP")
115 self.selectKey("DOWN")
116                 </code>
117                 <list>
118                         <listentry caption="List available networks" step="scanwlan" />
119                         <listentry caption="Manual configuration" step="wlanconfig" />
120                         <listentry caption="Exit network wizard" step="end" />
121                 </list>
122         </step>
123
124         <step id="scanwlan">
125                 <condition>
126 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == True)
127                 </condition>
128                 <text value="Please select the wireless network that you want to connect to.\n\nPlease press OK to continue." />
129                 <displaytext value="Select wireless network" />
130                 <list type="dynamic" source="listAccessPoints" onselect="AccessPointsSelectionMoved" />
131                 <code>
132 self.clearSelectedKeys()
133 self.selectKey("OK")
134 self.selectKey("UP")
135 self.selectKey("DOWN")
136 self.selectKey("LEFT")
137 self.selectKey("RIGHT")
138                 </code>
139                 <code pos="after">
140 self.checkWlanSelection()
141                 </code> 
142         </step>
143         <step id="scanwlan">
144                 <condition>
145 self.condition = (self.isInterfaceUp == False and self.WlanPluginInstalled == True)
146                 </condition>
147                 <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." />
148                 <displaytext value="Please follow the instructions on the TV" />
149                 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
150                 <code>
151 self.clearSelectedKeys()
152 self.selectKey("OK")
153 self.selectKey("UP")
154 self.selectKey("DOWN")
155                 </code>
156         </step>
157         <step id="scanwlan">
158                 <condition>
159 self.condition = (self.isInterfaceUp == True and self.WlanPluginInstalled == False)
160                 </condition>
161                 <text value="The wireless LAN plugin is not installed!\nPlease install it and choose what you want to do next." />
162                 <displaytext value="Please follow the instructions on the TV" />
163                 <list type="dynamic" source="listChoices" evaluation="ChoicesSelectionMade" onselect="ChoicesSelectionMoved" />
164                 
165                 <code>
166 self.clearSelectedKeys()
167 self.selectKey("OK")
168 self.selectKey("UP")
169 self.selectKey("DOWN")
170                 </code>
171         </step>
172         <step id="wlanconfig">
173                 <text value="Please configure your internet connection by filling out the required values.\nWhen you are ready press OK to continue." />
174                 <displaytext value="Configure interface" />
175                 <config screen="AdapterSetup" module="NetworkSetup" args="(self.selectedInterface,self.ap)" type="ConfigList" />
176                 <code>
177 self.clearSelectedKeys()
178 self.selectKey("OK")
179 self.selectKey("UP")
180 self.selectKey("DOWN")
181 self.selectKey("LEFT")
182 self.selectKey("RIGHT")
183                 </code>
184                 <code pos="after" async="yes">
185 self.AdapterSetupEnd(self.selectedInterface)
186                 </code>                 
187         </step>
188         <step id="checkWlanstatusend" nextstep="end">
189                 <condition>
190 self.condition = (self.InterfaceState == True )
191                 </condition>
192                 <text value="Your Dreambox is now ready to use.\n\nYour internet connection is working now.\n\nPlease press OK to continue." />
193                 <displaytext value="Please follow the instructions on the TV" />
194                 <code>
195 self.clearSelectedKeys()
196 self.selectKey("OK")
197 self["text"].setText(self.Text)
198                 </code>
199                 <code pos="after">
200 currStep = self.numSteps                                
201 self.wizard[currStep]["nextstep"] = None
202 self.markDone()
203 self.close()
204                 </code> 
205         </step>
206         <step id="checkWlanstatusend">
207                 <condition>
208 self.condition = (self.InterfaceState == False )
209                 </condition>
210                 <text value="Your internet connection is not working!\nPlease choose what you want to do next." />
211                 <displaytext value="Please follow the instructions on the TV" />
212                 <code>
213 self.clearSelectedKeys()
214 self.selectKey("OK")
215 self.selectKey("UP")
216 self.selectKey("DOWN")
217                 </code>
218                 <list>
219                         <listentry caption="Configure your network again" step="welcome" />
220                         <listentry caption="Exit network wizard" step="end" />
221                 </list>
222         </step>
223         <step id="end">
224                 <text value="Thank you for using the wizard.\nPlease press OK to continue." />
225                 <code>
226 self.clearSelectedKeys()
227 self.selectKey("OK")
228                 </code>
229         </step>
230 </wizard>
231